web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Update Connection Name field on Connection entity

(0) ShareShare
ReportReport
Posted on by 1,090

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

I have the same question (0)
  • Suggested answer
    shivaram Profile Picture
    3,315 on at

    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.

  • Verified answer
    RoelG Profile Picture
    1,090 on at

    Nope, it's not possible. Only work-around would be to "update" the name in the retrieve plugin.

  • Aileen Gusni Profile Picture
    44,524 on at

    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

  • RoelG Profile Picture
    1,090 on at

    Yes, we tried pre-val also. Customer adjusted their requirements so it's not necessary anymore. But thanks guys (and girls) for the feedback :)

  • Community member Profile Picture
    2 on at
    Is the issue resolved..Facing the same issue..

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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Wayne Walton Profile Picture

Wayne Walton 2

#2
Good.Panos Profile Picture

Good.Panos 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans