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)

Add custom workflow to solution in Dynamics CRM

(0) ShareShare
ReportReport
Posted on by

When I try to add a custom workflow to an unmanaged solution by "Add Existing" button, it is done successfully.

But we I try to add the SAME workflow in code c# with "AddSolutionComponentRequest", it throws this error :

Subcomponent 21a41b15-9bf2-e611-80de-1458d0432720 cannot be added to the solution because the root component Workflow is missing.

Any help please.

*This post is locked for comments

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

    Hi,

    I believe the OOB workflow, which you used to call the custom workflow is not added to the solution.

    Please verify the OOB workflow that is calling the custom workflow is added to the solution or not.

    Please mark this as answer if it helped you.

    Thanks

    B. Phanidhar

  • Community Member Profile Picture
    on at

    I understood nothing.

    I created a new workflow in the default solution (customize the system)  (so called "custom workflow" and not OOB)

    Then When I added it to a new solution with UI ==> OK

    But with "AddSolutionComponentRequest" (code c#) ==> Exception

    Knowing that "AddSolutionComponentRequest" works fine with OOB workflows

  • Community Member Profile Picture
    on at

    Hi,

    I am trying to tell that you can not directly call the custom workflow, so you need to use the OOB workflow to call it.

    I think you yet to put a trigger point for the workflow.

    You can create a OOB workflow which would call your custom workflow. Then add these two components to your solution.

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans