How to append values to exiting client setting

Hi, I am trying to write a fixlet which will read exiting values of the setting “_BESClient_RelaySelect_FailoverRelayList” and then add three more servers to it.

Existing Value of this setting is different for each client so that’s why I need to read the exiting value into a variable and then add 3 more comma separated server names to that value and then update the setting with new value.

Existing value of “_BESClient_RelaySelect_FailoverRelayList” on one client -Server1,server2,server3,server4,server5,server6
Three new relay servers: server7, server8, server9
New value after the fixlet executes on the client : Server1,server2,server3,server4,server5,server6,server7, server8, server9

Thanks for your help.

The following accomplishes what you’re requesting but doesn’t account for cases like applying the action twice:

parameter "current_list" = "{value of setting "_BESClient_RelaySelect_FailoverRelayList" of client}"
parameter "additional_relays" = ";server7;server8;server9"
parameter "new_list" = "{parameter "current_list" & parameter "additional_relays"}"
setting "_BESClient_RelaySelect_FailoverRelayList"="{parameter "new_list"}" on "{parameter "action issue date" of action}" for client
1 Like