Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Suggested answer

Newly created Entity in plugin does not exist

(0) ShareShare
ReportReport
Posted on by 10

Hello!

I have developed a plugin for Opportunity entity. Plugin registered with Sync execution, not in sandbox and executed post-operation.

Plugin create custom entity in loop (typicaly 2-3 entities)

Guid newGuid = Guid.Empty;

for (var i = 0; i < n; i  ) {
  new_inboxreplication inbox = new new_inboxreplication();
  inbox.new_messagerecid = inboxMessage.fileId;
  ...
  newGuid = service.Create(inbox);
  outLog.AppendLine("Created inbox guid: "   newGuid.ToString());
}

In outLog variable i see message about returned guid from Create operation

Created inbox guid: 66548a73-53c7-ec11-917c-00155d58d690

But next step is load this entity from another place, CRM throw exception new_inboxreplication With Id = 66548a73-53c7-ec11-917c-00155d58d690 

Same exception is when i make request via REST Builder, looked like entity does not created...

Why this can happen?

  • Suggested answer
    Amit Katariya007 Profile Picture
    Amit Katariya007 8,596 Super User 2024 Season 1 on at
    RE: Newly created Entity in plugin does not exist

    Hello Actimele,

    Can you please attach the error content as well as the code. Because That will be more helpful.

    There may be many reasons for this issue.

    Thank you,

    Amit Katariya

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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans