how can i create a microflow for a specific user role so that when they login they can see their details

I am creating a application where there are two user roles doctor and patient so when i log in as a patient i can see my own specific details in a page how can i create a microflow for that i have created one a single user role for these user roles...i have created the following page for the patient user role so how can i create a microflow for that
1 answers

Hi Adrija,


If you add a button to the page where you want to trigger your account detail page. You can create a microflow with a DB retrieve action. In this retrieve you can use the $currentUser token to retrieve the details of the currently logged in user and put the range to first to only retrieve a single object.




You can then add a show page action where you pass this user object to the page parameter.