I know this has been asked before, but I didn't find any of the answers worked so I am bringing it up again.
As the subject says, we are using a scenario to assign multiple users to a task. The basic create task module only accepts a single user ID. Updating the task with another "Assigned To ID" seems to only replace the assignment, not add to it.
Multiple people suggested using the misc action module, selecting task, then "assignMultiple" which seems pretty straightforward, but I keep getting errors. According to the module, userIDs and roleIDs are required, but I can pass "emptyarray" for the roleID. Attaching a screenshot of the error I get, I'm not sure what it's referring to.
Solved! Go to Solution.
I would recommend using Dev Tool -> Scenario debugger to see what is going on behind the scenes. Your problem was that you did not check the map button. The empty array was going inside of an array.
Is it because your second entry in the userIDs array is blank?
Views
Replies
Total Likes
I should have taken a different screenshot, no, it does the same thing when I make sure the variables have are all populated
Views
Replies
Total Likes
Here's a new screehshot
Views
Replies
Total Likes
I would recommend using Dev Tool -> Scenario debugger to see what is going on behind the scenes. Your problem was that you did not check the map button. The empty array was going inside of an array.
thanks for the response. It seems to be something more than that. have you actually successfully used the module to create multiple assignments?
I've been working with a vendor who helps us with fusion and he suggested adding map(emptyarray) which sounds like what you are suggesting by toggling the map option.
I have tried it both ways and have just turned my assignments into an array to use the map toggle for that as well, but that still returns an error.
I also tried enabling dev tools during the last execution but it didn't seem to collect any new information.
Views
Replies
Total Likes
For the debugger to work you have to have it open when you run the scenario. Yes my module did assign 2 teams to a task. Try mapping the teamIDs manually (copy my module), if that works then there is definitely a problem with your array.
Views
Replies
Total Likes
I'm looking back at your first response and realizing I didn't notice your scenario the first time. I think my problem was always having something, whether my teamids or the empty arrays, mapped wrong at one time or another and I finally got everything set right at the same time.
Views
Replies
Total Likes
Ah, I finally got it to work. I'm posting a pic here to help any future people with this issue. There may have been a couple things that finally helped. 1. at some point I added null to the bottom teamid in case it also needed data, but I ended up taking it back out for this version.
2. I think the main issue was that for the teamIDs, I had been trying to pass the individual ids. Finally I turned the ids into an array, which I first tried mapping and pointing to, which it also didn't like (see below/above). So I turned the mapping off but pointed to the objects in the array and that finally worked.
Views
Replies
Total Likes