What is being used for 'Parm2' on the 'sysevent' record with name 'fire.flow' ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2023 06:44 PM
I am researching how we might be able to restart a Flow Designer flow/sub flow.
I am working with ServiceNow's FlowAPI. This API can restart a flow with its sys_flow_context record and the source record of the flow.
However, if the 'sysevent' record is deleted and no longer exists on the sysevent table, then the FlowAPI will produce an error: "The sysevent record for the supplied context is no longer present on the system."
In order to restart a flow that no longer has the 'sysevent' record present on the system, I've read online within forums that it's possible to re-create the sysevent record that was deleted and then calling the FlowAPI to restart the flow.
I am trying to test this out now. In order to test, I need to know how to create the sysevent record and what parameters to include.
QUESTION -- What is the sys_id being inputted for the 'Parm2' field? Is this what I would need to input when re-creating the sysevent?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2023 07:30 AM
Hi Dan,
I think this KB answers your question, please let me know:
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1504112
It provides an example script for recreating the fire.flow event based on an existing flow context record.
Kind regards,
Jeroen