- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-21-2017 04:57 PM
Hello all,
I am trying to assign a couple of catalog tasks to the the user in the Opened_by field. I've looked at other posts and I see many suggest to use task.assigned_to = current.opened_by and I added that script to the task.
My problem is that instead of the task assigning to "Opened_by", it assigns to the user who fulfilled the previous task. I also tried changing the display value for Request table from Number to Opened by, but that didn't make a difference.
Has anyone had the same problem or know how to fix this?
Thanks in advance!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-22-2017 10:10 PM
Hi Grace,
This might me happening because the activity which is creating the task is getting invoked by the action to user who is completing previous activity(Previous task in your case). That is why assigned to is being set to the user who is closing previous task.
To Avoid this you can write following line in your script and run it before insert.
current.assigned_to = current.request_item.opened_by;
Please Like, mark helpful depending on the impact of response.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-23-2017 09:47 AM
Thank you! It finally works!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-23-2017 10:27 AM
Pleasure to help
Hope you get the justification as well for the issue.
Please Like, mark helpful depending on the impact of response.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-19-2021 02:32 PM
I see this is 4 years ago, would there be a different script logic for catalog tasks in Flow Designer? I'm working with the same issue trying to get a catalog task to assign to the "opened by" user and am unable to link it for some reason.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-20-2021 04:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-20-2021 11:29 AM
I figured it out, thank you! I was pointing to Opened By > Name instead of just Opened By in case this helps anyone else!