How to submit the Record producer using Script

ramesh_r
Mega Sage

Hi All,

Is this possible to submit the Record Producer from the script .? if ye kindly provide the sample script or any sample

 

 

Thanks

Ramesh R

 

 

1 ACCEPTED SOLUTION

Carlos Candano
Mega Guru

Hi Ramesh

Your Raw value needs to be enclosed inside the variables object.

ex. {'variables':{'description':'description','short_description':'short_description'}}

View solution in original post

14 REPLIES 14

TzachB
Giga Contributor

@ramesh.r 

what you get in the response status code & response body when you testing your request?

Ankur Bawiskar
Tera Patron
Tera Patron

@ramesh.r 

check this link on how to use CART API

How to submit a catalog item using the Rest API

check this link on how to use Script for that

How to Trigger change workflow/record producer from transform script

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi Ankur,

 

I use the Rest Explore API module to submit the record producer. I can able to create the target record but variable values are not passing

 

find_real_file.png

 

find_real_file.png

Thank

Ramesh R

Hi,

I doubt if you can achieve this using Cart API as it is for only RITM

It is not designed for Record Producer variables.

So only way is to use Script

Link I already shared

I didn't find anything for the API Docs as well

Service Catalog API

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@ramesh.r 

Hope you are doing good.

Did my reply answer your question?

If so, please mark appropriate response as correct & helpful so that the question will appear as resolved for others who may have a similar question in the future.

Thanks!
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader