Notifications
Announcements
No record found.
hello,
I understand the meaning of images that can be records of available in sql backend but question is how they are get the record in entity.?
*This post is locked for comments
Kiran, Pre-Image is before the Database Transaction - Like if you enter value in the text box before saving.
Post -Image is after Database Transaction - Like if you enter value in the text box after saving
Check this link for more details,
community.dynamics.com/.../pre-image-38-post-image-explained-33
Hi Kiran,
Not sure what you are asking. Can you rephrase?
In general the Preimage and Post images provide you with a snapshot of the entity either before or after the changes are committed.
For example, when a user makes a change to a particular entity and your Update message is Post-Operation, you can get the values before the entity was changed by getting the Preimage, so that you can see what the changes were.
Please expand on your question if you are looking for further details.
About Pre and Post Images, you can get these when you do Plugin development on CRM. Can you kindly rephrase your question?
Going by what you mention, once you are in the Plugin Registration Tool, you can create PrePost Images on plugin steps you register.
Thanx for Reply,
I will get the records from lookup field, Whenever the city changed on update.
new_city and new_country has two lookup field on account entity,
city=delhi and country=india on pre-image and when city=hong kong and country=india then throw the exception bcz getting wrong country ..
how is possible coding using pre-image and post-image because i dont undersand the how it working.
thank you.
I think you are approaching this the wrong way, and even if you decide to use server side code, I don't think that you need to use pre-image and post-image, because the issues is with validation.
I think the easiest thing for you to do, is on the selection of a new city, clear out the country lookup using JavaScript.
The fields should already be related, so that you only see the correct values when you select the initial value, but if you set the country lookup to null after the city is selected, it will require the user to select from a list of countries which will be the correct list.
Hope this helps.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
SA-08121319-0 4
Calum MacFarlane 4
Alex Fun Wei Jie 2