Declaration of Custom Workflow Input – Output Parameters

Input Parameter: Boolean

Example
 
public static DependencyProperty myBooleanProperty = DependencyProperty.Register(“myBoolean”, typeof(CrmBoolean), typeof(CreateCustomEntity));
[CrmInput(“My Boolean”)]
public CrmBoolean myBoolean
{
   get
   {
      return (CrmBoolean)base.GetValue(myBooleanProperty);
   }
   set
   {
      base.SetValue(myBooleanProperty, value);
   }
}
 
Input Parameter: DateTime
 
Example
 
public static DependencyProperty myDateTimeProperty = DependencyProperty.Register(“myDateTime”, typeof(CrmDateTime), typeof(CreateCustomEntity));
[CrmInput(“My DateTime”)]
public CrmDateTime myDateTime
{
   get
   {
      return (CrmDateTime)base.GetValue(myDateTimeProperty);
   }
   set
   {
      base.SetValue(myDateTimeProperty, value);
   }
}

Input Parameter: Decimal

Example
 
public static DependencyProperty myDecimalProperty = DependencyProperty.Register(“myDecimal”, typeof(CrmDecimal), typeof(CreateCustomEntity));
[CrmInput(“My Decimal”)]
public CrmDecimal myDecimal
{
   get
   {
      return (CrmDecimal)base.GetValue(myDecimalProperty);
   }
   set
   {
      base.SetValue(myDecimalProperty, value);
   }
}
 
Input Parameter: Float

Example
 
public static DependencyProperty myFloatProperty = DependencyProperty.Register(“myFloat”, typeof(CrmFloat), typeof(CreateCustomEntity));
[CrmInput(“My Float”)]
public CrmFloat myFloat
{
   get
   {
      return (CrmFloat)base.GetValue(myFloatProperty);
   }
   set
   {
      base.SetValue(myFloatProperty, value);
   }
}

Input Parameter: Lookup

Example
 
public static DependencyProperty myLookupProperty = DependencyProperty.Register(“myLookup”, typeof(Lookup), typeof(CreateCustomEntity));
[CrmInput(“My Lookup”)]
[CrmReferenceTarget(“account”)]
public Lookup myLookup
{
   get
   {
      return (Lookup)base.GetValue(myLookupProperty);
   }
   set
   {
      base.SetValue(myLookupProperty, value);
   }
}
 
Input Parameter: Money

Example
 
public static DependencyProperty myMoneyProperty = DependencyProperty.Register(“myMoney”, typeof(CrmMoney), typeof(CreateCustomEntity));
[CrmInput(“My Money”)]
public CrmMoney myMoney
{
   get
   {
      return (CrmMoney)base.GetValue(myMoneyProperty);
   }
   set
   {
      base.SetValue(myMoneyProperty, value);
   }
}
 
Input Parameter: Number

Example
 
public static DependencyProperty myNumberProperty = DependencyProperty.Register(“myNumber”, typeof(CrmNumber), typeof(CreateCustomEntity));
[CrmInput(“My Integer”)]
public CrmNumber myNumber
{
   get
   {
      return (CrmNumber)base.GetValue(myNumberProperty);
   }
   set
   {
      base.SetValue(myNumberProperty, value);
   }
}
 
Input Parameter: Picklist

Example
 
public static DependencyProperty myPicklistProperty = DependencyProperty.Register(“myPicklist”, typeof(Picklist), typeof(CreateCustomEntity));
[CrmInput(“My Picklist”)]
[CrmAttributeTarget(“account”, “industrycode”)]
public Picklist myPicklist
{
   get
   {
      return (Picklist)base.GetValue(myPicklistProperty);
   }
   set
   {
      base.SetValue(myPicklistProperty, value);
   }
}
 
Input Parameter: Status

Example
 
public static DependencyProperty myStatusProperty = DependencyProperty.Register(“myStatus”, typeof(Status), typeof(CreateCustomEntity));
[CrmInput(“My Status”)]
[CrmAttributeTarget(“account”, “statuscode”)]
public Status myStatus
{
   get
   {
      return (Status)base.GetValue(myStatusProperty);
   }
   set
   {
      base.SetValue(myStatusProperty, value);
   }
}

Input Parameter: String

Example
 
public static DependencyProperty myStringProperty = DependencyProperty.Register(“myString”, typeof(System.String), typeof(CreateCustomEntity));
[CrmInput(“My String”)]
public string myString
{
   get
   {
      return (string)base.GetValue(myStringProperty);
   }
   set
   {
      base.SetValue(myStringProperty, value);
   }
}
 
Output Parameter: Lookup
 
Example
 
public static DependencyProperty myOutLookupProperty = DependencyProperty.Register(“myOutLookup”, typeof(Lookup), typeof(CreateCustomEntity));
[CrmOutput(“My Output Lookup”)]
[CrmReferenceTarget(“new_customentity”)]
public Lookup myOutLookup
{
   get
   {
      return (Lookup)base.GetValue(myOutLookupProperty);
   }
   set
   {
      base.SetValue(myOutLookupProperty, value);
   }
}

Advertisements

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


%d bloggers like this: