Requested for not populating correctly on Request and RITM while submitting the service request from cart.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-15-2020 01:59 AM
Hi All,
I have field "requested_for" on catalog item while creating request separately the "requested_for" field on Request and RITM is populating correctly but if I order two items from the "cart" where one has "requested_for" filled and other didnot have "requested_for" filled then both Item takes the "requested_for" field from the catalog which has "requested_for" filed, *Note: if "requested_for" is not filled in a service request then it should take the user who has created the request.
please find the below attachment:
1."requested_for" field in catalog item
2. two item in cart, "one having (Request one behalf of is-- Yes) while other has (Request one behalf of is-- NO)".
3. Business rule which I am using to populate the "requested_for"
*Ideally one "requested_for" should contain value of opened by, while other "requested_for" should contain "requested_for" value from service catalog.
Please help me solve this.
Thanks Shivam.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-19-2020 04:18 AM
Hi Shivam,
So are you saying BR is not working when you are adding multiple items to cart?
Please add logs to BR to check whether it triggers or not
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-17-2022 10:00 PM - edited ‎11-17-2022 10:03 PM
Hi All,
If requested for field is required as variable for a catalog item and wants to keep the field Requested for updated for both the tables RITM and Request based on user selection for variable. Try this OOTB way of doing instead
Create the requested for variable of Type Requested for as shown in pic below,