Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Answered

Create PostOperation Plugin is missing Attributes/Fields, but the field is populated in CRM

Posted on by 30

Hello CRM Community,

I would like to ask if you can help me with the following problem, I have a plugin that runs on Create of the Contact entity synchronously, I'm triggering that plugin when importing an excel template, with the columns filled. 

But when I check entity or postImage object, there my field is missing, even though I have it filled in the excel and checked it in the postImage attributes.

Some Notes: When I have a template only with name and those three newly created columns for this plugin, then it works fine, but when I have some more columns on template, the value is missing.

Any ideas why could this be happening?

Thanks in advance

  • wYh0iUt Profile Picture
    wYh0iUt 30 on at
    RE: Create PostOperation Plugin is missing Attributes/Fields, but the field is populated in CRM

    Sure. Thank you

  • Verified answer
    Abdul Wahab Profile Picture
    Abdul Wahab 12,070 Super User 2024 Season 1 on at
    RE: Create PostOperation Plugin is missing Attributes/Fields, but the field is populated in CRM

    Hi wYh0iUt

    Glad to hear. Somehow it is answered... If I answer your question then please close this thread as verified.

    Let me know if I can provide you with more details.

    Thanks
    Regards,

    Abdul Wahab
    Power Platform/Customer Engagement Developer/Lead/Solution Architecture/Project Manager
    Direct/WhatsApp:+923323281237
    E-mail: abdulwahabubit@outlook.com
    Skype: abdul.wahabubit
    Linkedin: www.linkedin.com/.../

  • wYh0iUt Profile Picture
    wYh0iUt 30 on at
    RE: Create PostOperation Plugin is missing Attributes/Fields, but the field is populated in CRM

    Hey Abdul,

    Thank you for the quick reply. Yes, it worked as a workflow but had to create the whole thing and it's going to be more time consuming to pass it to another environments and remove that plugin from the other environments, I think.

    A-sync didn't work.

    I've figured out I can do a retrieve of that entity and that field will always will be retrieved, as long as it's populated, like I do in the custom workflow to get the execution entity.

    Workflow
    
    Contact CONTACT_ENTITY = Framework.Retrieve(new EntityReference(Framework.PluginExecutionContext.PrimaryEntityName, Framework.PluginExecutionContext.PrimaryEntityId)).ToEntity();
    
    Plugin 
    
    Contact CONTACT_ENTITY = Framework.Retrieve(entity).ToEntity();

  • Verified answer
    Abdul Wahab Profile Picture
    Abdul Wahab 12,070 Super User 2024 Season 1 on at
    RE: Create PostOperation Plugin is missing Attributes/Fields, but the field is populated in CRM

    Hi wYh0iUt 

    Are you facing the same experience when writing a workflow or workflow extension? Please check it will give you a hint whether the issue is in the extension (plugin or workflow) or with an excel template. Also, test your plugin by making it a-synchronous.

    Let me know if I can provide you with more details.

    Thanks
    Regards,

    Abdul Wahab
    Power Platform/Customer Engagement Developer/Lead/Solution Architecture/Project Manager
    Direct/WhatsApp:+923323281237
    E-mail: abdulwahabubit@outlook.com
    Skype: abdul.wahabubit
    Linkedin: www.linkedin.com/.../

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans