Record producer approval
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2023 01:11 AM
Hello Experts,
We have created a record producer to create a new application service.
As of now If user submit a request new application service will create.
we have created a workflow but not working , dont know how to achieve it.
Table - "cmdb_ci_service_discovered"
Approval group - "SN_New_Management"
Requirment
1. we want to add Group approvals on that request after approval only new record needs to be created.
kindly support to achieve!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2023 02:41 AM
Hi @Nayan Dhamane ,
If you have any sample script pls share.thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2023 11:35 PM
Hello @akin9 ,
The script is as below:
Best Regards,
Nayan Dhamane
ServiceNow Community Rising Star 2023.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2023 10:06 PM
Hello @akin9 ,
Please mark my answer as correct if it helped you.
Best Regards,
Nayan Dhamane
ServiceNow Community Rising Star 2023.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2023 10:33 PM
Hi @Nayan Dhamane and @Ankur Bawiskar ,
Sry for the delay reply , i have achieved this requirment.
I have converted record producer into catalog item using background script
instead of create new one.
@Nayan Dhamane i have modified from your code and its updating records into the target table.
Example below ,we can add multiple fields as per your requirment.
var ar = new GlideRecord('cmdb_ci_service_discovered');
ar.initialize();
ar.name = current.variables.name;
ar.vendor = current.variables.vendor;
ar.insert();
May it will be useful to others. thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2023 01:57 AM
Hello @akin9 ,
If my answer was helpful please mark it as correct as it would provide me some motivation to keep helping.
Best Regards,
Nayan Dhamane
ServiceNow Community Rising Star 2023.
