Limit of number of items in Cart API through scripting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2023 12:28 PM
Hi All,
I have a requirement to create RITM automatically through script and want to know the limitation of cart API. They want to run audit process in Servicenow to validate whether users are still using the desktop or not. For this they want to run the job yearly once, and send notificiation to user for their confirmation. So how to create the ritms, it should be through schedule job and cart api functionality or should we create a flow for this? In both the cases i want to know the limitation since harwdare assets is huge table and number of records will be greater than 50k.
Thanks!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2023 06:16 AM
adding item to cart is something which will happen in backend and ideally there should not be any such limit also it won't impact performance. I would recommend doing it in off-business hours.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2023 06:19 AM
But creating almost 30k RITM's under single request under one request is best practise and coming to performance, there are other integrations in place which are creating RITMs as well in the backend. Also can we add 30k items with details in cart? As it need to trigger emails post that as well so i dont think it is not a best practise to do that and want to know the limit.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2023 06:22 AM
then it's not best practice.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2023 01:32 PM
I tried searching in community but couldnt find any article where they mentioned about the maximum number of requests we can add to cart. Based on your experience, if the catalog item needs to be created through script at off business hours without imapcting performance how may items can we add to cart? is it 150 or 200 or 500, what is the best practise around this.
Appreciate your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2023 08:52 PM
Even I am not sure on the number of items
You can use it and check if it's impacting
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader