Hi ,
I have a account entity lookup on case entity and a global multiselect optionset being used on both level account and case.
My requirement is to set the multiselect option set values from account level to case level during the on change of account lookup field on case level.
I have done this thing through JavaScript (rest API) and I have an array in which all the multiselect option set values from account level but I am not able to set this array into multiselect optionset field on case Level.
var array = new Array();
var multiselect = result["schemaname of account multiselect field"]; //result is coming from rest API and giving the data in string form
array = multiselect.split(",");
formContext.getAttribute("caseMultiselect").setValue(array);
Please suggest .