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 CRM (Archived)

Very strange behavior with a post create plugin: can create annotation with duplicate annotation ID

(0) ShareShare
ReportReport
Posted on by

Hi,

I have a very strange behavior with a post create plugin registered on a custom entity.

This custom entity has a lookup field on a quote entity. Every time a user create an instance of this custom entity a post create plugin creates a new annotation entity for the related quote.

The plugin uses the QuoteId received in the InputParameters to set the ObjectId of the annotation.

But... if two users of the same BU creates "at the same exactly time" a new custom entity instance the plugin creates:

a) two annotations with the same annotationID (could be impossible) but with the correct subject (quotenumber of the related quote)

b) the objectid is set equal to one quoteid 

For debug purpose i set the NoteTExt with the GUID of the quote that i set in the ObjectId

Any idea ?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Muhammad Adeel Javaid Profile Picture
    5,580 on at

    I will like you to refer to this link please:

    go4answers.webhost4life.com/.../replace-double-quotes-string-regex-25205.aspx

  • Maurizio Ceccacci Profile Picture
    on at

    Thanks Muhammad but the problem is not the double quote in the string

  • Suggested answer
    Muhammad Adeel Javaid Profile Picture
    5,580 on at

    Then please refer to the links given below to debug plugin:

    For CRM 2011:

    msdn.microsoft.com/.../gg328574.aspx

    For CRM 4.0:

    msdn.microsoft.com/.../cc151088.aspx

  • Dave Ireland Profile Picture
    on at

    Hi

    It doesn't appear that your AnnotationIds are the same (the screen shot is small, but it looks like one starts with 82 and the other with 83) - these can't be duplicated or it would break a sql constraint.

    So it seems logical that if two users both add custom entity records against the same quote, that you get two annotation records.

    So where is the issue?

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 CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans