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)

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

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