Set Assignment groups based on location

Priya155
Giga Expert

Hi all,

My requirement is on “sc_task” form, when record gets created then based on location of “Requested for” I need to set the Assignment group.

I tried to achieve this as below:

Get location of “Requested for” in a field say “u_location_of_requested_for” and then create an Assignment rule ( System  policy --> Assignment)

If u_location_of_requested_for = L1 then Assignment Group = AG1

If u_location_of_requested_for = L2 then Assignment Group = AG2

Please guide me, is this correct way to achieve this?

-------------------------------------------------------------------------------------------------------------------------------

I got “Requested for” and Requested for’s location on “sc_task” form. Which are reference fields.

 find_real_file.png

Now I tried to get “Location” in a customize field “u_location_of_requested_for” using client script (on submit) OR  Business rule (Insert) but value is not getting set.

Please help ,How can I achieve this?

Thanks,

Priya

1 ACCEPTED SOLUTION

Prateek kumar
Mega Sage

Why do you need another field?

Create your assignment rule as

CatalogTask.request>requested_for>Location-- is L1-- Assignment group is AG1


Please mark my response as correct and helpful if it helped solved your question.
-Thanks

View solution in original post

9 REPLIES 9

Prateek kumar
Mega Sage

Why do you need another field?

Create your assignment rule as

CatalogTask.request>requested_for>Location-- is L1-- Assignment group is AG1


Please mark my response as correct and helpful if it helped solved your question.
-Thanks

Thanks Prateek for reply.

In Assignment rule, i selected in Applies to--> Conditions  as 

"CatalogTask.request>requested_for>Location"

but its not allowing me to set value of location as L1.

 

 

You dont have to dot-walk into location fields.

Just stop at Location and select your required location

find_real_file.png


Please mark my response as correct and helpful if it helped solved your question.
-Thanks

Thanks Prateek for reply.

When Assignment rules fired?

Like in this case only when record get submitted in "sc_task"?