Populate Assignment group based on service offering and location.

mansigoel
Tera Contributor

Hi,

 

I want to update the assignment group to a particular assignment group when the condition fulfills on RITM ie. service offering is xyz and location is abc, then it should update.

For example, there is one catalog item that is being raised by GETit and RITM is generated with an assignment group. I want to update that value when the matching conditions are fulfilled.

 

I tried using assignment rules but again it doesnt work if the field has already a value and in my case assignment group already has a value, we just need to update it.

Can someone please help me here.

2 ACCEPTED SOLUTIONS

Sandeep Rajput
Tera Patron
Tera Patron

@mansigoel Assignment rule only works if the Assignment group and assigned to fields do not have any values populated. In your case if the value is already populated then you can create an onBefore Insert business rule on the RITM (sc_req_item) table and add filter condition when Service offering is xyz and location is abc in the action field you can set the value of assignment group accordingly.

 

Screenshot 2024-05-16 at 11.30.36 PM.pngScreenshot 2024-05-16 at 11.31.27 PM.png

Hope this helps.

View solution in original post

Community Alums
Not applicable

Hi @mansigoel ,

You can achive this functionlity by 2 ways 

1.) By scripting - Create Before Business Rule  table - sc_req_item and add below code 

 

if(current.service_offering == 'sys_id of service_offering' && location == 'Sys_id of location'){
	current.assignment_group = 'sys_id of assignment_group';
}

 

 

2.) As Sandeep mentioned you can also try by BR Actions.

 

Please mark my answer correct and helpful if this works for you

Thanks and Regards 

Sarthak

View solution in original post

5 REPLIES 5

Sandeep Rajput
Tera Patron
Tera Patron

@mansigoel Assignment rule only works if the Assignment group and assigned to fields do not have any values populated. In your case if the value is already populated then you can create an onBefore Insert business rule on the RITM (sc_req_item) table and add filter condition when Service offering is xyz and location is abc in the action field you can set the value of assignment group accordingly.

 

Screenshot 2024-05-16 at 11.30.36 PM.pngScreenshot 2024-05-16 at 11.31.27 PM.png

Hope this helps.

Hi Sandeep,

 

Thankyou for your solution. I though of the same solution but, I have multiple locations that need to be configured as conditions. So, it will be tough to hard code each value in the BR.

 

We don't have other solutions other than this right?

Hi @mansigoel ,

 

so you have multiple location and based on each location selected you have to set assignment group ? then you can go ahead with the scripting part in before insert BR.

 

Please mark this comment as Correct Answer/Helpful if it helped you.

Regards,

Swathi Sarang

Community Alums
Not applicable

Hi @mansigoel ,

You can achive this functionlity by 2 ways 

1.) By scripting - Create Before Business Rule  table - sc_req_item and add below code 

 

if(current.service_offering == 'sys_id of service_offering' && location == 'Sys_id of location'){
	current.assignment_group = 'sys_id of assignment_group';
}

 

 

2.) As Sandeep mentioned you can also try by BR Actions.

 

Please mark my answer correct and helpful if this works for you

Thanks and Regards 

Sarthak