How do I use both Create and Create or Update Triggers in Flow Designer

John Prouty
Kilo Guru

I need a trigger that fires when the Record Producer creates a record in my table and I need a different trigger whenever a record in the Table is updated.  In the Update trigger, I may need to create a related record in the same table, but I can't have it fire the Create Record trigger that is used by the Record Producer.

Part of my issue is understanding how the Create Record action works in Flow Designer when the table has a Create Trigger.  The Create Record allows for values to be set for selected fields.  But the create trigger does that too.  If there is a Create Trigger, does it also do the field assignments specified in the Create Record action?

1 ACCEPTED SOLUTION

Willem
Giga Sage
Giga Sage

Hi John,

 

Not sure what you mean with: "The Create Record allows for values to be set for selected fields.  But the create trigger does that too."

  • Create record Action: Creates a record with certain values.
  • The Trigger 'Created' activates the Flow. The fields specified there are the conditions. It will not create a record. It will just run the Flow when a record is created (either manually by the user or via other Flow or Business rule for example). If you specify fields there, the Flow will only run when a record is created that matches those fields.

 

There is no way of determining if it is triggered by the Create or if it is triggered by the Update.

  • Solution for this if you want to work with Flows is have 2 Flows: 1 that triggers on Create and handles that in the specific way, the other 1 on Update and handles that.
  • Other option would be to have a custom action or query to check the record that triggered your Flow. For example check if it has the updated date/time the same as the created date/time.

View solution in original post

2 REPLIES 2

SanjivMeher
Kilo Patron
Kilo Patron

So Create Trigger is a trigger, similar to how Business Rule works. It triggers on Insertion or Update.

But Create Record is an action to create an incident. The trigger happens post incident creation.

If you dont want to run the trigger when a related record is created, add the condition to the trigger condition of Create trigger to only run when Parent or Whichever field you are storing the relation is Empty.


Please mark this response as correct or helpful if it assisted you with your question.

Willem
Giga Sage
Giga Sage

Hi John,

 

Not sure what you mean with: "The Create Record allows for values to be set for selected fields.  But the create trigger does that too."

  • Create record Action: Creates a record with certain values.
  • The Trigger 'Created' activates the Flow. The fields specified there are the conditions. It will not create a record. It will just run the Flow when a record is created (either manually by the user or via other Flow or Business rule for example). If you specify fields there, the Flow will only run when a record is created that matches those fields.

 

There is no way of determining if it is triggered by the Create or if it is triggered by the Update.

  • Solution for this if you want to work with Flows is have 2 Flows: 1 that triggers on Create and handles that in the specific way, the other 1 on Update and handles that.
  • Other option would be to have a custom action or query to check the record that triggered your Flow. For example check if it has the updated date/time the same as the created date/time.