Dynamics – C# Input/Output Parameters Cheat Sheet

I’ve been doing some work on expanding Dynamics in order to create a solution capable of scheduling automatic reporting to email addresses recently (a very interesting subject) and found it difficult to find a complete list of input parameters for use in my custom workflow step.

Below I’ve included all the examples I’ve found –

Input/Output Parameters

String

[Input("String input")] 
[Output("String output")] 
[Default("A default value")] 
public InOutArgument string { get; set; }

Date Time

[Input("DateTime input")]
[Output("DateTime output")]
[Default("2004-07-09T02:54:00Z")] 
public InOutArgument date { get; set; }

Boolean

[Input("Boolean input")] 
[Output("Boolean output")] 
[Default("True")] 
public InOutArgument Bool { get; set; }

Integer

[Input("Integer input")]
[Output("Integer output")]
[Default("1")] 
public InOutArgument Int { get; set; }

Decimal

[Input("Decimal input")] 
[Output("Decimal output")]
[Default("1.5")] 
public InOutArgument Decimal { get; set; }

Double

[Input("Double input")]
[Output("Double output")]
[Default("10.5")]
public InOutArgument Double { get; set; }

Money / Currency

[Input("Money input")]
[Output("Money output")]
[Default("130.50")]
public InOutArgument Money { get; set; }

Option Set

[Input("OptionSetValue input")]
[Output("OptionSetValue output")]
[AttributeTarget("Contact", "preferredcontactmethodcode")]
[Default("1")]
public InOutArgument OptionSetvalue { get; set; }

inputParams

Entity Reference

[Input("EntityReference input")]
[Output("EntityReference output")]
[ReferenceTarget("contact")]
[Default("b47989861-979F-E611-810F-00155D000312", "contact")]
public InOutArgument EntityReference { get; set; }

inputParams2

Hope this helps!

One thought on “Dynamics – C# Input/Output Parameters Cheat Sheet

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s