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 :
Customer experience | Sales, Customer Insights,...
Suggested Answer

On Create Plugin triggers and Update field twice

(0) ShareShare
ReportReport
Posted on by 217
I have the same question (0)
  • Suggested answer
    meelamri Profile Picture
    13,216 User Group Leader on at

    Hello, 

    Please seperate your objects, dont perform an update on your target. Create a new object like that: 

    Entity objToupdate = New Entity (target.LogicalName, target.Id). Please verify the syntax, i m not sure. 

  • Sainath Pillanagrovi Profile Picture
    217 on at

    Hi Mehdi,

    Thanks for the quick response

    Here in my case , we have processed more than 10,000 records in past 9 months by updating target but issue was not produced like this

    not sure if it because of updating the target fields

    Thanks,

    Sainath Pillanagrovi

  • Suggested answer
    Temmy Wahyu Raharjo Profile Picture
    2,916 on at

    I need to know what is object target come from? If the target object come from (Entity)context.InputParameters["Target"]. Then better you changed it into:

    var updateEntity = new Entity(target.LogicalName) {Id = target.Id};

    updateEntity["new_value"] ...

    service.Update(updateEntity);

    If this one still not correct, then you need to check how's your plugin being trigger. If you're set new_value as its trigger, it will make it always trigger the plugin over and over again.

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 70 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 43 Most Valuable Professional

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans