Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Update Connection Name field on Connection entity

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

  • Update Connection Name field on Connection entity
    Is the issue resolved..Facing the same issue..
  • RoelG Profile Picture
    RoelG 1,090 on at
    RE: Update Connection Name field on Connection entity

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

  • Aileen Gusni Profile Picture
    Aileen Gusni 44,522 on at
    RE: Update Connection Name field on Connection entity

    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

  • Verified answer
    RoelG Profile Picture
    RoelG 1,090 on at
    RE: Update Connection Name field on Connection entity

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

  • Suggested answer
    shivaram Profile Picture
    shivaram 3,315 on at
    RE: Update Connection Name field on Connection entity

    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.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans