in flow designer we need to get the logged in user info instead of user who initiate session
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2025 04:21 AM - edited 04-08-2025 04:22 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2025 06:24 AM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2025 06:27 AM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2025 06:31 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2025 06:49 AM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader