Hi guys,
I am new to CRM and I want to update a field based on another field in the same entity but I am unable to do that.
Please advise on this.
Any help on this would be appreciated.
Regards,
Bharath
*This post is locked for comments
Hi guys,
I am new to CRM and I want to update a field based on another field in the same entity but I am unable to do that.
Please advise on this.
Any help on this would be appreciated.
Regards,
Bharath
*This post is locked for comments
Hi,
Plugin will never update only one field from your attribute collection, it updates all or null. if so, then you must be checking wrong field. try to add the fields in advance find and check.
When changes are applied to Target from InputParameters this causes the update.
True if one is changing the target image, right?
Martin,
That's not absolutely correct. If plugin is executed in pre-mode there is no need to call update.
The entity is in memory not in the database. You have set the Attribute values in memory, but this still requires you send the entity in on an update request. You have an update request farther down in your code?
If you use plugin can you please provide full code and screenshot that demonstrates your plugin registration options and how you initiate triggering of plugin?
if (entity.LogicalName == "account") { try { //var telephone = entity.Attributes["numberofemployees"]; // if (entity.Attributes.Contains["name"]=="test")// = "test"; { entity.Attributes["name"] = "test"; entity.Attributes["telephone1"] = "7094351653"; } }
Hi,
I tried on the server side and create a plugin to update the account value to test and phone number to hardcore number for a practice.
but what I get is I am able to update the account name but can't able to update the phone number.
Please advise on this.
Regards,
Bharath K
Hello Bharath,
Can you share what did you try? Is it client-side or server-side. It would be great if you can provide full 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,280 Super User 2024 Season 2
Martin Dráb 230,235 Most Valuable Professional
nmaenpaa 101,156