- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-14-2021 10:15 AM
Hello,
I have a record producer that once submitted, needs to trigger a flow designer flow. Is this possible? If so, how can I do that?
Thanks!
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-14-2021 10:20 AM
Hi mballinger
Record producers in ServiceNow work by simply inserting a record into a table.
If you use catalog items you can specify a flow that should run from that requested item.
However if you still want to trigger a flow from a record producer, either match a flow condition with the created record or you can generate it from script. Full description here.
// Map inputs. For a flow with a record trigger, inputs are the record and table
var inputs = {};
inputs['current'] = current; // GlideRecord of table:
inputs['table_name'] = 'incident';
// Execute the global flow called test_flow
sn_fd.FlowAPI.executeFlow('global.test_flow', inputs);
I've never used it in a record producer script. You might need to put it in a BR that triggers on insert but in that case setting a condition on the flow itself is probably easier.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-28-2023 07:51 AM
Hi Shao
Thank for your sugestion, which I also thought was the way to go, but now the flow gets triggered everytime a record is created for that table (also when a user creates a bew record using a new record -button.
I would like very much to only trigger the flow when the record is created from a record producer,.. Do you know if that is possible.
best regards,
Martin

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-28-2023 08:30 AM
Hey Martin,
Is the table extending from task? If so, then you could probably add a condition that looks up if the record belongs to the sc_item_produced_record table before allowing the flow to proceed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-28-2023 10:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-01-2025 07:13 AM
There is a 100% reliable way to trigger flow from Record Producer without using code.
You simply use sc_item_produced_record table as a trigger.
It creates an entry at the same time the Task is created.
It contains a link to the producer, and a link to the task.