Add an approver with IF condition

Burhan Shah
Tera Contributor

I want to add an approver to my current workflow only if a request is submitted by a user of a specific company and the approver will be the same for all requests submitted by a user of a specific company.

Below is the screenshot for your reference:

find_real_file.png

1 ACCEPTED SOLUTION

@Burhan Shah 

So take if activity and use the logic which I given in script section and code the yes node to new approval activity.

Let me know if any queries.

Happy to help:)

 

Thanks,

Murthy

Thanks,
Murthy

View solution in original post

10 REPLIES 10

@Burhan Shah 

So take if activity and use the logic which I given in script section and code the yes node to new approval activity.

Let me know if any queries.

Happy to help:)

 

Thanks,

Murthy

Thanks,
Murthy

@Murthy Chintalapudi Hello Murthy, I am facing an issue here, after adding the if the activity, the requests that are from other companies stopped following the existing approval cycle. Can you help here, please?

@Burhan Shah 

As per the screenshot I don't see any issue. Can you please share the code as well?
As per the logic if the requested for is not for that particular company it will return no and it will go further.

 

Thanks,

Murthy

Thanks,
Murthy

Nayan  Dhamane
Kilo Sage
Kilo Sage

Hello Burhan,

Could you please explain me more about this line 'the approver will be the same for all requests submitted by a user of a specific company.'

BR,
Nayan

If my answer solved your issue, please mark my answer as Correct & Helpful based on the Impact

Best Regards,
Nayan Dhamane
ServiceNow Community Rising Star 2023.

Hello Nayan,

Currently, We have four different companies defined. The requirement here is to add an approver user if a user from a company called 'XYZ' submits a request.

Regards,

Burhan