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

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
    10,409 Moderator on at

    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

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
11manish Profile Picture

11manish 91 Super User 2026 Season 2

#2
Travis South Profile Picture

Travis South 71

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 52 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans