Personalized Community is here!
Quickly customize your community to find the content you seek.
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
2020 Release Wave 2Discover the latest updates and new features to Dynamics 365 planned through March 2021.
Release overview guides and videos Release Plan | Preview 2020 Release Wave 2 TimelineWatch the 2020 Release Wave 1 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 | Upcoming TechTalks
i want to fetch the optionset value through Entity collection in which i have attribute of type option set
i have following line
caseStage = Convert.ToString(((AliasedValue)LastModifiedClientContact.Entities.Attributes["caseDetails.incidentstagecode"]).Value);
but this returns me optionset
if i write like
caseStage = Convert.ToString(((AliasedValue)LastModifiedClientContact.Entities.FormattedValues["caseDetails.incidentstagecode"]).Value);
it gives me error can not convert string to aliased value.
how can i get value of optionset field using aliased value.
not able to use formattedValues as we use usually
can anybody give me line of code.
just do this:
var caseStage = LastModifiedClientContact.Entities.GetAliasedAttributeValue<OptionSetValue>("caseDetails.incidentstagecode").Value;
Pls try this..
EntityCollection results1 = Service.RetrieveMultiple(query1);
string strosvalue= null;
foreach(Entity e1 in results1.Entities)
If you are trying to get the value the use
If trying to get the text, use below:
var caseStage = ((OptionSetValue)((AliasedValue)LastModifiedClientContact.Entities.["caseDetails.incidentstagecode"]).Value).Value;
Business Applications communities