Relate multiple assets to requests using User Options

Hello experts,

I'm looking for a way to relate multiple assets (devices, infrastructure & peripherals, etc.) to a service request using either User Options or the New Request form on the agent side.

Our specific scenario is this:

We have a service offering that includes a Rack selection field (entity link to Infrastructure & Peripherals) in the User Options. In addition, we want to allow selecting multiple Devices and other custom record types that are related to that rack. This service offering will primarily be used by agents.

We attempted a solution where we added two fields:

- An entity link field for selecting devices
- A rich text field to store the selected devices

The idea was that when someone selects a device in the entity link field, it would be added to the rich text field. As more devices are selected, they would be incrementally added to the rich text field. However, we ran into issues - it seems the After Change period doesn't save changes made during it, making it impossible to use concat() operations repeatedly on the same fields.


Has anyone solved a similar problem or can suggest a different approach?

Any help or ideas would be greatly appreciated.

  • Suggested Answer

    0  

    It appears you are combining related information from ENTITY_LINK and MANY2MANY relationships. You cannot just trigger the concatenation rule on "After Change", you also need to add it on the relevant "After adding relationship" events.

    It depends how "fancy" the formatting needs to be. For a list of linked IDs or DisplayLabel values, you can use a concat function on the relationship, without having to concatenate relatively to previous value. Here is an example:

    ${concat(entity.IncidentCausedByRequest.DisplayLabel)}