Hello.
I have a process set up to create a PDF when a record in the Jobs table is changed. The template contains a Start expression that references a Related Parts column. It's working beautifully.
However, it's possible the user will update a Part record from the inline Related Parts table located in Jobs Detail View. In this way the process is not triggered since it's only updating the Part record not the Job record.
So I set the process to be reusable and added to a Parts table update event. It's requiring either Add or Lookup when I want neither. I just want the same PDF task ran whether the Job record or Part record is updated.
Is this possible?
Solved! Go to Solution.
@AI-FL wrote:
Is this possible?
You absolutely can do what you're wanting, and you're on the right track.
When you select "Lookup" the system is being told to "lookup a record somewhere and run the process on that record" - so you need to provide the ID of the record you want to run the process on.
The alert in the image is letting you know the specific piece of data that's required in order for the process to run: the Job ID
Here's how you can do it:
By giving the system the column to look in, and the ID to look for, the system is able to find the individual record you want... and it will then run the process on that record. ๐ช
This is how you open a door to incredible modularity and power through automation inside your app.
To solve the issue in a concise manner:
1. Make the Process Reusable:
- Ensure the process that generates the PDF is set as reusable.
2. Create a New Bot for the Parts Table:
- Go to the Automation section and create a new bot.
- Name it "Parts Update - Generate PDF."
3. Configure the Bot Event:
- Set the event to trigger when a Part record is updated.
4. Attach the Reusable Process
- In the bot's task section, attach the reusable process you created for the Jobs table.
By following these steps, the same PDF generation process will be triggered whether a Job record or a Part record is updated.
Run a bot on child updates to update the parent's change date col for instance to trigger the parent's not.
I like this solution the best but when I set up a bot on the child table using the task: "Run a data action", I'm only able to update the child table. How do I configure to update the parent table?
You run an action on rows
You first need to create an action on the parent table to update the change date time to now ()
Why not just change the trigger condition for your original bot.
Adds and Updates and for updates make a condition to look changes just for Related Parts
I tested using [_THISROW_BEFORE].[Related Parts] <> [_THISROW_AFTER].[Related Parts] as a condition on parent table updates but this doesn't work because it needs to be triggered initially by a parent record update.
@AI-FL wrote:
Is this possible?
You absolutely can do what you're wanting, and you're on the right track.
When you select "Lookup" the system is being told to "lookup a record somewhere and run the process on that record" - so you need to provide the ID of the record you want to run the process on.
The alert in the image is letting you know the specific piece of data that's required in order for the process to run: the Job ID
Here's how you can do it:
By giving the system the column to look in, and the ID to look for, the system is able to find the individual record you want... and it will then run the process on that record. ๐ช
This is how you open a door to incredible modularity and power through automation inside your app.
User | Count |
---|---|
20 | |
16 | |
4 | |
3 | |
2 |