Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Business Process workflow

Posted on by

I have created a new Business Process flow and exported to a solution and downloaded xaml from workflow folder.

I am trying to create BPF with code with below code but encountered with an error "An unexpected error occured". If I see inner details error shows as  "the given key was not present in the dictionary".

Workflow workflow = new Workflow()

{

// These properties map to the New Process form settings in the web application.

Name = "CountryApprovalworkflow12",

Category = new OptionSetValue((int)WorkflowCategory.BusinessProcessFlow),

BusinessProcessType = new OptionSetValue((int)WorkflowBusinessProcessType.BusinessFlow),

PrimaryEntity = _countryEntityName,

Xaml = xamlWF,

};

_workflowId = _serviceProxy.Create(workflow);

Any suggestions will be helpful.

Thanks,

*This post is locked for comments

  • Shahbaaz Ansari Profile Picture
    Shahbaaz Ansari 6,203 on at
    RE: Business Process workflow

    Hi Lax,

    As Andrew mention, no one create BPF like you are creating.

    You can explore more about BPF with the below link :

    crmbook.powerobjects.com/.../business-process-flows

    Thanks,

    Shahbaaz

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Business Process workflow

    Hello,

    There are many ways to move solution between environment without writing single line of code:

    1. Export solution from source CRM and import it to Destination.

    2. XrmToolbox + SolutionTransfer tool - www.xrmtoolbox.com/.../DamSim.SolutionTransferTool

    3. XrmCI Framework - github.com/.../xrm-ci-framework

    My suggestion - don't waste your time trying to create something that's doesn't have practical sense. Believe me, I know CRM a bit :)

  • Lax Profile Picture
    Lax on at
    RE: Business Process workflow

    I thought we can deploy/move the solution from one environment to another environment very easily with out duplicating the work.

    Followed the below sample for workflows which is working fine but not for BPF.

    msdn.microsoft.com/.../hh913611.aspx

    Thanks,

  • a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Business Process workflow

    Hello,

    I'm just curious - why do you need that? What is not enough in creation of BPF from UI? I don't know any developer/consultant who created Business Process Flows in this way.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans