Duplicate Request and its associated Requested Items
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-21-2016 04:10 AM
Hi,
I was wondering if it is possible to duplicate Requests and its associated Requested Items but be able to modify the Requested For and By fields?
Thanks
Regards
RB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-21-2016 04:16 AM
You will have to build this logic your self. The Requested Items might have variables on them which also needs to be duplicated.
But there is an API you can use - it basically creates a new order (submits a new cart which creates a new request + ritm's)
- Service Catalog Script API - ServiceNow Wiki
- Order a Service Catalog Item from a Script - ServiceNow Wiki
You will however need to add extra logic which loops through all the variables for each item and adds them to the new ritm's