- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2018 06:56 AM
Hello Everyone,
I just want to know if anybody here knows where can I find the documentation of sn_sc.CatItem().submitProducer(). I can't seem to find it in the Service Portal documentation.
The scenario is we have one Record Producer (Scoped), this record producer will update existing record from our custom table but when we submit the form it will says that there's a new record created.
checked the function postCatalogFormRequest() {} from SC Cat Item widget and it's calling /api/sn_sc/v1/servicecatalog/items/{sys_id}/submit_producer API and this API contains new sn_sc.CatItem().submitProducer(). I don't know where to check next since I can't find any documentation for this function.
Note: There are no script/s that inserts/creates new value.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2018 10:10 AM
Hi there.
Found this by complete accident, but I've had similar needs and wanted to make sure you were running this line in your record producer script as the last line:
current.setAbortAction(true);
This keeps the record producer from progressing with its default behavior. I also recommend...
producer.redirect = '<your url>';
//and-or
producer.portal_redirect = '<your url>';
...which will control the behavior after you've submitted the record. I don't know if this solves the problems you were facing or helps at all at this point. For what it's worth, the documentation on submitProducer is MIA for me as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2018 10:10 AM
Hi there.
Found this by complete accident, but I've had similar needs and wanted to make sure you were running this line in your record producer script as the last line:
current.setAbortAction(true);
This keeps the record producer from progressing with its default behavior. I also recommend...
producer.redirect = '<your url>';
//and-or
producer.portal_redirect = '<your url>';
...which will control the behavior after you've submitted the record. I don't know if this solves the problems you were facing or helps at all at this point. For what it's worth, the documentation on submitProducer is MIA for me as well.