Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Suggested answer

Add Select Values to Multi Select Option Set with WEB API

Posted on by 15

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

  • Suggested answer
    RE: Add Select Values to Multi Select Option Set with WEB API

    Hi

    Does this fit what you are looking for?

    Multi-Select Picklist attributes (Developer Guide for Dynamics 365 Customer Engagement (on-premises)) | Microsoft Docs

    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:

    Use Postman with Dynamics 365 Customer Engagement Web API (Developer Guide for Dynamics 365 Customer Engagement) | Microsoft Docs

    If this was helpful, please check it as verified to help others finding useful information.

    Welcome to this amazing community.

  • Suggested answer
    meelamri Profile Picture
    meelamri 13,204 User Group Leader on at
    RE: Add Select Values to Multi Select Option Set with WEB API

    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.

  • Robin23432 Profile Picture
    Robin23432 15 on at
    RE: Add Select Values to Multi Select Option Set with WEB API

    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?

  • meelamri Profile Picture
    meelamri 13,204 User Group Leader on at
    RE: Add Select Values to Multi Select Option Set with WEB API

    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 !

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans