how to send approval from sc_request table based on the values filled in the catalog form

Aswin Chandras1
Tera Contributor

I have a requirement to send an approval from sc_request table based on the catalog item variable.

 

Already a workflow is running on the sc_request table to create a task. Now I need to add an approval before creating the task.

I have Financial Approval field in catalog item which is referring to custom table. Once I submit the catalog item with some user in that field. I need to send an approval to the selected user in Financial Approval field from sc_request. Post Approval I need to create a task. How can se send the approval from sc_request table.

5 REPLIES 5

Mark Manders
Mega Patron

Use the 'approval - user' action and set the approver to the user from the variable.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Hi Mark,

 

How can we do that? Am bit new to development.

 

Thanks,

Aswin C.S

As far as I understand, you want to send an approval record to the user selected from "Financial Appoval" field. In order to achieve this, you need to use "Approval - User" action. If you click on that action on the workflow, click on "Advanced" checkbox. Then modify the code like below. This will send the approval record to the user selected from "Financial Approval" field.

 

 

 answer = [];
answer.push(current.variables.variable_name_of_finance_approval.getDisplayValue());

 

Hi Alp,

But it is directly getting approved and creating the task. FYI my workflow is on the request and the variable selected is n the RITM variable section. I think I need to glide RITM table and get the variable value. Can you help me with that.

AswinChandras1_0-1727756582715.png