Get Request Sys Id in On Submit Catalog Client Script

PaKe
Kilo Sage

Hey,

is it possible to get the request id which a catalog item creates? I need the information in a catalog client script.

 

I want to redirect within an on submit catalog client script and need the request sys id for the url

 

Thanks!

 

1 ACCEPTED SOLUTION

@PaKe 

you cannot get REQ sysId in onSubmit catalog client script.

what you can do is create after insert BR on REQ and set the redirection URL and there you will get the REQ sysId

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

View solution in original post

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

@PaKe 

what's the use of that sysId.

which request id you are referring? REQ and RITM gets created after submission and not before that

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

I want to use this sysId in my url.

OOTB the catalog item redirects to "?id=sc_request&is_new_order=true&table=sc_request&sys_id=REQUEST_SYSID". Can I manipulate this url? 

@PaKe 

you cannot get REQ sysId in onSubmit catalog client script.

what you can do is create after insert BR on REQ and set the redirection URL and there you will get the REQ sysId

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

@PaKe 

Thank you for marking my response as helpful.

If my response helped please mark it correct and close the thread so that it benefits future readers.

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