- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2024 03:39 AM
A Business Rule will run before or after insert/update - that really means before the database action, so you need to submit/save the record either way. It sounds like you want to see the Assigned to and Assignment group fields populate on the form when the Service offering field is populated or changes. To do this you will need an onChange Client Script. Client scripts can't dot-walk to related fields, so your onChange Client Script will need to use GlideAjax to call a Script Include. This is an often-used tool to have in your belt. Here is an excellent guide on how to do this.
In your case If the newValue (service offering sys_id) is one of the two that belong to ACD or Call Center, you will pass in the caller_id as a parameter. The Script Include will run the GlideRecord from your first attempt and return the two custom fields for the client script to set on the form. Give the scripts a try, and if you're stuck post each script using the insert code icon </> and we'll get it sorted.