How to pass dynamic values to variables for cart item in cartjs in scripted REST API?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-03-2022 05:31 AM
Hi All,
How to pass dynamic values for variables in scripted REST API for creating cart item by using cartjs API. Can you please suggest this.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-06-2022 11:13 PM
You can close this thread by marking appropriate response as correct for others who may have a similar question in the future.
Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2022 11:47 PM
You can close this thread by marking appropriate response as correct for others who may have a similar question in the future.
Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-03-2022 05:45 AM
Hi,
You need to parse reqBody and pass it to the variables attribute the way Rohila has suggested.
Thanks,
Anil Lande
Thanks
Anil Lande