Breaking news from around the world
Get the Bing + MSN extension
Choose your path Increase your proficiency with the Dynamics 365 applications that you already use and learn more about the apps that interest you. Up your game with a learning path tailored to today's Dynamics 365 masterminds and designed to prepare you for industry-recognized Microsoft certifications.
Visit Microsoft Learn
2019 release wave 2 Discover the latest updates and new features to Dynamics 365 planned through March 2020
Release overview guides and videos Release Plan | View virtual launch event
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 | Talent TechTalks | Upcoming TechTalks
I create new Entity - nav_role
It has Attribute - "nav_rolecode" with Type - Set of Parameters. (in Web interface you can select the desired option from the drop down list).
Each Parameter has Label and Value - so how can I set this Attribute in c#?
for example - i tried this:
Entity NavRole = new Entity("nav_role");
NavRole.Attributes["nav_systemuserroleid"] = new EntityReference("systemuser", FindUID);
NavRole.Attributes["nav_validfrom"] = DateTime.Today;
NavRole.Attributes["nav_rolecode"] = "808630010";
"808630010" it's a Value of Parameter in Set of Parameters. So it doesn't work - for "nav_rolecode"
Help me please with this....
In case of optionset you need to pass value in OptionsetValue in c# code.
Please refer below code:
NavRole.Attributes["nav_rolecode"] = new OptionSetValue(808630010);
Business Applications communities