web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Plugin: context post image not there

(0) ShareShare
ReportReport
Posted on by

Using Dynamics CRM 2016 and CRM Dev Tools 2013 on VS 2017 community edition

When an Activity is updated, I want to update the related Opportunity.  In the test, when the Phone Call scheduledstart is updated, the plugin fires and is supposed to get the regardingid from the postimage.  Unfortunately, when I debug after profiling and look at the context.PostEntityImages there is no image.

Looking at the Plugin Registration Tool the postPhoneImage appears to be registered under the PostPhoneCall step.  This is my first post-image plugin and I feel like I am missing something basic.  Any suggestions?

Here's the code that loads the post image:

if (localContext == null)
            {
                throw new ArgumentNullException("localContext");
            }

IPluginExecutionContext context = localContext.PluginExecutionContext;

Entity postImageEntity = context.PostEntityImages["postPhoneImage"];

*This post is locked for comments

I have the same question (0)
  • Daniel Wikell Profile Picture
    2,360 on at

    Which name have you registered your post image under? If you debug and check the contents of the PostEntityImages array, is it empty or do you perhaps have a post image in there but under a different name than "postPhoneImage"?

  • Jan Gracelin Jeno Profile Picture
    150 on at

    Have you selected the regarding field in post image in plugin registration tool?

  • Community Member Profile Picture
    on at

    the contents of the PostEntityImages array is empty

  • Community Member Profile Picture
    on at

    Yes...but we're not getting that far.  I can't even see the post image.

  • a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    Can you please provide screenshots of your Step and Image from Plugin Registration Tool?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans