locked
using Fakes with custom CRM workflow RRS feed

  • Question

  • So I'm trying to call my custom CRM workflow using Fakes 

    I've copied all the code from the examples:

    https://zhongchenzhou.wordpress.com/2012/08/03/dynamics-crm-2011-unit-test-part-10-microsoft-fakes-with-workflow-activity/

    But when I debug past this code....

                var inputs = new Dictionary<string, object>

                     {

                        { "Target", new EntityReference()}

                     };
                var outputs = invoker.Invoke(inputs);

    I get this error

    The values provided for the root activity's arguments did not satisfy the root activity's requirements:
    'MyWorkflow': The following keys from the input dictionary do not map to arguments and must be removed: Target.  Please note that argument names are case sensitive.

    My workflow is expecting an input parameter called "Target" containing the record being processed. Is this the correct place to put this?


    • Edited by Phil98765 Monday, June 29, 2015 11:41 PM wrong words
    Monday, June 29, 2015 11:38 PM