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,...
Suggested Answer

D365 Plugin Update issue - Entity Id must be specified for Update

(0) ShareShare
ReportReport
Posted on by 85

Hi,

I am developing a plugin which will override the existing behaviour of Qualify leads, for that I am running a plugin on the PreValidation event. However, I am getting an error on, systemService.Update(resp.Entity);

Error : Entity Id must be specified for Update

//initialize form
                    traceService.Trace("QualifyLeads: Account Creation started");
                    InitializeFromRequest req = new InitializeFromRequest();
                    //set the source entity
                    req.EntityMoniker = new EntityReference(LogicalName, LeadId);
                    req.TargetEntityName = "account";
                    req.TargetFieldType = TargetFieldType.All;

                    InitializeFromResponse resp = (InitializeFromResponse)systemService.Execute(req);

                    systemService.Update(resp.Entity);
                    traceService.Trace("QualifyLeads: Account Created");

Am I missing anything ?

Entity Id what i am getting in return is {00000 000000 0000000}

I have the same question (0)
  • a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Guid has that format because the record you initialize using InitializeFrom message is not created yet - you have it in code only.

  • Suggested answer
    RG Student Profile Picture
    85 on at

    Guid guid = orgService.Create(resp.Entity);

    I was using the wrong method.

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!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 180 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 123

#3
CU11031447-0 Profile Picture

CU11031447-0 100

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans