Compare userrole

I have a feature that user and staff ( lower user role ) that can create edit and delete their own object  but staff can’t delete object that user create  otherwise user can delete or edit object that staff create  i515 = staff  role HR = user role  I think i will use microflow  and i got struck because  constrant function user_role didn’t exist anymore.
1 answers

Hi Teetach,


Before your decision split you need to retrieve the userrole from database. You can write your xpath like this: id = '[%UserRole_User%]'.

When you retrieve the UserRole first, you can use that object in your decision.


Hope this helps,