How do I "auto-approve" an Approval - User activity (not skip it) in a workflow?

Wayne C
Tera Contributor

We have a basic Workflow with an Approval - User activity followed by a Catalog Task activity. If the person that submitted the request is the approver we want the Approval record set to Approved automatically. We need to show that it was approved so we still need that Approval record generated, we just want it to immediately be set to Approved based on who submitted request. All examples of "auto approval" I've found are really just "skip approval", and that does not meet our requirements.

Any suggestions would be greatly appreciated.

1 ACCEPTED SOLUTION

Ashutosh Munot1
Kilo Patron
Kilo Patron

Hi,

In approval activity you can code this as show below:

find_real_file.png

 

 

Here you can check who is the current requestor is same as approver then approve the request in this section by setting answer = 'approved'

 

Thanks,
Ashutosh

View solution in original post

2 REPLIES 2

Ashutosh Munot1
Kilo Patron
Kilo Patron

Hi,

In approval activity you can code this as show below:

find_real_file.png

 

 

Here you can check who is the current requestor is same as approver then approve the request in this section by setting answer = 'approved'

 

Thanks,
Ashutosh

ima.png

This code is not working for auto  approval .