web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Forums / Sales forum / Retrieve the Optionset...
Sales forum

Retrieve the Optionset Values from JSON and set that values in the Optionset

(0) ShareShare
ReportReport
Posted on by 340

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.

I have the same question (0)
  • Suggested answer
    unizap Profile Picture
    on at

    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.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Sales

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans