Shopping cart capability for multiple users or requested for's

Tricia6
Tera Contributor

We have a business requirement to have 1 user place several items in the cart for multiple other users.  Today it appears the shopping cart only allows 1 requested for user.   I want to ask for 2 or more people to get something but the RITM header requested for carries the single user from the REQ header requested for to all the RITM records.

 

Example Sara needs to request access to a system for Mary, Jane and John.  I can add multiple items to the cart and proceed to checkout but Sara is the requested for on both the REQ and all 3 RITM records.  The short description and the description from the variable set are correct but the RITM record itself carries the 1 user Sara.

 

Does this capability exist? 

 

 

1 REPLY 1

Punit S
Giga Guru

Hi Tricia, 

 

This is good question and I am happy to walk your through a few possible solutions aligned with platform best practices. 

By default, ServiceNow's shopping cart allows one requested for user per item. However, there are a couple of workarounds you can try to achieve your business requirement of having one user place several items in the cart for multiple other users.

Option 1: Create separate requests for each user Instead of adding all items to the same request, you could create separate requests for each user. This way, each request will have the correct requested for user associated with it.

Option 2: Use a custom variable to capture multiple users You could create a custom variable that allows the user placing the order to select multiple requested for users. This custom variable could be a multi-select field or a text field that allows the user to enter multiple usernames separated by a comma or semicolon.

Then, you could use a business rule to create separate requests for each requested for user specified in the custom variable. The business rule could run when the request is submitted, and it could create separate RITM records for each requested for user.

Option 3: Use a custom application or plugin If neither of the above options work for your use case, you may need to consider developing a custom application or plugin to handle this functionality. This would allow you to create a custom shopping cart that meets your specific business requirements.

Keep in mind that modifying the shopping cart or creating custom applications/plugins can be complex and may require advanced knowledge of ServiceNow development. It's recommended that you work with a ServiceNow SME or a  partner if you choose to pursue this option.

 

Please mark my answer correct/helpful in case it adds value and moves you a step closer to your desired ServiceNow solution goal. 

Thanks,
Punit