web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Automatically Activities are Creating in Dynamics 365

(3) ShareShare
ReportReport
Posted on by 421

Hi,

I am facing the Issue Regarding the duplicate activities that has been created automatically while I have checked all workflows and ms flows at my end that may causes this reason but I did not find any thing related to this automatically creating activities, In these activities Subject is same as the original activity from which the duplicate is generated but the Call To field is empty and start date is From 12:00.

duplicate-activity.png

I have the same question (0)
  • Suggested answer
    fnasir Profile Picture
    4 on at
    Automatically Activities are Creating in Dynamics 365
    In my case, i found the reason of getting duplicate activities which was being triggers when owner of the account was changed. Upon change in owner, system was trying to update the historical activity to new owner which was creating duplicate entries when new owner was assigned to Account.

    By changing the Relationship Behavior, "Cascading none" resolve the issue on each activity type, Appointment, Email, Phone, Task to Account Relationship.

  • Suggested answer
    Ali Hamza Profile Picture
    170 on at
    Automatically Activities are Creating in Dynamics 365
    Hi
     

    Based on the details you have provided, it is possible that plugins are triggering the creation of activities. I recommend checking which actions or table record creations are generating these activities.

    1) You can register a plugin on the "Create" message of the Phone Call activity and throw an error. Ensure the plugin is registered as synchronous to analyze which process is failing. This will help identify the specific process or business workflow encountering issues, allowing you to trace the source—whether it's a workflow, plugin, integration, or .NET code.

    Sample plugin code

    public class PhoneCallCreatePlugin : IPlugin
    {
        public void Execute(IServiceProvider serviceProvider)
        {

                IPluginExecutionContext context =(IPluginExecutionContext)serviceProvider.GetService(typeof(IPluginExecutionContext));

                if (context.MessageName.ToLower() != "create")
                    return;
     

                    throw new InvalidPluginExecutionException("Intentionally stopping creation of Phone Call");
           
        }
    }
     

    2) Additionally, the Phone Call activity might be created through a custom integration from an external application. For instance, if a phone call is received via an external CTI system, it may be triggering the creation of this activity in CRM. Step #1 will assist in identifying this scenario, as it will generate failure logs or process failures within the external or custom integration code.

     
     
    Regards
    Ali
  • Verified answer
    Daivat Vartak (v-9davar) Profile Picture
    7,827 Super User 2025 Season 2 on at
    Automatically Activities are Creating in Dynamics 365
    Hello Himanshu,
     

    You've done the right thing by checking workflows and Power Automate flows, but since you haven't found the culprit there, let's explore other potential causes for these duplicate activities in Dynamics 365:

    1. Plugins:

    • Most Likely Cause: Custom plugins are a very common reason for unexpected behavior in Dynamics 365. A plugin could be registered on the creation of an activity and inadvertently create duplicates.

    • Check Plugin Registrations: Go to the Plugin Registration Tool (you'll need to download it if you don't have it). Examine the registered plugins, especially those related to the Activity entity. Look for any plugins that might be triggering on create, update, or other events and potentially creating new activities.

    • Disable Plugins (Carefully): If you suspect a plugin, you can carefully disable it (in a non-production environment first!) to see if the duplicates stop being created. This will help you confirm if a plugin is the source of the problem.

    2. Business Rules:

    • Less Likely, But Possible: While less common than plugins, business rules could be configured to create activities. It's worth reviewing your business rules, especially those that trigger on the Activity entity.

    • Review Business Rules: Go to Settings -> Customizations -> Customize the System. Navigate to Business Rules and check if any rules are active on the Activity entity that might be creating new activities.

    3. Integrations:

    • Third-Party Integrations: If you have any third-party systems integrated with Dynamics 365, they could be creating these duplicate activities.

    • Check Integration Logs: Look at the logs for your integrations to see if there are any errors or unexpected activity creation events.

    4. Server-Side Synchronization:

    • Email and Appointments: If you're using server-side synchronization for email and appointments, it's possible (though less likely) that there's a synchronization issue causing duplicate activities.

    • Review Sync Settings: Check your server-side synchronization settings to ensure there are no misconfigurations.

    5. Recurring Activities (Unlikely, but check):

    • Rule Out Recurring Activities: Although you mentioned the subject is the same, double-check that these aren't recurring activities that have been set up incorrectly.

    6. Asynchronous Jobs/Workflows:

    • Check for Failed Jobs: It's possible a failed asynchronous workflow or job might have partially created activities, and the system is retrying or cleaning up, leading to duplicates. Check the System Jobs area for any failed workflows or asynchronous operations related to activities.

    7. Auditing (To Find the Source):

    • Enable Auditing: If you haven't already, enable auditing on the Activity entity. This will track changes to activities and might help you pinpoint what's creating the duplicates. The audit logs will show who or what is making the changes.

    8. Debugging Tips:

    • Isolate the Issue: Try to narrow down the circumstances when the duplicate activities are created. Is it when a specific user creates an activity? Does it happen with certain activity types? This will help you focus your investigation.

    • Start Simple: If you have a lot of plugins, business rules, or integrations, try temporarily disabling them one by one (in a non-production environment) to isolate the source of the problem.

    9. Contact Microsoft Support (If All Else Fails):

    • Escalate: If you've exhausted all troubleshooting steps, it's time to contact Microsoft Support. They have tools and resources to help diagnose complex issues. Provide them with as much information as possible, including:

      • The steps you've already taken.

      • The details of the duplicate activities (subject, time of creation, etc.).

      • Any relevant logs or error messages.
     
    If my answer was helpful, please click Like, and if it solved your problem, please mark it as verified to help other community members find more. If you have further questions, please feel free to contact me.
     
    My response was crafted with AI assistance and tailored to provide detailed and actionable guidance for your Microsoft Dynamics 365 query.
     
    Best Regards,
    Daivat Vartak
  • Tom_Gioielli Profile Picture
    2,020 Super User 2025 Season 2 on at
    Automatically Activities are Creating in Dynamics 365
    • Do you have auditing enabled for the activity records?
    • Who is being listed as the creator of the record, is it a user or a service account?
    • If you check multiple duplicate activities, are they all being created around the same time?
    • Is this happening for all activity types or just some of them?
    • Who is the owner on the activity records? Is this related in any way to the regarding record (so does it match the contact owner, Opportunity owner, etc.)?
     
    The fact that records are being created without required fields being filled in means this is happening through some sort of auomation, so we just need to track down where that is.
  • fnasir Profile Picture
    4 on at
    Automatically Activities are Creating in Dynamics 365
    Have you ever found the solution to this issue? We are also getting thousands of duplicate activities automatically being created for same appointment activity which was in the past (few years ago). There is no workflow runs in the background. It is happening randomly to few activities. If we delete those activities it still keep coming back and system regenerate them again.

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daniyal Khaleel Profile Picture

Daniyal Khaleel 145

#2
DAnny3211 Profile Picture

DAnny3211 134

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 70 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans