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

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

Plugin Oncreate post image and entity concept for attribute extraction

(0) ShareShare
ReportReport
Posted on by 834

I recently saved my entity from Lead to opportunity, and i thought once the entity is created i will use postimage to extract the data, then my colleague told me that just by using the entity as target from context all data can be accessed. I am unable to understand it, I know the concept of postimage and preimage, now here before create as there was no data so preimage don't exist and plugin preoperation if has any values that might be coming from lead. 

How I am able to extract all the field columns on create from entity, as i am thinking it has not been created yet and as my operation is post  so may be by that but then what's the use of postimage for oncreate? 

I have the same question (0)
  • Suggested answer
    Johao Larios Profile Picture
    1,795 on at
    RE: Plugin Oncreate post image and entity concept for attribute extraction

    Hello Ravi,

    First at all, you should get some understanding on the execution pipeline: docs.microsoft.com/.../event-framework

    The Pre and post operations are different, and the target entity will change.

    Target entity will contain values only for the fields that have data that is being sent to the database.

    Pre and post images, will contain the fields for all the values(you can filter what attributes do you want and do this filtering is a best practice)

    We recommend work with images as much as possible, because if you need a value from the target entity that is not coming, you must do some retrieve to the database to retrieve it and it will add more processing time to your plug-in.

    docs.microsoft.com/.../register-plug-in

    regards

    If this answers your question, please mark it as an answer.

  • Suggested answer
    Jomy Jose Profile Picture
    290 on at
    RE: Plugin Oncreate post image and entity concept for attribute extraction

    If you need all fields on create then you have to register the post image on create step. When you save a create form it having only the data, which you are providing. So on create without post image you will get only the fields where you entered values. Before the record getting actually created some more fields were filled by system(Fields filled automatically by system and JavaScript code).

  • Suggested answer
    Bipin D365 Profile Picture
    28,981 Moderator on at
    RE: Plugin Oncreate post image and entity concept for attribute extraction

    Hi,

    Post Operation on Create plugin Entity as Target will have most of field available which User has submitted from form.

    The benefits of images

    One of the best uses for this is in update plug-ins. As mentioned before, update plug-in target entity only contains the updated attributes. However, often the plug-in will require information from other attributes as well. Instead of issuing a retrieve, the best practice is to push the required data in an image instead.

    Comparison of data before and after.

    This allows for various audit-type plugins, that logs what the value was before and after, or calculating the time spent in a stage or status.

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daniyal Khaleel Profile Picture

Daniyal Khaleel 147

#2
DAnny3211 Profile Picture

DAnny3211 134

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 70 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans