Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7837595
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T14:44:51+00:00 2026-06-02T14:44:51+00:00

I hope somone can help me with a problem I been trying to deal

  • 0

I hope somone can help me with a problem I been trying to deal with over some time now. I have a create plugin and a update plugin. For testing purposes my create plugin (Pre-Operation) does a simple calculation and puts the result on a field after save.

My update-plugin works fine when I register it on the pre-operation and change the fields I have my logic for. HOWEVER if I only change one of those fields (or get other fields dirty on the form)I get an error that the key was not present in the dictionary. I have done my research and seen that you do a check between Pre and Post Entity Image to check what fields have been updated and which not. But what I’m confused about is when I do this I need to regrister my update plugin on Post-opertion, which results to my update not working anymore and if I do service.Update(entity) at the end of my code it gives me another error of infinite loop. On my Update plugin I have made sure that I registerd two images (Pre and Post). I would appreciate if someone can advice me, how to do the checks between pre and post images?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T14:44:52+00:00Added an answer on June 2, 2026 at 2:44 pm

    We need to see your code. But I can provide short explanation what is going on there.
    service.Update(entity) call your plugin one more time, because it’s another update to entity where your plug in is registered. To avoid this infinite loop you can watch Depth property. Each new call to plugin will increase value of this property.

    If you want to know what properties were changed during update, just look into InputParameters. There will be only updated properties values.

    Pre-Entity images are available for Update message, but not for Create (it’s impossible to have an image before entity instance was actually created). But Post-Entity image presents in case of both Create and Update messages.
    So, if you need to know what properties were changed, check InputParameters. You can do this in Pre-Stage plugin. And value, updates in InputParameters will be stored in database, so you don’t need call service.Update.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I hope someone can help with the following. I'm trying to create a user-specific
I hope someone can help me. My Problem: I have 2 sortable UL's. <ul
I hope someone can help... This issue has been discussed here and I have
I'm having some javascript conflict problem, and hope someone can help me out. I'm
I hope that someone can help me with this problem that I've been having
Hello I have a problem with UIScrollView and I hope someone can help me.
I hope someone can help me with my MySQL problem. I have a bug
I have a problem with my ListActivity , i hope someone can help me.
I have a problem with CodeIgniter .htaccess file and hope that somebody can help
Hope someone can help me out with this problem I am having. I just

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.