May 29, 2023 08:32 AM - edited May 29, 2023 08:56 AM
This seems like it should be well documented but I'm having a devil of a time finding a clear example.
Goal: When a new Activity is created with a Type of "Posting Closed", I want to update the linked Applications so that it's Status is "Recently Closed".
Table structures:
Applications | Activities |
Title [text] | Type [single select] |
Status [single select] | Date [date] |
Activities [linked record] | Job Postings [linked record] |
I'd really appreciate some 📸 screenshots of a working sample automation configuration too.
Thanks!
Solved! Go to Solution.
May 31, 2023 10:05 AM - edited May 31, 2023 10:10 AM
Awesome, thanks Stephen, that fixed my error!
For posterity, here's the correct automation for updating a status on a (single) linked record:
However, my initial configuration was generating an error on the "Update Record" action (which Stephen solved). To fix it, I had to set the display of the Application to ID. It defaulted to "Name" and I guess that's why I was getting the "invalid input" message:
May 29, 2023 08:45 AM - edited May 29, 2023 09:32 AM
Instead of using the "when record is created" trigger, use "when record matches condition." Then for your action, update record on the table containing Job Postings where the Record ID = the trigger record's linked record field (displayed as ID, not name) to your Job Postings table. Hope that helps!
May 29, 2023 09:12 AM
Ok, yeah, I've run into an error doing this before.
Creating the trigger works well and it is able to find an Activity that meets the expected criteria:
However, when I create the Update Record action, specify the id for the linked Application record, and tell it to update the status, I get an error message that says invalid input.
Is this the automation flow you were suggesting, or did I miss something?
May 29, 2023 09:23 AM
In your second screenshot, make sure the Application in the Record ID is set to display: ID
May 30, 2023 03:14 PM
Hi,
Your configuration might work for a single linked record, but it's not accurate, as there might be several linked Applications. Linked field contains array of IDs and some time ago it was a common problem - how to use it as a single ID value. Now it's possible, but if you want to update all linked records, you should use Repeated group and then put Update action inside it. But if you are sure there is always only one linked Application, you may update is in a single action, as suggested.
May 31, 2023 10:05 AM - edited May 31, 2023 10:10 AM
Awesome, thanks Stephen, that fixed my error!
For posterity, here's the correct automation for updating a status on a (single) linked record:
However, my initial configuration was generating an error on the "Update Record" action (which Stephen solved). To fix it, I had to set the display of the Application to ID. It defaulted to "Name" and I guess that's why I was getting the "invalid input" message:
May 31, 2023 11:35 AM
Awesome, glad that helped! Could you please accept my previous comment as the solution? 🙂 Helps my progression in the community here. Appreciate it greatly!