cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Dynamic roles in Agent Assignment

Former Member
0 Likes
486

Dear All

I have a requirement of assigning dynamic roles which is stored in container element. When i select the role in the agent assignment of the task all the system roles come in the drop down. How to assign the role stored in the container element in agent assignment.

Thanx in advance

Accepted Solutions (0)

Answers (1)

Answers (1)

pokrakam
Active Contributor
0 Likes

You can use a simple rule that returns the agents having that role FM PRGN_READ_USERS_FOR_ONE_AGR will do the trick.

Or else I think you can just use a role as an expression (haven't done this myself). Just as you would pass in USUSERNAME, prefix it with AG. You may have an issue with data types though if the role name is longer than the standard HR object name, I haven't tried it for this very reason.

Former Member
0 Likes

Dear Mike

I have used PRGN_READ_USERS_FOR_ONE_AGR in rule but it is giving error the function does not meet workflow convention. I have also use the FM ME_REL_GET_RESPONSIBLE but the agent is not able to determine there.

Regards

pokrakam
Active Contributor
0 Likes

You need to write your own FM that calls this and passes the results back to the rule. Sorry if that was not clear.

Former Member
0 Likes

The problem is solved through general task.