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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

CRM Plugin PostOperation Update field not working

(0) ShareShare
ReportReport
Posted on by

I have a plugin that is called on Create for an Entity.  When I receive the Target Entity, I look up the record by the Id.  I want to compute a value and save that record.  I do that and don't receive any error but the field is not updated in the datbase.

atfApplication = service.Retrieve( "aws_accreditationapplication", accreditationApplicationID, new ColumnSet( true ) );
if ( !atfApplication.Attributes.Contains( "aws_name" ) )
{
    string strATFName = $"{anAccount["name"]} - {anApplicationtType["aws_name"]}";
    atfApplication["aws_name"] = strATFName;
    service.Update( atfApplication );
}

I have the same question (0)
  • Esteban Coto Alfaro Profile Picture
    Microsoft Employee on at

    Hello, syntactically the code is fine. In this case I recommend you to check the following points:

    - That "accreditationApplicationID" value corresponds to an existing record id.

    - Make sure that "!atfApplication.Attributes.Contains( "aws_name" )" is true, in order to see if the code enter that conditional.

    - Make sure that "atfApplication" is declared as: Entity atfApplication = new Entity("entity_name").

    Thanks!

    Community Support Team - Esteban

    If this Post helps, then please consider Accept as solution to help the other members find it more quickly.

  • Pradeep Rai Profile Picture
    5,489 Moderator on at

    HI Steven,

    Please check points suggested by Esteban Coto Alfaro

    And one more suggestion, For better plugin development experience please use Tracing Inside the code.

    This will make debugging easier.

    Thanks,

    Pradeep.

  • Ram Prakash Duraisamy Profile Picture
    2,289 on at

    Hello,

    Adding to Pradeep Rai question,

    Why can't you try PreCrete because we don't want to update a record if we are using PreCrete

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 128 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 95

#3
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 69 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans