How to check if endpoint's owner is blank or not in workflow

SriRanga
Regular Contributor
Regular Contributor

Hi Team,

We have a requirement where we are submitting a request for entitlements then approval goes to entitlement owner. If no owner defined then it will go to Endpoint Owner. If no endpoint owner defined then pass approval to Manager + Manager approval.

 

Here the question is that how can we identify if Endpoint owner is present or not. We are able find for entitlement owner with expression-(entitlement.ownerRank1.size() == 0).

 

Please help me to get the condition which we can use to check if Endpoint Owner is present or not.

 

Thanks,

Amit Aware

5 REPLIES 5

dgandhi
All-Star
All-Star

Have you tried below by any chance?

endpoints.getOwnerRank1().size() eq 0
endpoints.ownerRank1 == null
endpoints.ownerRank1.size() == 0

if possible please share the things that you tried till now which didnt work in your case.

Thanks

Thanks,
Devang Gandhi
If this reply answered your question, please click the Accept As Solution button to help future users who may have a similar problem.

SriRanga
Regular Contributor
Regular Contributor

Hi @dgandhi ,

I have tried below possible conditions which won't work-

endpoints.getOwnerRank1().size() eq 0
endpoints.ownerRank1 == null
endpoints.ownerRank1.size() == 0

endpoint.getOwnerRank1().size() eq 0
endpoint.ownerRank1 == null
endpoint.ownerRank1.size() == 0

endpoints.OwnerRank1 == null
endpoints.OwnerRank1.size() == 0

endpoint.OwnerRank1 == null
endpoint.OwnerRank1.size() == 0

 

Could you please help me out here.

Thanks,

Amit Aware

SriRanga
Regular Contributor
Regular Contributor

Hi @dgandhi ,

Could you please help here ?

Thanks,

Amit Aware

SriRanga
Regular Contributor
Regular Contributor

Hi @dgandhi ,

 

In addition to above we have tried below expressions too-

(endpoints.ResourceOwner.size() == 0)
(endpoints.Resourceowner.size() == 0)
(endpoints.resourceOwner.size() == 0)
(endpoints.resourceowner.size() == 0)


(endpoint.ResourceOwner.size() == 0)
(endpoint.Resourceowner.size() == 0)
(endpoint.resourceOwner.size() == 0)
(endpoint.resourceowner.size() == 0)

These are not working.

Thanks,

Amit Aware

Its not exposed in workflow . Workaround use dynamic attribute on request form and utilize same 

Also raise idea ticket for enhancement 


Regards,
Rushikesh Vartak
If the response is helpful, please click Accept As Solution and kudos it.