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 have registered a post-image (with all attributes) for my plugin in CRM Online.
However, the multiselect optionset field is always null when I get it from the post-image.
Entity postImageEntity = (context.PostEntityImages != null && context.PostEntityImages.Contains(this.postImageAlias)) ? context.PostEntityImages[this.postImageAlias] : null;
var values = postImageEntity.GetAttributeValue<OptionSetValueCollection>("new_multioption");
If I retrieve the record using the service.Retrieve, then everything works fine. But this is not good at performance.
Does anyone know why this happens?
Multiselect optionsetset field is not available in filtering attributes and pre/post image.
See below article for your reference and workaround.
Above article is older, so I would suggest you to use latest version of plugin registration tool and instead of selecting all attributes in post image. Check and see if multi select option is appearing in list of attributes.
Download latest sdk tools - http://xrm.tools/
Please make sure that the multiSelect Optionset field is appearing in the parameters list inside the plugin registration tool and is being marked as below
if not please use the latest update of the tool.
if the problem still exist please share with me the line of code of retrieving the image attribute values.
Hi Menna El Sayed Galal,
Yes, the MultiSelect attribute is shown in the registration tool, but the issue still exists.
Here is the code I use to get the value of the MultiSelect field from the image:
Thanks for your help,
The code you mentioned is not from image instead you are getting it from service call Retrieve.
Can you pls confirm if you have used different code to get value from image.
Hi Bipin Kumar,
I updated my post (my code is correct, but I had some mistakes when copying the code here).
The point here is that when I debug the code, I see that the multiselect attribute in the post-image is always null.
Have you experienced this issue before? And you could really get the value of multiselect field in the post-image?
Today I verified in my instance and i was able to get multi optionset field value from post image.
I have registered plugin steps on Account entity, message is create and execution pipeline is Post Operation. Also I have registered post image and selected multi optionset fields.
See below screenshot and highlighted section where we are able to get multi optionset value.
Have you tried with the Post-Update plugin? I got the same issue before with the image of Post-Update plugin (not Post-Create in your case).
Could you please check that?
Business Applications communities