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 365 | Integration, Dataverse...
Answered

using early binding in plugin with PreOperations Stage

(6) ShareShare
ReportReport
Posted on by 55
Hallo,
 
Is it possible to use Early binding code to update the record in the plugin with PreOperations Stage Pipeline Execution?
 
Thanks.
Categories:
I have the same question (0)
  • Verified answer
    Vahid Ghafarpour Profile Picture
    12,166 Super User 2025 Season 2 on at
    it’s a common and recommended approach in Dynamics 365 plugin development. Just make sure your early-bound classes are generated using the CrmSvcUtil or Power Platform Tools. and you don’t need to call service.Update()—just modify the Target entity.
  • Verified answer
    Muhammad Shahzad Shafique Profile Picture
    2,373 Most Valuable Professional on at
    if (context.InputParameters.Contains("Target") && context.InputParameters["Target"] is Entity)
    {
        Entity target = (Entity)context.InputParameters["Target"];
    
        // Early bound example
        var entity = target.ToEntity<new_account>(); // Replace with your entity type
        entity.new_customfield = "Updated Value";    // Set your field
        target = entity.ToEntity<Entity>();          // Update the target with modified values
    }
    
     
  • Verified answer
    HFA1972 Profile Picture
    55 on at
    It has worked without adding the last line 
    this line not necessary 
    target = entity.ToEntity<Entity>();          // Update the target with modified values
    thanks anyway
     

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 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 45 Most Valuable Professional

#2
iampranjal Profile Picture

iampranjal 36

#3
Satyam Prakash Profile Picture

Satyam Prakash 31

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans