- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-25-2023 12:42 AM
Hi All, In Flow Designer, for order task i want to auto populate assign to field is current logged in user. any one help me on that.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-26-2023 05:36 AM
Please discuss with your customer what do they mean by logged in user
are they referring to the user who raised the RITM?
if yes then do this
return fd_data.trigger.request_item.request.requested_for;
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
‎06-26-2023 02:56 AM
As far as I know, that is not possible. You can't access the user for whom the flow is running either.
Aren't you able to use information on the record for this?
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-26-2023 05:29 AM
Hi @nidhi40 ,
Hope you are doing great.
you can autopouplate the logged in user in assigned to in flow designer bybelow steps :
Locate the flow that corresponds to the order task, find the point where you want to set the "Assign to" field to the current logged-in user.
Add a new action to update the order task .
Within the action or condition block, click on fx to use below code snippet:
task.assign_to = gs.getUserID();
4. Save the change in flow
Regards,
Riya Verma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-26-2023 08:52 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-26-2023 09:15 PM
Did you discuss with your customer about the requirement?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader