Hi,
how can I just add values to a mutliselect option set with REST / ODATA Web Endpoint?
I can patch values, but they are always overwrite the existing ones. Is there any way to just add values?
For sure, I can GET all values, add the new ones and send this, but then I have doubled effort.
Best,
Robin
Hi
Does this fit what you are looking for?
By the way... when working with Web APIs, I strongly recommend using Postman. Here more info of how you can integrate it to the environment:
If this was helpful, please check it as verified to help others finding useful information.
Welcome to this amazing community.
I'm sorry. I misunderstood your need.
Unfortunately, I don't see how you can add a new option to the multiselect without having its initial state.
Hi Mehdi,
Thanks for your answer, but it does not fit the question.
This command is for adding a new option in the multiselect set itself. But I just want to select a new value in a record.
So: My multiselect option set has 5 values. In my record there are 2 of them selected. Now I want to add a new value (of the possible 5) to the record without getting the earlier selected values before.
Is there a way to do so?
Hi,
You need to use InsertOptionValue Action. It works for simple and multiselect optionset.
Please refer to docs: https://docs.microsoft.com/en-us/dynamics365/customer-engagement/web-api/insertoptionvalue?view=dynamics-ce-odata-9
Good Luck !
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156