- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-14-2020 09:23 AM
I don't see any oob way to attach a new workflow to record producer, how can i achieve this?
Solved! Go to Solution.
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-14-2020 10:27 PM
As already mentioned it makes no sense adding workflow to record produer.
Please don't touch any OOB component such as the one you removed the advanced ref qualifier from the dictionary.
It might break in future upgrade and may lead to issue.
Instead add the workflow on the target table of your record producer.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-14-2020 09:28 AM
Hi
You cant attach a workflow to a record producer,you have to write the workflow for the target table.
eg if you have record producer for incident
then write a workflow for incident table.
So to run a workflow, you would need to do it within the workflow properties by selecting the target table or selecting a target table and a condition to run it.
Regards
Pranav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-14-2020 09:30 AM
you cannot attach workflow directly to record producer.
you will have to attach workflow to the Target table of that record producer
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-14-2020 09:39 AM
Hi Ankur,
I was trying out few things, and removed this advanced reference qualifier from the dictionary
javascript:new SNCCatalogUtil().getActiveWorkFlows('sc_req_item')
and added the workflow field on the record producer form.
I'm still facing some issues with my workflow script but I think the workflow is attached now, I don't want to go against the best practices
what are your thoughts on this?
Thanks,

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-14-2020 09:51 AM