Trigger flow on update of the sc_req_item.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2024 12:43 AM
I need to trigger the flow on the update of the sc_req_item along with the creation of the record. How could this be done?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2024 01:31 AM
Not sure if I understand you correctly, but you can trigger a flow on 'created or updated'.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2024 02:30 AM
@Mark Manders I need to trigger the flow even when the catalog item is updated. The flow is triggered only when the created request item's parent request is approved.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2024 01:35 AM
Hi there @Bharath K B3
First, create the Flow Designer flow that you want to trigger when an sc_req_item record is updated.Configure set a Business Rule. Set the Table to Requested Item [sc_req_item], as this is the table you want to trigger the flow. on.Define the condition under which the flow should be triggered. Since you want to trigger the flow on both creation and update of sc_req_item records, you can set the condition to true.
(function executeRule(current, previous /*null when async*/) {
var flowName = 'Your_Flow_Name';
var flowInput = {};
var result = new global.FlowAPI().triggerFlow(flowName, flowInput);
})(current, previous);
If this helps kindly accept the response.
Kind Regards,
Mohamed Azarudeen Z
Developer @ KPMG
Microsoft MVP (AI Services), India
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2024 01:55 AM
Why trigger the flow from a BR when you can trigger it on the flow itself?
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark