
Hi All,
I need to remove Previous optionset values from Optionset. Then retrieve the optionset values from JSON based on some query and then set those values in the optionset. Adding option in optionset using Addoptions() not working.
Can any help on this issue.
Thanks in advance.
Hi,
Please check if the usage is proper as per -> https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/clientapi/reference/controls/addoption
Also note that you can only add the option which is already defined in the field meta-data. If optionset values in JSON are not defined in the field then they will not be added to the field using the above method. You need to add those values in field definition first.