Hi ! I have a stacker app with an airtable base. I...
# questions
s
Hi ! I have a stacker app with an airtable base. I have items for projects. I would like to record edits of the item (what kind of changes and who made them), display them on a tab, and send an email/notification if the change was made by someon else than the project owner. Do you have an idea of how do that ? Thanks !
c
@salmon-electrician-92054 there is not a native way to do this in Stacker. Here is the workaround I use for this: • For fields that I want to track who made the change, only allow the field to be edited from an action button. Make the field read-only from the detail layout. • When the person opens the action button, there is a field to select themselves and the field is set to only be able to select themselves. And the field to select themselves is required.
a
Hi Stephanie, If I understand you - I built in Airtable an audit table for one of my apps - whenever a major change is made to a record, AT automations using the "When a record is updated" trigger, it then writes some activity to the audit table. In this case, it's for a Document Management system, so records changes such as when a document revision is changed, who approved it, document owner history, and other bits of information that we can then show via a Tab in Stacker - so gives a record of all changes. Hope I've understood 🙂
s
Thanks for your answer ! @ancient-portugal-25644 I thought about doing this but airtable doesn't know who made the change from stacker and this is the main information I want to display... @chilly-midnight-76694 Good trick ! I would like to avoid such clicks but maybe I won't have other solutions... When I read you, I think about making a zapier automation triggered by "edit" click, it might know the person who made the action ? I am gonna check if it is possible...
S*** it doesn't seem possible... I am gonna use your trick I guess @chilly-midnight-76694!
👍 1
Hi @chilly-midnight-76694! I tried your solution but I failed to configure the default value of the field, how can I telle stacker there is a link between the user and the contentof that field ? (it displays only static values...)
c
@salmon-electrician-92054 there isn’t a way to configure the default value of the field to the current user (that I know of). So the user has to select their own name (I condition the field so that the user can only see and select themselves).
s
"I condition the field so that the user can only see and select themselves" -> how do you do that ? (I don't find this conditionnal settings...)
c
@salmon-electrician-92054 here is an example. There needs to be a field that links to the users table; that is what is shown in the screenshot below. The Stacker Users table is my users table in Airtable.
❤️ 1
s
So efficient, thanks so much !!
c
Very welcome
@salmon-electrician-92054 sorry to be giving you this piecemeal. A few more things you may want to do ~ • If the field will be continuously updated by multiple users, you’ll want to log the change that was made in a separate table and then clear out that field in which people select themselves so that the next user can select themselves. If you don’t clear it out, then the next user will see the person that made the last update and themselves. • Here is an automation (screenshot below) I run for this in which when the field is updated (the user makes a change to a field and select their own name), an automation runs to create a record in a log table, and then the name of the person is cleared out. • And then you may want to show the log of changes somewhere in the detail layout (that is how I do it).
s
Even better of what I have done 😉 thanks !
Now I am curious, what is inside your "create record" to create your log ?
😅 1
c
@salmon-electrician-92054 here is the automation and here is the table
🙏 1