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)

Record Created in Multiple Instances of Plugin

(0) ShareShare
ReportReport
Posted on by 913

Hello, I've a plugin which triggered when create a record of custom entity. The plugin will check some value of the record against Account record. if it can't find the Account record for some value in the custom record, it will create the Account record. The custom entity records are inserted into CRM by Informatica Services. When the services enter the custom record with same info, the plugin can't find the Account record which just created. So Account entity end up with lot of duplicate Account records. How can I check if the Account record already created in CRM by one plugin instance from another instance of the plugin. When one instance of plugin already inserted the Account record, another instance of the plugin can't see the record already created. So it insert the record again. If I manually create the custom entity record, then it can find the record. but if I import the custom entity record or use Informatica or Scribe services, it does not work. The plugin is running in asynchronously, I can't use the plugin as synchronous because it cause problem for the Informatica services.

thanks

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Trying to understand what you mean, is this correct.

    You have an import routine which creates a custom entity, if a value on there cannot match with an existing account it will create a new account record. The problem you are getting is if there are a number of records against the same account you are ending up with multiple instances of the account?

    The fact it is asynchronous should mean it queues and therefore should find the created record

    When you debug the plugin is it not finding the record, if you step through and check the result set of your query is it empty and is the query correct?

  • litonn Profile Picture
    913 on at

    it works only when I created the record manually, because the plugin instances can't queue up. My query is correct but it can't see the record which just created .

  • Community Member Profile Picture
    on at

    Is the plugin pre/post operation?

  • kyleknab Profile Picture
    517 on at

    Synchronous operation is what you need here...

    What step in the pipeline is your step registered?

    What happens with the Informatica synchronization when you register the step to run synchronously?

  • litonn Profile Picture
    913 on at

    The plugin is registered in Post operation

  • litonn Profile Picture
    913 on at

    It cause issue on Informatica process. it can't insert any record if the plugin steps is synchronously running

  • Community Member Profile Picture
    on at

    Have you debugged to make sure it is not because there is an error in there that is causing the insert to fail?

  • litonn Profile Picture
    913 on at

    I converted the plugin to custom workflow activity and it is processing one record at a time and everything work fine. When it process more than one record, it cause same problem for custom workflow even. But causing issue, when I ran the plugin in asynchronously.

    I don't know if there any settings that I can make in Informatica process, so I've to depend on my plugin.

    thanks

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