Skip to main content
Solved

Multi-Select Value extraction within ETM

  • July 10, 2026
  • 5 replies
  • 25 views

askey-s
Sidekick (Customer)
Forum|alt.badge.img+6

On a form I have a custom multi-select field linked to the Contact Users.  When an event is created, within the ETM, how do I get the id values of each selected contact user record, please?  I need them to then add as additional users.  (I have a working process for single user, and multiple user from individual fields, but logic is defying me for a multi-select field.)

Thanks

Best answer by Paul McCulloch

If you add customFields.multiSelectValues to the Fields entry and use ‘Record to Update’ to identify the ticket to modify  then this expression should do what you want in the Addtional Affected Users field:

var msvs = outbound.self.customFieldsMap['EXTRA USERS'].multiSelectValues;
var sparseObjects = [];
for(var i=0; i<msvs.length; i++){
    sparseObjects.push({id: msvs[i].systemLookupValueId});
}
sparseObjects;

5 replies

Forum|alt.badge.img+11

So, you log tickets via assyst’s web ui. 0 or more contact users are selected in some custom field. Yo then have some channel that processes these tickets and converts the custom field selcted users to ‘proper’ additional affected users?
 


askey-s
Sidekick (Customer)
Forum|alt.badge.img+6
  • Author
  • Sidekick (Customer)
  • July 10, 2026

Hi

The ticket is logged via assystNet, but yes, that is correct. I need to extract the user ids into an array (eg [1, 2, 3]) so that that can be then fed into a datamapper that then adds them to the ticket as additional users.


askey-s
Sidekick (Customer)
Forum|alt.badge.img+6
  • Author
  • Sidekick (Customer)
  • July 10, 2026

After querying for the event, I have all the entries in the multiSelectValues block for the custom field, but it’s extracting each id from that block that is needed.


Forum|alt.badge.img+11
  • Hero (Employee)
  • Answer
  • July 10, 2026

If you add customFields.multiSelectValues to the Fields entry and use ‘Record to Update’ to identify the ticket to modify  then this expression should do what you want in the Addtional Affected Users field:

var msvs = outbound.self.customFieldsMap['EXTRA USERS'].multiSelectValues;
var sparseObjects = [];
for(var i=0; i<msvs.length; i++){
    sparseObjects.push({id: msvs[i].systemLookupValueId});
}
sparseObjects;


askey-s
Sidekick (Customer)
Forum|alt.badge.img+6
  • Author
  • Sidekick (Customer)
  • July 12, 2026

Many thanks, Paul.  This is just what I need and it works just as expected.

Steven