Populate Assignment group Asset reclamation task

Arun Priya
Tera Contributor

Hi All,

I need to auto populate Assignment group in "asset reclamation task" based on the Requested for location managed by group.
This asset reclamation request are raised from a record producer.

 

Can some one help me to understand on how to implement this requirement.

 

23 REPLIES 23

Hi @Siddhesh Wani1 

 

I tried this business rule after insert it is not working. The backend variable of requested for and business rule is attached in screenshot.

It's After business rule might you need to use the current.update(); so the value will be set in the field.

Bhuvan
Kilo Patron

@Arun Priya 

 

You can set the default value of the field from system dictionary. Refer below for documentation

 

https://www.servicenow.com/docs/bundle/xanadu-platform-administration/page/administer/field-administ...

 

If that does not work, you can create a before Business Rule and set the assignment group by dot-walking the requested for location -> managed by group.

 

If this helped to answer your query, please mark it helpful & accept the solution.

 

Thanks,

Bhuvan

svirkar420
Giga Guru

Hi @Arun Priya , To autopopulate the assignement group based on certain conditions you can use the assignemt rules that is one way, but if the condition logic is more complex you can always use the client scripts:

Usually for this kind of requirement OnChange client script are best - 

e.g. 

var location=g_form.getValue('requestedfor.location');

if(location=='location'){

g_form.setValue('assignment_group' , 'grp_name');

}

You can add more complex conditions to this as well.

 

If this solution helped you Please Mark this solution as accepted and helpful as it will be helpful for other users as well.
Best Regards.
Saurabh V.