Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Request Item Price, plus quantity to trigger approval

smithro
Tera Guru

Hi All,

 

We have a request item approval flow that triggers a manager approval when the price is greater than $300.  However, it's not factoring in the quantity the user is ordering.  

 

For example, a computer monitor is $175 which doesn't require approval.  But if the user orders 2 of them, the total is $350 and we want this to trigger manager approval.

 

What would the flow look like for considering the quantity?

 

1 REPLY 1

James Chun
Kilo Patron

Hey @smithro,

 

I believe the total price is rolled up to the Request record.

 

So within your Flow 'If' logic, you can do either something like request_item.request.price > 300

JamesChun_0-1709318626011.png

 

Or use a Flow variable to store the total price of a RITM and use it within the 'IF' logic.

JamesChun_1-1709318773328.png

 

Note that the first option is only feasible when you have a single RITM with REQ.

So I would recommend the 2nd option.

 

Cheers