Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Suggested answer

Newly created Entity in plugin does not exist

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 5,818 Moderator 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

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,532 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,501 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans