- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-18-2018 03:05 AM
Hi everybody,
I want to pass an own ID while checking out my cart. That ID should be saved in my request table.
I have an customer asset, that is shown on a page in serviceportal. I have an inventory action on that customer asset -> for example "Retire". So I click on that button on my asset detail page and are forwarded to an intermediate page where i can see all information of that inventory action -> for example what it means to retire that customer asset. When the user checks out, an Retire catalog item is added to my cart and when i checkout that cart, i want to save the customer asset id in my request table so that i know -> its an retire catalog item but which customer asset should be retired.
I have already copied and extended the catalog checkout form widget. And i see that there are additionalparameter which are passed to "spScUtil.orderNow". I added an addtional column to request table "u_ca" which should be used to save that customer asset id. So i also added u_ca: "12312312" to that additionalparameter array but it is not save while ...ordnerNow is executed.
Where do i need to map that parameter from ...spScUtil.orderNow to my request table? The other additionalparameter 'like special_instructions' are also saved on my request.
Best regards,
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-19-2018 02:03 AM
This should help you
https://www.servicenowguru.com/scripting/client-scripts-scripting/parse-url-parameters-client-script/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-18-2018 11:18 PM
hmm, that would be a solution but this extra parameter is some important ID for me and it would be better to see it as part of the request table. So do you see a possiblity for this case as well?