Record producer sys_id
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2024 04:40 AM
Hello,
does anyone know how to access sys_id of current record producer in the producer script?
/Petr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2024 05:13 AM
Please see if below link can help you
Please Mark ✅Correct if this solves your query and also mark 👍Helpful if you find my response worthy based on the impact.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2024 05:15 AM - edited 04-19-2024 05:16 AM
Hi there,
I have never tried RP.getParameterValue('sysparm_id'), so can't comment on that.
Just thinking out loud if that does not work.
current.sys_id would give you the sys_id of the newly created record. So can't use that. I don't know if there is a shortcut for your case, though there is at least a table where is stored which record producer has resulted in which record. So you might query that table? Using current.sys_id.
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2024 05:38 AM
Solved!
Solution is to call --> cat_item.sys_id
before I tried producer.cat_item.sys_id or current.cat_item.sys_id but solution is just cat_item.sys_id