January Problem Solver of the MonthCongratulations to Sourav Dam for be selected in our monthly random drawing, Dynamics Community Problem Solver Sweepstakes.
Read aboug Sourav | Learn how to enter
2020 release wave 1 Discover the latest updates and new features to Dynamics 365 planned through September 2020
Release overview guides and videos Release Plan | Preview 2020 Release Wave 1 Timeline
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Upcoming TechTalks
This is the code that I'm using to create my option object:
You can add options which are already exists. You cannot add any new options which does not exists in the optionset. The screenshot is not clear but it looks l;ike you have 2 items in your optionset which means you can only add remov these options. Assuming the value for the two items you have added are 802790000, 802790001, you can add/ remove it like this:
formContext.getControl("facs_worker1").addOption(setOptionAttributes("Supervisor, Sam", 802790000));
You can refer this old thread as well for better understanding.
Hope this helps.
Thanks for your response. I now understand the out of range error.
Business Applications communities