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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

CRM Workflow Process doesn't trigger on record created through Entity Framework

(0) ShareShare
ReportReport
Posted on by

In Microsoft Dynamic CRM, I have a workflow process when a record is created.

When I create a new record using Entity Framework(EF), the workflow is not triggered. But it triggers fine when I create a record using Organization Service Proxy.

Below is my code to create a new record using EF.

Entity e = db.Entity.Create();
//
......
//
e.Entity.Add(e);
e.SaveChanges();

Above code works fine and it creates a new record. But it doesn't trigger the Workflow Process.

What could be the solution in this scenario?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Dynamics365 Rocker Profile Picture
    7,755 on at

    Use service.create(e); instead of e.SaveChanges();

  • Community Member Profile Picture
    on at

    Using the EntityFramework and not the Organization Service Proxy so service.create(e) cannot be used

  • Verified answer
    Kokulan Profile Picture
    18,054 on at

    Hi Hemanth Kumar M

    I assume you are using EF as an ORM to Dynamics CRM SQL Database.  If that is the case, the workflow will not trigger it will only trigger if you perform the operation using WCF / Web Api endpoints.

    First of all, I would like to mention this here that direct SQL Data or schema change is not supported, as outlined in the page below

    "Data (a record) changes in the Dynamics 365 for Customer Engagement database using SQL commands or any technology other than those described in this documentation" not supported

    [View:https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/supported-extensions#unsupported-customizations:750:50]

    I would highly recommend you implement your solution via endpoints not by directly connecting to SQL DB. 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans