Hello everyone,
One of our scenarios is updating task assignments depending on the user role. Everything is working fine if it's a Primary Role, but if the user has needed role as Other Role, the scenario does not see it. It sees only the Primary Role.
For example, the user has Primary Role as Manager - 75% and Other Role as Programmer - 25%, and I need to assign task to the Programmer, but the scenario does not see this other role. How can I get the Other Role value to be able to use it and assign the task?
Any thoughts or workarounds?
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
I was able to tweak the custom API call in my test scenario to at least output the related jobs roles. I'm still a Fusion newbie, so I'll defer to the more experienced here for how to iterate through the different roles in order to assign the tasks properly.
Well, I'm stumped.
userRoles are a collection under Users. I have a user report that shows user roles, indicating percentages and what role is the primary (I'm guessing the text mode came from some a source somewhere here in the forum):
description="Primary" indicates the user's primary job role
displayname=Job Roles (%)
listdelimiter=<p>
listmethod=nested(userRoles).lists
textmode=true
type=iterate
valueexpression=CONCAT(IF({user}.{roleID}={role}.{ID},CONCAT("[Primary] ",{role}.{name}),{role}.{name})," (",{timePercentage},")")
valueformat=HTML
In Fusion I can get the userRole IDs for a given user. However I can't seem to then get the roles (roleID or role name) for them.
Hopefully someone can figure out that piece.
Views
Replies
Total Likes
Thank you for sharing.
Yes, that's the problem, that when I try to pull user role, there is only primary role in output, not the other
In reporting I can display the user's primary role, all user roles, and the related job roles for those user roles:
I can get Fusion to output the multiple user roles, but I'm stuck at connecting those user roles to their related job roles:
I get this too, I just can't use it the way I need
Views
Replies
Total Likes
I was able to tweak the custom API call in my test scenario to at least output the related jobs roles. I'm still a Fusion newbie, so I'll defer to the more experienced here for how to iterate through the different roles in order to assign the tasks properly.
@KristenS_WF That's awesome! You've got it!
I was able to replicate it and then extract it into variables that I can use in my scenario!
Thank you so much for your help!!
Views
Likes
Replies
Views
Likes
Replies