The role can be retrieved and then put into a variable which can be displayed on the page. I am attaching image of the activity.
For some reason, I am unable to insert image. So here is the content.
In the microflow, retrieve System.UserRole object from Database. Retrieve only First object and in XPath contraint, put [System.UserRoles = $curremtUser]
You will get UserRole object of the user who is logged in.
Hi Yali,
As romil suggested, you can retrieve the currentuser user role using microflow as he mentioned in his comments.
There is a one more way to get it.
Create a microflow to get current user account object and create a new micorflow to retrieve the current user userrole before that just call the previously created microflow which returns the current account object.
After retrieving the userrole, Just set name of the userrole to any attribute of the entity and then use that attribute to display to the user.Please find an image below for reference.
https://pasteboard.co/J6DSBwA.jpg
Hi Romil and Stlla,
i just solve my problem by using Data view grd to show UserRole instead text widget.
but thanks all the same for your help!