Approval state gets set to default value.

John Doe3
ServiceNow Employee
ServiceNow Employee

I have an independent table A that contains a 'state' field with some choices, such as 'submitted''approved' and 'rejected'. I created a relationship of this table with the Approval table ("sysapproval_approver"). I defined a Flow that when a record in table A is updated to 'submitted' state then it asks the user for approval. An approval record shows up in the UI as related item of the form of table A. 

I can approve the related Approval record and the correct state gets updated in table A, but if I reject the Approval record the state would be set to 'not requested', which I found out is the default value for column 'state' in '"sysapproval_approver". I can't understand why approve works flawlessly but reject gives me trouble, any helps?

Approve:

find_real_file.png

Reject:

find_real_file.png

1 ACCEPTED SOLUTION

Okay. You just need to update your "Ask for Approval" action here.

For example you need to include both Approve and Reject condition in your Action as shown below:

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

 

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

View solution in original post

7 REPLIES 7

Okay. You just need to update your "Ask for Approval" action here.

For example you need to include both Approve and Reject condition in your Action as shown below:

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

 

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

@john Doe . So just click on "Add another OR condition" as shown in Red above and add a Reject condition and it should be all good.

Do let me know if you are facing an issue here.

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

 

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Anil is saying the same thing which I have posted before on how you should proceed on this requirement.

Hope this helps. Let us know if you need further help on this.

Regards,

Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke