Hi,
I wrote a plugin to update the name field of the connection entity upon create and update of the connection record.
The plugin seems to fire (I've thrown an exeception to verify), but the name does not get updated.
Is this again some "special" field of crm that you cannot modify?
I also tried updating in Post plugin, but no success.
*This post is locked for comments
Yes, we tried pre-val also. Customer adjusted their requirements so it's not necessary anymore. But thanks guys (and girls) for the feedback :)
Hi Roel
Have you tried to put and register as the pre validation plugin?
It works for the Case ID field.
Meanwhile the pre only not the pre validation didnt work well for case entity.
Not sure it would work as well but you might try it.
Thanks
Nope, it's not possible. Only work-around would be to "update" the name in the retrieve plugin.
Hi Roel Goens,
Update the plugin on "Pre-operation" and on which field you are write a condition try to update that field only.
For example if you write a code like
if (entity.Attributes.Contains("new_name"))
{
entity.Attributes["new_name"] = "shivaram";
}
Then modify any name and try to save that form then CRM Changed that name to "shivaram" Automatically.
Because If you update any value then CRM stores that particular value and it automatically set remaining all values as null.
And It is not recognized that value.So PreImage and PostImage Concepts come to the picture.
You can register PreImage. I know this is little bit confused.But try to debug your plugin.Then you can understand the scenario.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,134 Super User 2024 Season 2
Martin Dráb 229,928 Most Valuable Professional
nmaenpaa 101,156