- 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 10:13 AM
Hi Pradeep,
I've added the workflow field on the record producer form, configured the same field and removed the advanced reference qualifier "javascript:new SNCCatalogUtil().getActiveWorkFlows('sc_req_item')" *attaching the image below
wrote a WF Create task script on Incident :
var caller = gs.getUserID();
current.caller_id = gs.getUserID(); - this is not populating yet
current.short_description = producer.ri_short_description; - This is getting populated from the record producer
current.category = producer.ri_category; - This is getting populated from the record producer
current.description = producer.ri_description; - This has some issues not related to workflow i think, maybe another script that i need to change
As short description and category are mapping on the form I think the workflow is attached.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2020 10:31 PM
Thanks for the update
- Pradeep Sharma
- 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-24-2021 04:08 PM
Hello
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2020 03:30 AM
Let me know if I that answered your question.
If so, please mark appropriate answer as correct & helpful to close the thread.
If not, please let us know if you need some more assistance.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader