PARTNERS - Please join us for our upcoming webinar:
Leveraging Intelligent Recommendations for Operational Transformation.
AMS Partners click HERE | EMEA/APJ Partners click HERE

How to get the Object type in an if-else block of an workflow

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on October 27 2020 at 12:49 UTC

Hi All,

I'm trying to create a workflow that will route a request based on the object type being requested, i.e role or entitlement.

Is there a way i can get the object type being requested in an if-else block of a workflow?

Is there something on the REQUESTACCESSOBJ ?

Do we have any documentation that shows all the attributes available from the REQUESTACCESSOBJ?

Thanks in advance.

Ousman

This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.
3 REPLIES 3

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on October 27 2020 at 21:17 UTC

Hi Ousman,


You can use below condition in your if-else block to check if requested access is role or entitlement
Note : (Language should be selected as "groovy" in if else block)


requesttype =1 for role

requesttype =2 for entitlement


if-else condition

com.saviynt.ecm.workflow.Request_Access.get(new Long(requestaccesskey)).requesttype == 2

This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on October 28 2020 at 09:38 UTC

Hi Aarthi,


Thanks you, working as expected.


Regards,

Ousman



This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on June 23 2021 at 09:43 UTC

Hello Aarthi,


For application roles request how can we retrieve the requested application role name in serial approval workflow? Object - REQUESTACCESSOBJ is null in case of application roles request.


Please share if any pointer.


Thanks,

Pallavi

This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.