Scripted API - RITM creation

biasto
Tera Contributor

Hello, 

 

I have a working scripted rest api that will allow to create a RITM and just after add MRVS to that RITM. 
Everything works... BUT only if the user has admin role, I've tried multiple permissions without success (contract_manager, catalog_*)

without admin role, it fails with the confusing error message: {"result":{"status":"error","message":"Your cart has item(s) no longer available. Please remove New Company from cart to continue with the checkout."}}

But I verified and cleaned the cart (sc_cart) each time before doing the call.

Anybody has an idea how to solve that issue?

BR
Tobias

1 REPLY 1

Tanushree Maiti
Tera Patron

Hi @biasto 

 

1. Ensure your non-admin user profile belongs to the correct department or fulfills the User Criteria required to access/order the catalog item.

 

2. In the user criteria, there is companies,  ensure your non-admin user fulfill that criteria

 

Sample screen shot

TanushreeMaiti_0-1780306888509.png

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti