jimminybob
jimminybob

Reputation: 1442

CRM 2011 plugin - get field value when not updated

In my plugin i want to be able to get a field value, but right now I can only get it if it has been updated on the form. Currently i'm using an entity.contains() function and then a retrieve, but this doesn't work for just getting values in the form if the field hasn't changed.

Does anyone know how I can do this?

Thanks

Upvotes: 3

Views: 2570

Answers (2)

Srinivas Hsk
Srinivas Hsk

Reputation: 398

While Message is Update.All field values should be false in crm record accept that what you are Updating. for that you have to use Pre or Post Images it will directly fetch data from sql database transactions.

Upvotes: 0

BenPatterson1
BenPatterson1

Reputation: 1482

You need the pre-image. The pre-image contains the entity as it was prior to the update. You can regiester a new image with the plugin registration tool.

Upvotes: 7

Related Questions