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)

Version number column on an entity

(0) ShareShare
ReportReport
Posted on by

Hi,

I am using CRM 2016 online version.

I created a service endpoint in plugin registration tool and pointing to the service bus in the azure. Created a step on update on incident entity which actually pushes the message to the message queue in azure. There is a worker role which actually reads the message from queue and does some process. 

I am looking to get the version number of the incident record (from post image) but not able to find the version number attribute in the post image. 

Could any one please help me in this.

Thanks

Rakesh

*This post is locked for comments

I have the same question (0)
  • David Jennaway Profile Picture
    14,065 on at

    I don't think versionnumber is included in the plugin pipeline, as it's generated by SQL, which would explain why you don't get it in the postimage.

    Not sure if there is a way around this. You could maybe try adding another plugin post event plugin with an earlier execution order which uses a Retrieve to get the versionnumber, and writes it to ShredVariables (you could also try adding a dummy attribute, and populate that with the versionnumber in the Target OutputParameter)

  • Community Member Profile Picture
    on at

    David, thanks for responding.

    The actual issue is that when an incident is resolved, the record is updating three times with in a second. So the service end point (which was setup through the plug-in registration tool) is pushing all the three records successfully in to the azure service bus queue. Since the systemjobs are asynchronous, all these records are not pushed in to the queue in a sequence that the record got updated.

    When my worker role picks up these records and inserting these in to an SQL database, there is concurrency issue. The latest record is been overridden by the previous update. I am looking for some field which I can identify the latest record. I tried with Modified date, but it doesn't have the milli second.

    Any ides would be appreciated.

    Thanks

    Rakesh

  • Hurty Profile Picture
    5 on at

    Hey there. Did you get any resolution. I am having the same architecture like you and the same problem.

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