Call record producer from UI Action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2016 10:20 AM
Is it possible to call a record producer from an UI Action and place values from the current form into variables on that record producer?
I am attempting to create a new catalog item request from a CMDB table. Whenever I click on the UI Action it should populate the record producer and submit it without leaving the current page that I'm on. I know you can get the session variables and send it a record producer via client script, but I'm looking to stay on the original page without being redirected.
Is this possible? Any help is appreciated!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2016 07:14 AM
The saveProducer(''); doesn't work for me - it just takes me directly to the record producer with my populated fields.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2017 05:49 AM
Refer the link provided, here in the second section of the correct answer, see how they are forming the 'URL'
The sys_id in sysparm_id is the record producer sys_id. Replace this with record producer sys_id of your choice. Make changes and copy this line of code in your UI action. It will redirect you to the Record Producer you want from the UI Action.
var url = 'com.glideapp.servicecatalog_cat_item_view.do?sysparm_id=c60ea0806f159500d9c316ff8d3ee400';
Reference: How do you link to a record producer and pass some of the parameters in the url?