Duplicate Request and its associated Requested Items

bistr
Kilo Contributor

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

1 REPLY 1

larstange
Mega Sage

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