in flow designer we need to get the logged in user info instead of user who initiate session

vijani
Tera Expert

Hi
In the flow, I have set the 'Run As' to the user who initiated the session, so it shows as assigned to that person. However, in the updated comments, we’ve included my profile link. After executing the flow, when I click on my profile link in the comments, it redirects to the profile of the user who initiated the flow (assigned to), instead of my profile but i need to redirect to my profile.

 

Could someone please help me with this

 

@Ankur Bawiskar 

 

8 REPLIES 8

@vijani 

how are you testing?

If you are testing with your profile then definitely it will show your profile.

did you check with some actual end user?

Your logic is working fine

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@vijani 

as per your logic whenever user closes the HR case his/her sysId will come in flow variable and you are using that in comments.

Is that not expected behavior as per requirement?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi @Ankur Bawiskar Yes, we are getting the user closes the HR case his/her sysId  but if we impersonate with the Opened for and trying click the comment link from the portal its showing HR case closed user profile instead of impersonated user.

@vijani 

So if user ABC closed the case, it puts ABC user sysId in comments link -> this is fine. what happens if ABC sees the HR case on portal? what happens when they click? where is the user taken

Now if DEF is the impersonated user and when they open that HR case the comments will still have link to ABC HR profile -> what happens if they click and what should happen

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader