Can’t imagine this isn’t a bug, but I’m open to hearing explanations. I have a table built from a Salesforce report sync. One field is Account Name. If account name contains a comma, lots of other things break because Airtable doesn’t handle commas correctly in linked records (there’s a feature request open to address this). So I have a very simple automation that should fix things.
When a record enters a view I have 2 actions:
- Run a simple script to grab the account name, strip commas, write the new account name to a separate field in the table. This works fine.
- Send a Slack message that includes the new account name from that just-written field. This does NOT work. Account name is always empty in the Slack message.
If I test the automation by generating a preview of the Slack message, the account name is there correctly, without commas. It seems Airtable does not wait for action 1 (the script) to complete before running action 2. But that couldn’t be… right? 🤔
To test, I added a delay at the end of the script to keep it running for 1 second. 2 seconds. 3 seconds. Nothing works. The account name is always empty in the message. It kinda feels like even though the new account name appears to be written to the table, it’s not truly there yet. Like maybe I SEE it, but on the backend something still has to happen to commit the write operation.
Instead of writing the new account name to the table, I can try to use output.set() to store the new name, then reference that variable in the Slack message, but I’d rather figure out why this won’t work. Any thoughts?