<Activity x:Class="XrmWorkflowba1fb9b663e5492092612cca790c9325" xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities" xmlns:mva="clr-namespace:Microsoft.VisualBasic.Activities;assembly=System.Activities, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" xmlns:mxs="clr-namespace:Microsoft.Xrm.Sdk;assembly=Microsoft.Xrm.Sdk, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" xmlns:mxsq="clr-namespace:Microsoft.Xrm.Sdk.Query;assembly=Microsoft.Xrm.Sdk, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" xmlns:mxswa="clr-namespace:Microsoft.Xrm.Sdk.Workflow.Activities;assembly=Microsoft.Xrm.Sdk.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" xmlns:s="clr-namespace:System;assembly=mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" xmlns:scg="clr-namespace:System.Collections.Generic;assembly=mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" xmlns:sco="clr-namespace:System.Collections.ObjectModel;assembly=mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" xmlns:srs="clr-namespace:System.Runtime.Serialization;assembly=System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" xmlns:this="clr-namespace:" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  <x:Members>
    <x:Property Name="InputEntities" Type="InArgument(scg:IDictionary(x:String, mxs:Entity))" />
    <x:Property Name="CreatedEntities" Type="InArgument(scg:IDictionary(x:String, mxs:Entity))" />
  </x:Members>
  <this:XrmWorkflowba1fb9b663e5492092612cca790c9325.InputEntities>
    <InArgument x:TypeArguments="scg:IDictionary(x:String, mxs:Entity)" />
  </this:XrmWorkflowba1fb9b663e5492092612cca790c9325.InputEntities>
  <this:XrmWorkflowba1fb9b663e5492092612cca790c9325.CreatedEntities>
    <InArgument x:TypeArguments="scg:IDictionary(x:String, mxs:Entity)" />
  </this:XrmWorkflowba1fb9b663e5492092612cca790c9325.CreatedEntities>
  <mva:VisualBasic.Settings>Assembly references and imported namespaces for internal implementation</mva:VisualBasic.Settings>
  <mxswa:Workflow>
    <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.ConditionSequence, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="ConditionStep1: Make sure it is an outgoing call and regarding a campaign activity">
      <mxswa:ActivityReference.Arguments>
        <InArgument x:TypeArguments="x:Boolean" x:Key="Wait">False</InArgument>
      </mxswa:ActivityReference.Arguments>
      <mxswa:ActivityReference.Properties>
        <sco:Collection x:TypeArguments="Variable" x:Key="Variables">
          <Variable x:TypeArguments="x:Boolean" Default="False" Name="ConditionBranchStep2_condition" />
          <Variable x:TypeArguments="x:Boolean" Default="False" Name="ConditionBranchStep2_1" />
          <Variable x:TypeArguments="x:Object" Name="ConditionBranchStep2_2" />
          <Variable x:TypeArguments="x:Object" Name="ConditionBranchStep2_3" />
          <Variable x:TypeArguments="x:Boolean" Default="False" Name="ConditionBranchStep2_4" />
          <Variable x:TypeArguments="x:Object" Name="ConditionBranchStep2_5" />
        </sco:Collection>
        <sco:Collection x:TypeArguments="Activity" x:Key="Activities">
          <mxswa:GetEntityProperty Attribute="directioncode" Entity="[InputEntities(&quot;primaryEntity&quot;)]" EntityName="phonecall" Value="[ConditionBranchStep2_2]">
            <mxswa:GetEntityProperty.TargetType>
              <InArgument x:TypeArguments="s:Type">
                <mxswa:ReferenceLiteral x:TypeArguments="s:Type">
                  <x:Null />
                </mxswa:ReferenceLiteral>
              </InArgument>
            </mxswa:GetEntityProperty.TargetType>
          </mxswa:GetEntityProperty>
          <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateExpression, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateExpression">
            <mxswa:ActivityReference.Arguments>
              <InArgument x:TypeArguments="x:String" x:Key="ExpressionOperator">CreateCrmType</InArgument>
              <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { Microsoft.Xrm.Sdk.Workflow.WorkflowPropertyType.Boolean, "1" }]</InArgument>
              <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="x:Boolean" />
              </InArgument>
              <OutArgument x:TypeArguments="x:Object" x:Key="Result">[ConditionBranchStep2_3]</OutArgument>
            </mxswa:ActivityReference.Arguments>
          </mxswa:ActivityReference>
          <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateCondition, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateCondition">
            <mxswa:ActivityReference.Arguments>
              <InArgument x:TypeArguments="mxsq:ConditionOperator" x:Key="ConditionOperator">Equal</InArgument>
              <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { ConditionBranchStep2_3 }]</InArgument>
              <InArgument x:TypeArguments="x:Object" x:Key="Operand">[ConditionBranchStep2_2]</InArgument>
              <OutArgument x:TypeArguments="x:Boolean" x:Key="Result">[ConditionBranchStep2_1]</OutArgument>
            </mxswa:ActivityReference.Arguments>
          </mxswa:ActivityReference>
          <mxswa:GetEntityProperty Attribute="activityid" Entity="[InputEntities(&quot;related_regardingobjectid#campaignactivity&quot;)]" EntityName="campaignactivity" Value="[ConditionBranchStep2_5]">
            <mxswa:GetEntityProperty.TargetType>
              <InArgument x:TypeArguments="s:Type">
                <mxswa:ReferenceLiteral x:TypeArguments="s:Type">
                  <x:Null />
                </mxswa:ReferenceLiteral>
              </InArgument>
            </mxswa:GetEntityProperty.TargetType>
          </mxswa:GetEntityProperty>
          <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateCondition, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateCondition">
            <mxswa:ActivityReference.Arguments>
              <InArgument x:TypeArguments="mxsq:ConditionOperator" x:Key="ConditionOperator">NotNull</InArgument>
              <x:Null x:Key="Parameters" />
              <InArgument x:TypeArguments="x:Object" x:Key="Operand">[ConditionBranchStep2_5]</InArgument>
              <OutArgument x:TypeArguments="x:Boolean" x:Key="Result">[ConditionBranchStep2_4]</OutArgument>
            </mxswa:ActivityReference.Arguments>
          </mxswa:ActivityReference>
          <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateLogicalCondition, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateLogicalCondition">
            <mxswa:ActivityReference.Arguments>
              <InArgument x:TypeArguments="mxsq:LogicalOperator" x:Key="LogicalOperator">And</InArgument>
              <InArgument x:TypeArguments="x:Boolean" x:Key="LeftOperand">[ConditionBranchStep2_1]</InArgument>
              <InArgument x:TypeArguments="x:Boolean" x:Key="RightOperand">[ConditionBranchStep2_4]</InArgument>
              <OutArgument x:TypeArguments="x:Boolean" x:Key="Result">[ConditionBranchStep2_condition]</OutArgument>
            </mxswa:ActivityReference.Arguments>
          </mxswa:ActivityReference>
          <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.ConditionBranch, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="ConditionBranchStep2">
            <mxswa:ActivityReference.Arguments>
              <InArgument x:TypeArguments="x:Boolean" x:Key="Condition">[ConditionBranchStep2_condition]</InArgument>
            </mxswa:ActivityReference.Arguments>
            <mxswa:ActivityReference.Properties>
              <mxswa:ActivityReference x:Key="Then" AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.Composite, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="ConditionBranchStep2">
                <mxswa:ActivityReference.Properties>
                  <sco:Collection x:TypeArguments="Variable" x:Key="Variables" />
                  <sco:Collection x:TypeArguments="Activity" x:Key="Activities">
                    <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.ConditionSequence, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="ConditionStep25: Telephone System Error">
                      <mxswa:ActivityReference.Arguments>
                        <InArgument x:TypeArguments="x:Boolean" x:Key="Wait">False</InArgument>
                      </mxswa:ActivityReference.Arguments>
                      <mxswa:ActivityReference.Properties>
                        <sco:Collection x:TypeArguments="Variable" x:Key="Variables">
                          <Variable x:TypeArguments="x:Boolean" Default="False" Name="ConditionBranchStep26_condition" />
                          <Variable x:TypeArguments="x:Object" Name="ConditionBranchStep26_1" />
                          <Variable x:TypeArguments="x:Object" Name="ConditionBranchStep26_2" />
                        </sco:Collection>
                        <sco:Collection x:TypeArguments="Activity" x:Key="Activities">
                          <mxswa:GetEntityProperty Attribute="DNS  m_outboundcalloutcome_code" Entity="[InputEntities(&quot;primaryEntity&quot;)]" EntityName="phonecall" Value="[ConditionBranchStep26_1]">
                            <mxswa:GetEntityProperty.TargetType>
                              <InArgument x:TypeArguments="s:Type">
                                <mxswa:ReferenceLiteral x:TypeArguments="s:Type">
                                  <x:Null />
                                </mxswa:ReferenceLiteral>
                              </InArgument>
                            </mxswa:GetEntityProperty.TargetType>
                          </mxswa:GetEntityProperty>
                          <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateExpression, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateExpression">
                            <mxswa:ActivityReference.Arguments>
                              <InArgument x:TypeArguments="x:String" x:Key="ExpressionOperator">CreateCrmType</InArgument>
                              <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { Microsoft.Xrm.Sdk.Workflow.WorkflowPropertyType.OptionSetValue, "713770000", "Picklist" }]</InArgument>
                              <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="mxs:OptionSetValue" />
                              </InArgument>
                              <OutArgument x:TypeArguments="x:Object" x:Key="Result">[ConditionBranchStep26_2]</OutArgument>
                            </mxswa:ActivityReference.Arguments>
                          </mxswa:ActivityReference>
                          <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateCondition, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateCondition">
                            <mxswa:ActivityReference.Arguments>
                              <InArgument x:TypeArguments="mxsq:ConditionOperator" x:Key="ConditionOperator">Equal</InArgument>
                              <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { ConditionBranchStep26_2 }]</InArgument>
                              <InArgument x:TypeArguments="x:Object" x:Key="Operand">[ConditionBranchStep26_1]</InArgument>
                              <OutArgument x:TypeArguments="x:Boolean" x:Key="Result">[ConditionBranchStep26_condition]</OutArgument>
                            </mxswa:ActivityReference.Arguments>
                          </mxswa:ActivityReference>
                          <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.ConditionBranch, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="ConditionBranchStep26">
                            <mxswa:ActivityReference.Arguments>
                              <InArgument x:TypeArguments="x:Boolean" x:Key="Condition">[ConditionBranchStep26_condition]</InArgument>
                            </mxswa:ActivityReference.Arguments>
                            <mxswa:ActivityReference.Properties>
                              <mxswa:ActivityReference x:Key="Then" AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.Composite, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="ConditionBranchStep26">
                                <mxswa:ActivityReference.Properties>
                                  <sco:Collection x:TypeArguments="Variable" x:Key="Variables" />
                                  <sco:Collection x:TypeArguments="Activity" x:Key="Activities">
                                    <Sequence DisplayName="UpdateStep53: Clear the Call Outcome Field">
                                      <Sequence.Variables>
                                        <Variable x:TypeArguments="x:Object" Name="UpdateStep53_1" />
                                      </Sequence.Variables>
                                      <Assign x:TypeArguments="mxs:Entity" To="[CreatedEntities(&quot;primaryEntity#Temp&quot;)]" Value="[New Entity(&quot;phonecall&quot;)]" />
                                      <Assign x:TypeArguments="s:Guid" To="[CreatedEntities(&quot;primaryEntity#Temp&quot;).Id]" Value="[InputEntities(&quot;primaryEntity&quot;).Id]" />
                                      <mxswa:SetEntityProperty Attribute="DNS  m_outboundcalloutcome_code" Entity="[CreatedEntities(&quot;primaryEntity#Temp&quot;)]" EntityName="phonecall" Value="[UpdateStep53_1]">
                                        <mxswa:SetEntityProperty.TargetType>
                                          <InArgument x:TypeArguments="s:Type">
                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="mxs:OptionSetValue" />
                                          </InArgument>
                                        </mxswa:SetEntityProperty.TargetType>
                                      </mxswa:SetEntityProperty>
                                      <mxswa:UpdateEntity DisplayName="UpdateStep53" Entity="[CreatedEntities(&quot;primaryEntity#Temp&quot;)]" EntityName="phonecall" />
                                      <Assign x:TypeArguments="mxs:Entity" To="[InputEntities(&quot;primaryEntity&quot;)]" Value="[CreatedEntities(&quot;primaryEntity#Temp&quot;)]" />
                                      <Persist />
                                    </Sequence>
                                    <mxswa:SetState DisplayName="SetStateStep50: Change status to retry" Entity="[InputEntities(&quot;primaryEntity&quot;)]" EntityId="[InputEntities(&quot;primaryEntity&quot;).Id]" EntityName="phonecall">
                                      <mxswa:SetState.State>
                                        <InArgument x:TypeArguments="mxs:OptionSetValue">
                                          <mxswa:ReferenceLiteral x:TypeArguments="mxs:OptionSetValue">
                                            <mxs:OptionSetValue ExtensionData="{x:Null}" Value="0" />
                                          </mxswa:ReferenceLiteral>
                                        </InArgument>
                                      </mxswa:SetState.State>
                                      <mxswa:SetState.Status>
                                        <InArgument x:TypeArguments="mxs:OptionSetValue">
                                          <mxswa:ReferenceLiteral x:TypeArguments="mxs:OptionSetValue">
                                            <mxs:OptionSetValue ExtensionData="{x:Null}" Value="713770005" />
                                          </mxswa:ReferenceLiteral>
                                        </InArgument>
                                      </mxswa:SetState.Status>
                                    </mxswa:SetState>
                                    <Persist />
                                    <Sequence DisplayName="StopWorkflowStep51: End Workflow - Succeeded Telephone System Error">
                                      <Sequence.Variables>
                                        <Variable x:TypeArguments="x:Object" Name="StopWorkflowStep51_1" />
                                        <Variable x:TypeArguments="x:String" Default="f61a13f5-c1f6-43c7-b877-b513fc6b0ced" Name="stepLabelLabelId" />
                                        <Variable x:TypeArguments="x:String" Name="stepLabelDescription">
                                          <Variable.Default>
                                            <Literal x:TypeArguments="x:String" Value="" />
                                          </Variable.Default>
                                        </Variable>
                                        <Variable x:TypeArguments="x:Int32" Default="1033" Name="stepLabelLanguageCode" />
                                      </Sequence.Variables>
                                      <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateExpression, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateExpression">
                                        <mxswa:ActivityReference.Arguments>
                                          <InArgument x:TypeArguments="x:String" x:Key="ExpressionOperator">CreateCrmType</InArgument>
                                          <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { Microsoft.Xrm.Sdk.Workflow.WorkflowPropertyType.String, "", "String" }]</InArgument>
                                          <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="x:String" />
                                          </InArgument>
                                          <OutArgument x:TypeArguments="x:Object" x:Key="Result">[StopWorkflowStep51_1]</OutArgument>
                                        </mxswa:ActivityReference.Arguments>
                                      </mxswa:ActivityReference>
                                      <TerminateWorkflow DisplayName="StopWorkflowStep51: End Workflow - Succeeded Telephone System Error" Exception="[New Microsoft.Xrm.Sdk.InvalidPluginExecutionException(Microsoft.Xrm.Sdk.OperationStatus.Succeeded)]" Reason="[DirectCast(StopWorkflowStep51_1, System.String)]" />
                                    </Sequence>
                                  </sco:Collection>
                                </mxswa:ActivityReference.Properties>
                              </mxswa:ActivityReference>
                              <x:Null x:Key="Else" />
                            </mxswa:ActivityReference.Properties>
                          </mxswa:ActivityReference>
                        </sco:Collection>
                      </mxswa:ActivityReference.Properties>
                    </mxswa:ActivityReference>
                    <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.ConditionSequence, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="ConditionStep37: Number Disconnected">
                      <mxswa:ActivityReference.Arguments>
                        <InArgument x:TypeArguments="x:Boolean" x:Key="Wait">False</InArgument>
                      </mxswa:ActivityReference.Arguments>
                      <mxswa:ActivityReference.Properties>
                        <sco:Collection x:TypeArguments="Variable" x:Key="Variables">
                          <Variable x:TypeArguments="x:Boolean" Default="False" Name="ConditionBranchStep38_condition" />
                          <Variable x:TypeArguments="x:Object" Name="ConditionBranchStep38_1" />
                          <Variable x:TypeArguments="x:Object" Name="ConditionBranchStep38_2" />
                        </sco:Collection>
                        <sco:Collection x:TypeArguments="Activity" x:Key="Activities">
                          <mxswa:GetEntityProperty Attribute="DNS  m_outboundcalloutcome_code" Entity="[InputEntities(&quot;primaryEntity&quot;)]" EntityName="phonecall" Value="[ConditionBranchStep38_1]">
                            <mxswa:GetEntityProperty.TargetType>
                              <InArgument x:TypeArguments="s:Type">
                                <mxswa:ReferenceLiteral x:TypeArguments="s:Type">
                                  <x:Null />
                                </mxswa:ReferenceLiteral>
                              </InArgument>
                            </mxswa:GetEntityProperty.TargetType>
                          </mxswa:GetEntityProperty>
                          <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateExpression, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateExpression">
                            <mxswa:ActivityReference.Arguments>
                              <InArgument x:TypeArguments="x:String" x:Key="ExpressionOperator">CreateCrmType</InArgument>
                              <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { Microsoft.Xrm.Sdk.Workflow.WorkflowPropertyType.OptionSetValue, "713770005", "Picklist" }]</InArgument>
                              <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="mxs:OptionSetValue" />
                              </InArgument>
                              <OutArgument x:TypeArguments="x:Object" x:Key="Result">[ConditionBranchStep38_2]</OutArgument>
                            </mxswa:ActivityReference.Arguments>
                          </mxswa:ActivityReference>
                          <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateCondition, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateCondition">
                            <mxswa:ActivityReference.Arguments>
                              <InArgument x:TypeArguments="mxsq:ConditionOperator" x:Key="ConditionOperator">Equal</InArgument>
                              <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { ConditionBranchStep38_2 }]</InArgument>
                              <InArgument x:TypeArguments="x:Object" x:Key="Operand">[ConditionBranchStep38_1]</InArgument>
                              <OutArgument x:TypeArguments="x:Boolean" x:Key="Result">[ConditionBranchStep38_condition]</OutArgument>
                            </mxswa:ActivityReference.Arguments>
                          </mxswa:ActivityReference>
                          <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.ConditionBranch, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="ConditionBranchStep38">
                            <mxswa:ActivityReference.Arguments>
                              <InArgument x:TypeArguments="x:Boolean" x:Key="Condition">[ConditionBranchStep38_condition]</InArgument>
                            </mxswa:ActivityReference.Arguments>
                            <mxswa:ActivityReference.Properties>
                              <mxswa:ActivityReference x:Key="Then" AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.Composite, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="ConditionBranchStep38">
                                <mxswa:ActivityReference.Properties>
                                  <sco:Collection x:TypeArguments="Variable" x:Key="Variables" />
                                  <sco:Collection x:TypeArguments="Activity" x:Key="Activities">
                                    <mxswa:SetState DisplayName="SetStateStep39: Complete as Negative Attempt" Entity="[InputEntities(&quot;primaryEntity&quot;)]" EntityId="[InputEntities(&quot;primaryEntity&quot;).Id]" EntityName="phonecall">
                                      <mxswa:SetState.State>
                                        <InArgument x:TypeArguments="mxs:OptionSetValue">
                                          <mxswa:ReferenceLiteral x:TypeArguments="mxs:OptionSetValue">
                                            <mxs:OptionSetValue ExtensionData="{x:Null}" Value="1" />
                                          </mxswa:ReferenceLiteral>
                                        </InArgument>
                                      </mxswa:SetState.State>
                                      <mxswa:SetState.Status>
                                        <InArgument x:TypeArguments="mxs:OptionSetValue">
                                          <mxswa:ReferenceLiteral x:TypeArguments="mxs:OptionSetValue">
                                            <mxs:OptionSetValue ExtensionData="{x:Null}" Value="713770004" />
                                          </mxswa:ReferenceLiteral>
                                        </InArgument>
                                      </mxswa:SetState.Status>
                                    </mxswa:SetState>
                                    <Persist />
                                    <Sequence DisplayName="StopWorkflowStep40: End Workflow Succeeded - Number Disconnected">
                                      <Sequence.Variables>
                                        <Variable x:TypeArguments="x:Object" Name="StopWorkflowStep40_1" />
                                        <Variable x:TypeArguments="x:String" Default="a59a7410-5563-49a2-9f08-e94374051cee" Name="stepLabelLabelId" />
                                        <Variable x:TypeArguments="x:String" Default="Succeeded - Number Disconnected" Name="stepLabelDescription" />
                                        <Variable x:TypeArguments="x:Int32" Default="1033" Name="stepLabelLanguageCode" />
                                      </Sequence.Variables>
                                      <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateExpression, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateExpression">
                                        <mxswa:ActivityReference.Arguments>
                                          <InArgument x:TypeArguments="x:String" x:Key="ExpressionOperator">CreateCrmType</InArgument>
                                          <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { Microsoft.Xrm.Sdk.Workflow.WorkflowPropertyType.String, "Succeeded - Number Disconnected", "String" }]</InArgument>
                                          <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="x:String" />
                                          </InArgument>
                                          <OutArgument x:TypeArguments="x:Object" x:Key="Result">[StopWorkflowStep40_1]</OutArgument>
                                        </mxswa:ActivityReference.Arguments>
                                      </mxswa:ActivityReference>
                                      <TerminateWorkflow DisplayName="StopWorkflowStep40: End Workflow Succeeded - Number Disconnected" Exception="[New Microsoft.Xrm.Sdk.InvalidPluginExecutionException(Microsoft.Xrm.Sdk.OperationStatus.Succeeded)]" Reason="[DirectCast(StopWorkflowStep40_1, System.String)]" />
                                    </Sequence>
                                  </sco:Collection>
                                </mxswa:ActivityReference.Properties>
                              </mxswa:ActivityReference>
                              <x:Null x:Key="Else" />
                            </mxswa:ActivityReference.Properties>
                          </mxswa:ActivityReference>
                        </sco:Collection>
                      </mxswa:ActivityReference.Properties>
                    </mxswa:ActivityReference>
                    <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.ConditionSequence, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="ConditionStep41: No Answer">
                      <mxswa:ActivityReference.Arguments>
                        <InArgument x:TypeArguments="x:Boolean" x:Key="Wait">False</InArgument>
                      </mxswa:ActivityReference.Arguments>
                      <mxswa:ActivityReference.Properties>
                        <sco:Collection x:TypeArguments="Variable" x:Key="Variables">
                          <Variable x:TypeArguments="x:Boolean" Default="False" Name="ConditionBranchStep42_condition" />
                          <Variable x:TypeArguments="x:Object" Name="ConditionBranchStep42_1" />
                          <Variable x:TypeArguments="x:Object" Name="ConditionBranchStep42_2" />
                        </sco:Collection>
                        <sco:Collection x:TypeArguments="Activity" x:Key="Activities">
                          <mxswa:GetEntityProperty Attribute="DNS  m_outboundcalloutcome_code" Entity="[InputEntities(&quot;primaryEntity&quot;)]" EntityName="phonecall" Value="[ConditionBranchStep42_1]">
                            <mxswa:GetEntityProperty.TargetType>
                              <InArgument x:TypeArguments="s:Type">
                                <mxswa:ReferenceLiteral x:TypeArguments="s:Type">
                                  <x:Null />
                                </mxswa:ReferenceLiteral>
                              </InArgument>
                            </mxswa:GetEntityProperty.TargetType>
                          </mxswa:GetEntityProperty>
                          <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateExpression, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateExpression">
                            <mxswa:ActivityReference.Arguments>
                              <InArgument x:TypeArguments="x:String" x:Key="ExpressionOperator">CreateCrmType</InArgument>
                              <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { Microsoft.Xrm.Sdk.Workflow.WorkflowPropertyType.OptionSetValue, "713770002", "Picklist" }]</InArgument>
                              <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="mxs:OptionSetValue" />
                              </InArgument>
                              <OutArgument x:TypeArguments="x:Object" x:Key="Result">[ConditionBranchStep42_2]</OutArgument>
                            </mxswa:ActivityReference.Arguments>
                          </mxswa:ActivityReference>
                          <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateCondition, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateCondition">
                            <mxswa:ActivityReference.Arguments>
                              <InArgument x:TypeArguments="mxsq:ConditionOperator" x:Key="ConditionOperator">Equal</InArgument>
                              <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { ConditionBranchStep42_2 }]</InArgument>
                              <InArgument x:TypeArguments="x:Object" x:Key="Operand">[ConditionBranchStep42_1]</InArgument>
                              <OutArgument x:TypeArguments="x:Boolean" x:Key="Result">[ConditionBranchStep42_condition]</OutArgument>
                            </mxswa:ActivityReference.Arguments>
                          </mxswa:ActivityReference>
                          <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.ConditionBranch, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="ConditionBranchStep42">
                            <mxswa:ActivityReference.Arguments>
                              <InArgument x:TypeArguments="x:Boolean" x:Key="Condition">[ConditionBranchStep42_condition]</InArgument>
                            </mxswa:ActivityReference.Arguments>
                            <mxswa:ActivityReference.Properties>
                              <mxswa:ActivityReference x:Key="Then" AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.Composite, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="ConditionBranchStep42">
                                <mxswa:ActivityReference.Properties>
                                  <sco:Collection x:TypeArguments="Variable" x:Key="Variables" />
                                  <sco:Collection x:TypeArguments="Activity" x:Key="Activities">
                                    <mxswa:SetState DisplayName="SetStateStep43: Complete as Negative Attempt" Entity="[InputEntities(&quot;primaryEntity&quot;)]" EntityId="[InputEntities(&quot;primaryEntity&quot;).Id]" EntityName="phonecall">
                                      <mxswa:SetState.State>
                                        <InArgument x:TypeArguments="mxs:OptionSetValue">
                                          <mxswa:ReferenceLiteral x:TypeArguments="mxs:OptionSetValue">
                                            <mxs:OptionSetValue ExtensionData="{x:Null}" Value="1" />
                                          </mxswa:ReferenceLiteral>
                                        </InArgument>
                                      </mxswa:SetState.State>
                                      <mxswa:SetState.Status>
                                        <InArgument x:TypeArguments="mxs:OptionSetValue">
                                          <mxswa:ReferenceLiteral x:TypeArguments="mxs:OptionSetValue">
                                            <mxs:OptionSetValue ExtensionData="{x:Null}" Value="713770004" />
                                          </mxswa:ReferenceLiteral>
                                        </InArgument>
                                      </mxswa:SetState.Status>
                                    </mxswa:SetState>
                                    <Persist />
                                    <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.ConditionSequence, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="ConditionStep44: Check if max attempts has been reached.">
                                      <mxswa:ActivityReference.Arguments>
                                        <InArgument x:TypeArguments="x:Boolean" x:Key="Wait">False</InArgument>
                                      </mxswa:ActivityReference.Arguments>
                                      <mxswa:ActivityReference.Properties>
                                        <sco:Collection x:TypeArguments="Variable" x:Key="Variables">
                                          <Variable x:TypeArguments="x:Boolean" Default="False" Name="ConditionBranchStep45_condition" />
                                          <Variable x:TypeArguments="x:Object" Name="ConditionBranchStep45_1" />
                                          <Variable x:TypeArguments="x:Object" Name="ConditionBranchStep45_2" />
                                        </sco:Collection>
                                        <sco:Collection x:TypeArguments="Activity" x:Key="Activities">
                                          <mxswa:GetEntityProperty Attribute="DNS  m_attempt_number" Entity="[InputEntities(&quot;primaryEntity&quot;)]" EntityName="phonecall" Value="[ConditionBranchStep45_1]">
                                            <mxswa:GetEntityProperty.TargetType>
                                              <InArgument x:TypeArguments="s:Type">
                                                <mxswa:ReferenceLiteral x:TypeArguments="s:Type">
                                                  <x:Null />
                                                </mxswa:ReferenceLiteral>
                                              </InArgument>
                                            </mxswa:GetEntityProperty.TargetType>
                                          </mxswa:GetEntityProperty>
                                          <mxswa:GetEntityProperty Attribute="DNS  m_attempts_number" Entity="[InputEntities(&quot;related_regardingobjectid#campaignactivity&quot;)]" EntityName="campaignactivity" Value="[ConditionBranchStep45_2]">
                                            <mxswa:GetEntityProperty.TargetType>
                                              <InArgument x:TypeArguments="s:Type">
                                                <mxswa:ReferenceLiteral x:TypeArguments="s:Type">
                                                  <x:Null />
                                                </mxswa:ReferenceLiteral>
                                              </InArgument>
                                            </mxswa:GetEntityProperty.TargetType>
                                          </mxswa:GetEntityProperty>
                                          <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateCondition, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateCondition">
                                            <mxswa:ActivityReference.Arguments>
                                              <InArgument x:TypeArguments="mxsq:ConditionOperator" x:Key="ConditionOperator">LessThan</InArgument>
                                              <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { ConditionBranchStep45_2 }]</InArgument>
                                              <InArgument x:TypeArguments="x:Object" x:Key="Operand">[ConditionBranchStep45_1]</InArgument>
                                              <OutArgument x:TypeArguments="x:Boolean" x:Key="Result">[ConditionBranchStep45_condition]</OutArgument>
                                            </mxswa:ActivityReference.Arguments>
                                          </mxswa:ActivityReference>
                                          <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.ConditionBranch, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="ConditionBranchStep45">
                                            <mxswa:ActivityReference.Arguments>
                                              <InArgument x:TypeArguments="x:Boolean" x:Key="Condition">[ConditionBranchStep45_condition]</InArgument>
                                            </mxswa:ActivityReference.Arguments>
                                            <mxswa:ActivityReference.Properties>
                                              <mxswa:ActivityReference x:Key="Then" AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.Composite, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="ConditionBranchStep45">
                                                <mxswa:ActivityReference.Properties>
                                                  <sco:Collection x:TypeArguments="Variable" x:Key="Variables" />
                                                  <sco:Collection x:TypeArguments="Activity" x:Key="Activities">
                                                    <Sequence DisplayName="CreateStep46: Create Next Phone Call">
                                                      <Sequence.Variables>
                                                        <Variable x:TypeArguments="x:Object" Name="CreateStep46_1" />
                                                        <Variable x:TypeArguments="x:Object" Name="CreateStep46_2" />
                                                        <Variable x:TypeArguments="x:Object" Name="CreateStep46_3" />
                                                        <Variable x:TypeArguments="x:Object" Name="CreateStep46_4" />
                                                        <Variable x:TypeArguments="x:Object" Name="CreateStep46_5" />
                                                        <Variable x:TypeArguments="x:Object" Name="CreateStep46_6" />
                                                        <Variable x:TypeArguments="x:Object" Name="CreateStep46_7" />
                                                        <Variable x:TypeArguments="x:Object" Name="CreateStep46_8" />
                                                        <Variable x:TypeArguments="x:Object" Name="CreateStep46_9" />
                                                        <Variable x:TypeArguments="x:Object" Name="CreateStep46_10" />
                                                        <Variable x:TypeArguments="x:Object" Name="CreateStep46_11" />
                                                        <Variable x:TypeArguments="x:Object" Name="CreateStep46_12" />
                                                        <Variable x:TypeArguments="x:Object" Name="CreateStep46_13" />
                                                        <Variable x:TypeArguments="x:Object" Name="CreateStep46_14" />
                                                        <Variable x:TypeArguments="x:Object" Name="CreateStep46_15" />
                                                        <Variable x:TypeArguments="x:Object" Name="CreateStep46_16" />
                                                        <Variable x:TypeArguments="x:Object" Name="CreateStep46_17" />
                                                        <Variable x:TypeArguments="x:Object" Name="CreateStep46_18" />
                                                        <Variable x:TypeArguments="x:Object" Name="CreateStep46_19" />
                                                        <Variable x:TypeArguments="x:Object" Name="CreateStep46_20" />
                                                        <Variable x:TypeArguments="x:Object" Name="CreateStep46_21" />
                                                      </Sequence.Variables>
                                                      <Assign x:TypeArguments="mxs:Entity" To="[CreatedEntities(&quot;CreateStep46_localParameter#Temp&quot;)]" Value="[New Entity(&quot;phonecall&quot;)]" />
                                                      <mxswa:GetEntityProperty Attribute="subject" Entity="[InputEntities(&quot;primaryEntity&quot;)]" EntityName="phonecall" Value="[CreateStep46_2]">
                                                        <mxswa:GetEntityProperty.TargetType>
                                                          <InArgument x:TypeArguments="s:Type">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="x:String" />
                                                          </InArgument>
                                                        </mxswa:GetEntityProperty.TargetType>
                                                      </mxswa:GetEntityProperty>
                                                      <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateExpression, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateExpression">
                                                        <mxswa:ActivityReference.Arguments>
                                                          <InArgument x:TypeArguments="x:String" x:Key="ExpressionOperator">SelectFirstNonNull</InArgument>
                                                          <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { CreateStep46_2 }]</InArgument>
                                                          <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="x:String" />
                                                          </InArgument>
                                                          <OutArgument x:TypeArguments="x:Object" x:Key="Result">[CreateStep46_1]</OutArgument>
                                                        </mxswa:ActivityReference.Arguments>
                                                      </mxswa:ActivityReference>
                                                      <mxswa:SetEntityProperty Attribute="subject" Entity="[CreatedEntities(&quot;CreateStep46_localParameter#Temp&quot;)]" EntityName="phonecall" Value="[CreateStep46_1]">
                                                        <mxswa:SetEntityProperty.TargetType>
                                                          <InArgument x:TypeArguments="s:Type">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="x:String" />
                                                          </InArgument>
                                                        </mxswa:SetEntityProperty.TargetType>
                                                      </mxswa:SetEntityProperty>
                                                      <mxswa:GetEntityProperty Attribute="to" Entity="[InputEntities(&quot;primaryEntity&quot;)]" EntityName="phonecall" Value="[CreateStep46_4]">
                                                        <mxswa:GetEntityProperty.TargetType>
                                                          <InArgument x:TypeArguments="s:Type">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="mxs:EntityCollection" />
                                                          </InArgument>
                                                        </mxswa:GetEntityProperty.TargetType>
                                                      </mxswa:GetEntityProperty>
                                                      <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateExpression, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateExpression">
                                                        <mxswa:ActivityReference.Arguments>
                                                          <InArgument x:TypeArguments="x:String" x:Key="ExpressionOperator">SelectFirstNonNull</InArgument>
                                                          <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { CreateStep46_4 }]</InArgument>
                                                          <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="mxs:EntityCollection" />
                                                          </InArgument>
                                                          <OutArgument x:TypeArguments="x:Object" x:Key="Result">[CreateStep46_3]</OutArgument>
                                                        </mxswa:ActivityReference.Arguments>
                                                      </mxswa:ActivityReference>
                                                      <mxswa:SetEntityProperty Attribute="to" Entity="[CreatedEntities(&quot;CreateStep46_localParameter#Temp&quot;)]" EntityName="phonecall" Value="[CreateStep46_3]">
                                                        <mxswa:SetEntityProperty.TargetType>
                                                          <InArgument x:TypeArguments="s:Type">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="mxs:EntityCollection" />
                                                          </InArgument>
                                                        </mxswa:SetEntityProperty.TargetType>
                                                      </mxswa:SetEntityProperty>
                                                      <mxswa:GetEntityProperty Attribute="phonenumber" Entity="[InputEntities(&quot;primaryEntity&quot;)]" EntityName="phonecall" Value="[CreateStep46_6]">
                                                        <mxswa:GetEntityProperty.TargetType>
                                                          <InArgument x:TypeArguments="s:Type">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="x:String" />
                                                          </InArgument>
                                                        </mxswa:GetEntityProperty.TargetType>
                                                      </mxswa:GetEntityProperty>
                                                      <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateExpression, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateExpression">
                                                        <mxswa:ActivityReference.Arguments>
                                                          <InArgument x:TypeArguments="x:String" x:Key="ExpressionOperator">SelectFirstNonNull</InArgument>
                                                          <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { CreateStep46_6 }]</InArgument>
                                                          <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="x:String" />
                                                          </InArgument>
                                                          <OutArgument x:TypeArguments="x:Object" x:Key="Result">[CreateStep46_5]</OutArgument>
                                                        </mxswa:ActivityReference.Arguments>
                                                      </mxswa:ActivityReference>
                                                      <mxswa:SetEntityProperty Attribute="phonenumber" Entity="[CreatedEntities(&quot;CreateStep46_localParameter#Temp&quot;)]" EntityName="phonecall" Value="[CreateStep46_5]">
                                                        <mxswa:SetEntityProperty.TargetType>
                                                          <InArgument x:TypeArguments="s:Type">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="x:String" />
                                                          </InArgument>
                                                        </mxswa:SetEntityProperty.TargetType>
                                                      </mxswa:SetEntityProperty>
                                                      <mxswa:GetEntityProperty Attribute="regardingobjectid" Entity="[InputEntities(&quot;primaryEntity&quot;)]" EntityName="phonecall" Value="[CreateStep46_8]">
                                                        <mxswa:GetEntityProperty.TargetType>
                                                          <InArgument x:TypeArguments="s:Type">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="mxs:EntityReference" />
                                                          </InArgument>
                                                        </mxswa:GetEntityProperty.TargetType>
                                                      </mxswa:GetEntityProperty>
                                                      <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateExpression, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateExpression">
                                                        <mxswa:ActivityReference.Arguments>
                                                          <InArgument x:TypeArguments="x:String" x:Key="ExpressionOperator">SelectFirstNonNull</InArgument>
                                                          <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { CreateStep46_8 }]</InArgument>
                                                          <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="mxs:EntityReference" />
                                                          </InArgument>
                                                          <OutArgument x:TypeArguments="x:Object" x:Key="Result">[CreateStep46_7]</OutArgument>
                                                        </mxswa:ActivityReference.Arguments>
                                                      </mxswa:ActivityReference>
                                                      <mxswa:SetEntityProperty Attribute="regardingobjectid" Entity="[CreatedEntities(&quot;CreateStep46_localParameter#Temp&quot;)]" EntityName="phonecall" Value="[CreateStep46_7]">
                                                        <mxswa:SetEntityProperty.TargetType>
                                                          <InArgument x:TypeArguments="s:Type">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="mxs:EntityReference" />
                                                          </InArgument>
                                                        </mxswa:SetEntityProperty.TargetType>
                                                      </mxswa:SetEntityProperty>
                                                      <mxswa:GetEntityProperty Attribute="ownerid" Entity="[InputEntities(&quot;primaryEntity&quot;)]" EntityName="phonecall" Value="[CreateStep46_10]">
                                                        <mxswa:GetEntityProperty.TargetType>
                                                          <InArgument x:TypeArguments="s:Type">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="mxs:EntityReference" />
                                                          </InArgument>
                                                        </mxswa:GetEntityProperty.TargetType>
                                                      </mxswa:GetEntityProperty>
                                                      <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateExpression, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateExpression">
                                                        <mxswa:ActivityReference.Arguments>
                                                          <InArgument x:TypeArguments="x:String" x:Key="ExpressionOperator">SelectFirstNonNull</InArgument>
                                                          <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { CreateStep46_10 }]</InArgument>
                                                          <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="mxs:EntityReference" />
                                                          </InArgument>
                                                          <OutArgument x:TypeArguments="x:Object" x:Key="Result">[CreateStep46_9]</OutArgument>
                                                        </mxswa:ActivityReference.Arguments>
                                                      </mxswa:ActivityReference>
                                                      <mxswa:SetEntityProperty Attribute="ownerid" Entity="[CreatedEntities(&quot;CreateStep46_localParameter#Temp&quot;)]" EntityName="phonecall" Value="[CreateStep46_9]">
                                                        <mxswa:SetEntityProperty.TargetType>
                                                          <InArgument x:TypeArguments="s:Type">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="mxs:EntityReference" />
                                                          </InArgument>
                                                        </mxswa:SetEntityProperty.TargetType>
                                                      </mxswa:SetEntityProperty>
                                                      <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateExpression, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateExpression">
                                                        <mxswa:ActivityReference.Arguments>
                                                          <InArgument x:TypeArguments="x:String" x:Key="ExpressionOperator">CreateCrmType</InArgument>
                                                          <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { Microsoft.Xrm.Sdk.Workflow.WorkflowPropertyType.Boolean, "True" }]</InArgument>
                                                          <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="x:Boolean" />
                                                          </InArgument>
                                                          <OutArgument x:TypeArguments="x:Object" x:Key="Result">[CreateStep46_11]</OutArgument>
                                                        </mxswa:ActivityReference.Arguments>
                                                      </mxswa:ActivityReference>
                                                      <mxswa:SetEntityProperty Attribute="directioncode" Entity="[CreatedEntities(&quot;CreateStep46_localParameter#Temp&quot;)]" EntityName="phonecall" Value="[CreateStep46_11]">
                                                        <mxswa:SetEntityProperty.TargetType>
                                                          <InArgument x:TypeArguments="s:Type">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="x:Boolean" />
                                                          </InArgument>
                                                        </mxswa:SetEntityProperty.TargetType>
                                                      </mxswa:SetEntityProperty>
                                                      <mxswa:GetEntityProperty Attribute="from" Entity="[InputEntities(&quot;primaryEntity&quot;)]" EntityName="phonecall" Value="[CreateStep46_13]">
                                                        <mxswa:GetEntityProperty.TargetType>
                                                          <InArgument x:TypeArguments="s:Type">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="mxs:EntityCollection" />
                                                          </InArgument>
                                                        </mxswa:GetEntityProperty.TargetType>
                                                      </mxswa:GetEntityProperty>
                                                      <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateExpression, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateExpression">
                                                        <mxswa:ActivityReference.Arguments>
                                                          <InArgument x:TypeArguments="x:String" x:Key="ExpressionOperator">SelectFirstNonNull</InArgument>
                                                          <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { CreateStep46_13 }]</InArgument>
                                                          <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="mxs:EntityCollection" />
                                                          </InArgument>
                                                          <OutArgument x:TypeArguments="x:Object" x:Key="Result">[CreateStep46_12]</OutArgument>
                                                        </mxswa:ActivityReference.Arguments>
                                                      </mxswa:ActivityReference>
                                                      <mxswa:SetEntityProperty Attribute="from" Entity="[CreatedEntities(&quot;CreateStep46_localParameter#Temp&quot;)]" EntityName="phonecall" Value="[CreateStep46_12]">
                                                        <mxswa:SetEntityProperty.TargetType>
                                                          <InArgument x:TypeArguments="s:Type">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="mxs:EntityCollection" />
                                                          </InArgument>
                                                        </mxswa:SetEntityProperty.TargetType>
                                                      </mxswa:SetEntityProperty>
                                                      <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateExpression, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateExpression">
                                                        <mxswa:ActivityReference.Arguments>
                                                          <InArgument x:TypeArguments="x:String" x:Key="ExpressionOperator">CreateCrmType</InArgument>
                                                          <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { Microsoft.Xrm.Sdk.Workflow.WorkflowPropertyType.Boolean, "False" }]</InArgument>
                                                          <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="x:Boolean" />
                                                          </InArgument>
                                                          <OutArgument x:TypeArguments="x:Object" x:Key="Result">[CreateStep46_14]</OutArgument>
                                                        </mxswa:ActivityReference.Arguments>
                                                      </mxswa:ActivityReference>
                                                      <mxswa:SetEntityProperty Attribute="leftvoicemail" Entity="[CreatedEntities(&quot;CreateStep46_localParameter#Temp&quot;)]" EntityName="phonecall" Value="[CreateStep46_14]">
                                                        <mxswa:SetEntityProperty.TargetType>
                                                          <InArgument x:TypeArguments="s:Type">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="x:Boolean" />
                                                          </InArgument>
                                                        </mxswa:SetEntityProperty.TargetType>
                                                      </mxswa:SetEntityProperty>
                                                      <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateExpression, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateExpression">
                                                        <mxswa:ActivityReference.Arguments>
                                                          <InArgument x:TypeArguments="x:String" x:Key="ExpressionOperator">CreateCrmType</InArgument>
                                                          <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { Microsoft.Xrm.Sdk.Workflow.WorkflowPropertyType.OptionSetValue, "1", "Picklist" }]</InArgument>
                                                          <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="mxs:OptionSetValue" />
                                                          </InArgument>
                                                          <OutArgument x:TypeArguments="x:Object" x:Key="Result">[CreateStep46_15]</OutArgument>
                                                        </mxswa:ActivityReference.Arguments>
                                                      </mxswa:ActivityReference>
                                                      <mxswa:SetEntityProperty Attribute="prioritycode" Entity="[CreatedEntities(&quot;CreateStep46_localParameter#Temp&quot;)]" EntityName="phonecall" Value="[CreateStep46_15]">
                                                        <mxswa:SetEntityProperty.TargetType>
                                                          <InArgument x:TypeArguments="s:Type">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="mxs:OptionSetValue" />
                                                          </InArgument>
                                                        </mxswa:SetEntityProperty.TargetType>
                                                      </mxswa:SetEntityProperty>
                                                      <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateExpression, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateExpression">
                                                        <mxswa:ActivityReference.Arguments>
                                                          <InArgument x:TypeArguments="x:String" x:Key="ExpressionOperator">CreateCrmType</InArgument>
                                                          <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { Microsoft.Xrm.Sdk.Workflow.WorkflowPropertyType.Guid, "a76c3ba1-8f01-e611-811e-127b25dcbde7", "Key" }]</InArgument>
                                                          <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="mxs:EntityReference" />
                                                          </InArgument>
                                                          <OutArgument x:TypeArguments="x:Object" x:Key="Result">[CreateStep46_17]</OutArgument>
                                                        </mxswa:ActivityReference.Arguments>
                                                      </mxswa:ActivityReference>
                                                      <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateExpression, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateExpression">
                                                        <mxswa:ActivityReference.Arguments>
                                                          <InArgument x:TypeArguments="x:String" x:Key="ExpressionOperator">CreateCrmType</InArgument>
                                                          <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { Microsoft.Xrm.Sdk.Workflow.WorkflowPropertyType.EntityReference, "transactioncurrency", "US Dollar", CreateStep46_17, "Lookup" }]</InArgument>
                                                          <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="mxs:EntityReference" />
                                                          </InArgument>
                                                          <OutArgument x:TypeArguments="x:Object" x:Key="Result">[CreateStep46_16]</OutArgument>
                                                        </mxswa:ActivityReference.Arguments>
                                                      </mxswa:ActivityReference>
                                                      <mxswa:SetEntityProperty Attribute="transactioncurrencyid" Entity="[CreatedEntities(&quot;CreateStep46_localParameter#Temp&quot;)]" EntityName="phonecall" Value="[CreateStep46_16]">
                                                        <mxswa:SetEntityProperty.TargetType>
                                                          <InArgument x:TypeArguments="s:Type">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="mxs:EntityReference" />
                                                          </InArgument>
                                                        </mxswa:SetEntityProperty.TargetType>
                                                      </mxswa:SetEntityProperty>
                                                      <mxswa:GetEntityProperty Attribute="DNS  m_attempt_number" Entity="[InputEntities(&quot;primaryEntity&quot;)]" EntityName="phonecall" Value="[CreateStep46_19]">
                                                        <mxswa:GetEntityProperty.TargetType>
                                                          <InArgument x:TypeArguments="s:Type">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="x:Int32" />
                                                          </InArgument>
                                                        </mxswa:GetEntityProperty.TargetType>
                                                      </mxswa:GetEntityProperty>
                                                      <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateExpression, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateExpression">
                                                        <mxswa:ActivityReference.Arguments>
                                                          <InArgument x:TypeArguments="x:String" x:Key="ExpressionOperator">SelectFirstNonNull</InArgument>
                                                          <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { CreateStep46_19 }]</InArgument>
                                                          <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="x:Int32" />
                                                          </InArgument>
                                                          <OutArgument x:TypeArguments="x:Object" x:Key="Result">[CreateStep46_18]</OutArgument>
                                                        </mxswa:ActivityReference.Arguments>
                                                      </mxswa:ActivityReference>
                                                      <mxswa:SetEntityProperty Attribute="DNS  m_attempt_number" Entity="[CreatedEntities(&quot;CreateStep46_localParameter#Temp&quot;)]" EntityName="phonecall" Value="[CreateStep46_18]">
                                                        <mxswa:SetEntityProperty.TargetType>
                                                          <InArgument x:TypeArguments="s:Type">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="x:Int32" />
                                                          </InArgument>
                                                        </mxswa:SetEntityProperty.TargetType>
                                                      </mxswa:SetEntityProperty>
                                                      <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateExpression, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateExpression">
                                                        <mxswa:ActivityReference.Arguments>
                                                          <InArgument x:TypeArguments="x:String" x:Key="ExpressionOperator">CreateCrmType</InArgument>
                                                          <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { Microsoft.Xrm.Sdk.Workflow.WorkflowPropertyType.OptionSetValue, "713770000", "Picklist" }]</InArgument>
                                                          <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="mxs:OptionSetValue" />
                                                          </InArgument>
                                                          <OutArgument x:TypeArguments="x:Object" x:Key="Result">[CreateStep46_21]</OutArgument>
                                                        </mxswa:ActivityReference.Arguments>
                                                      </mxswa:ActivityReference>
                                                      <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateExpression, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateExpression">
                                                        <mxswa:ActivityReference.Arguments>
                                                          <InArgument x:TypeArguments="x:String" x:Key="ExpressionOperator">SelectFirstNonNull</InArgument>
                                                          <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { CreateStep46_21 }]</InArgument>
                                                          <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="mxs:OptionSetValue" />
                                                          </InArgument>
                                                          <OutArgument x:TypeArguments="x:Object" x:Key="Result">[CreateStep46_20]</OutArgument>
                                                        </mxswa:ActivityReference.Arguments>
                                                      </mxswa:ActivityReference>
                                                      <mxswa:SetEntityProperty Attribute="DNS  m_type_code" Entity="[CreatedEntities(&quot;CreateStep46_localParameter#Temp&quot;)]" EntityName="phonecall" Value="[CreateStep46_20]">
                                                        <mxswa:SetEntityProperty.TargetType>
                                                          <InArgument x:TypeArguments="s:Type">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="mxs:OptionSetValue" />
                                                          </InArgument>
                                                        </mxswa:SetEntityProperty.TargetType>
                                                      </mxswa:SetEntityProperty>
                                                      <mxswa:CreateEntity EntityId="{x:Null}" DisplayName="CreateStep46: Create Next Phone Call" Entity="[CreatedEntities(&quot;CreateStep46_localParameter#Temp&quot;)]" EntityName="phonecall" />
                                                      <Assign x:TypeArguments="mxs:Entity" To="[CreatedEntities(&quot;CreateStep46_localParameter&quot;)]" Value="[CreatedEntities(&quot;CreateStep46_localParameter#Temp&quot;)]" />
                                                      <Persist />
                                                    </Sequence>
                                                    <Sequence DisplayName="UpdateStep52: Increment attempt">
                                                      <Sequence.Variables>
                                                        <Variable x:TypeArguments="x:Object" Name="UpdateStep52_1" />
                                                        <Variable x:TypeArguments="x:Object" Name="UpdateStep52_2" />
                                                        <Variable x:TypeArguments="x:Object" Name="UpdateStep52_3" />
                                                        <Variable x:TypeArguments="x:Object" Name="UpdateStep52_4" />
                                                        <Variable x:TypeArguments="x:Object" Name="UpdateStep52_5" />
                                                      </Sequence.Variables>
                                                      <Assign x:TypeArguments="mxs:Entity" To="[CreatedEntities(&quot;CreateStep46_localParameter#Temp&quot;)]" Value="[New Entity(&quot;phonecall&quot;)]" />
                                                      <Assign x:TypeArguments="s:Guid" To="[CreatedEntities(&quot;CreateStep46_localParameter#Temp&quot;).Id]" Value="[CreatedEntities(&quot;CreateStep46_localParameter&quot;).Id]" />
                                                      <mxswa:GetEntityProperty Attribute="DNS  m_attempt_number" Entity="[CreatedEntities(&quot;CreateStep46_localParameter&quot;)]" EntityName="phonecall" Value="[UpdateStep52_3]">
                                                        <mxswa:GetEntityProperty.TargetType>
                                                          <InArgument x:TypeArguments="s:Type">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="x:Int32" />
                                                          </InArgument>
                                                        </mxswa:GetEntityProperty.TargetType>
                                                      </mxswa:GetEntityProperty>
                                                      <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateExpression, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateExpression">
                                                        <mxswa:ActivityReference.Arguments>
                                                          <InArgument x:TypeArguments="x:String" x:Key="ExpressionOperator">SelectFirstNonNull</InArgument>
                                                          <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { UpdateStep52_3 }]</InArgument>
                                                          <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="x:Int32" />
                                                          </InArgument>
                                                          <OutArgument x:TypeArguments="x:Object" x:Key="Result">[UpdateStep52_2]</OutArgument>
                                                        </mxswa:ActivityReference.Arguments>
                                                      </mxswa:ActivityReference>
                                                      <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateExpression, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateExpression">
                                                        <mxswa:ActivityReference.Arguments>
                                                          <InArgument x:TypeArguments="x:String" x:Key="ExpressionOperator">CreateCrmType</InArgument>
                                                          <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { Microsoft.Xrm.Sdk.Workflow.WorkflowPropertyType.Integer, "1" }]</InArgument>
                                                          <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="x:Int32" />
                                                          </InArgument>
                                                          <OutArgument x:TypeArguments="x:Object" x:Key="Result">[UpdateStep52_5]</OutArgument>
                                                        </mxswa:ActivityReference.Arguments>
                                                      </mxswa:ActivityReference>
                                                      <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateExpression, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateExpression">
                                                        <mxswa:ActivityReference.Arguments>
                                                          <InArgument x:TypeArguments="x:String" x:Key="ExpressionOperator">SelectFirstNonNull</InArgument>
                                                          <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { UpdateStep52_5 }]</InArgument>
                                                          <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="x:Int32" />
                                                          </InArgument>
                                                          <OutArgument x:TypeArguments="x:Object" x:Key="Result">[UpdateStep52_4]</OutArgument>
                                                        </mxswa:ActivityReference.Arguments>
                                                      </mxswa:ActivityReference>
                                                      <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateExpression, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateExpression">
                                                        <mxswa:ActivityReference.Arguments>
                                                          <InArgument x:TypeArguments="x:String" x:Key="ExpressionOperator">Add</InArgument>
                                                          <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { UpdateStep52_2, UpdateStep52_4 }]</InArgument>
                                                          <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="x:Int32" />
                                                          </InArgument>
                                                          <OutArgument x:TypeArguments="x:Object" x:Key="Result">[UpdateStep52_1]</OutArgument>
                                                        </mxswa:ActivityReference.Arguments>
                                                      </mxswa:ActivityReference>
                                                      <mxswa:SetEntityProperty Attribute="DNS  m_attempt_number" Entity="[CreatedEntities(&quot;CreateStep46_localParameter#Temp&quot;)]" EntityName="phonecall" Value="[UpdateStep52_1]">
                                                        <mxswa:SetEntityProperty.TargetType>
                                                          <InArgument x:TypeArguments="s:Type">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="x:Int32" />
                                                          </InArgument>
                                                        </mxswa:SetEntityProperty.TargetType>
                                                      </mxswa:SetEntityProperty>
                                                      <mxswa:UpdateEntity DisplayName="UpdateStep52" Entity="[CreatedEntities(&quot;CreateStep46_localParameter#Temp&quot;)]" EntityName="phonecall" />
                                                      <Assign x:TypeArguments="mxs:Entity" To="[CreatedEntities(&quot;CreateStep46_localParameter&quot;)]" Value="[CreatedEntities(&quot;CreateStep46_localParameter#Temp&quot;)]" />
                                                      <Persist />
                                                    </Sequence>
                                                    <Sequence DisplayName="StopWorkflowStep54: End Workflow - Succeeded No Answer">
                                                      <Sequence.Variables>
                                                        <Variable x:TypeArguments="x:Object" Name="StopWorkflowStep54_1" />
                                                        <Variable x:TypeArguments="x:String" Default="cf838446-a55c-4421-ac5f-22e115deef32" Name="stepLabelLabelId" />
                                                        <Variable x:TypeArguments="x:String" Default="Succeeded No Answer" Name="stepLabelDescription" />
                                                        <Variable x:TypeArguments="x:Int32" Default="1033" Name="stepLabelLanguageCode" />
                                                      </Sequence.Variables>
                                                      <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateExpression, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateExpression">
                                                        <mxswa:ActivityReference.Arguments>
                                                          <InArgument x:TypeArguments="x:String" x:Key="ExpressionOperator">CreateCrmType</InArgument>
                                                          <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { Microsoft.Xrm.Sdk.Workflow.WorkflowPropertyType.String, "Succeeded No Answer", "String" }]</InArgument>
                                                          <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="x:String" />
                                                          </InArgument>
                                                          <OutArgument x:TypeArguments="x:Object" x:Key="Result">[StopWorkflowStep54_1]</OutArgument>
                                                        </mxswa:ActivityReference.Arguments>
                                                      </mxswa:ActivityReference>
                                                      <TerminateWorkflow DisplayName="StopWorkflowStep54: End Workflow - Succeeded No Answer" Exception="[New Microsoft.Xrm.Sdk.InvalidPluginExecutionException(Microsoft.Xrm.Sdk.OperationStatus.Succeeded)]" Reason="[DirectCast(StopWorkflowStep54_1, System.String)]" />
                                                    </Sequence>
                                                  </sco:Collection>
                                                </mxswa:ActivityReference.Properties>
                                              </mxswa:ActivityReference>
                                              <x:Null x:Key="Else" />
                                            </mxswa:ActivityReference.Properties>
                                          </mxswa:ActivityReference>
                                        </sco:Collection>
                                      </mxswa:ActivityReference.Properties>
                                    </mxswa:ActivityReference>
                                  </sco:Collection>
                                </mxswa:ActivityReference.Properties>
                              </mxswa:ActivityReference>
                              <x:Null x:Key="Else" />
                            </mxswa:ActivityReference.Properties>
                          </mxswa:ActivityReference>
                        </sco:Collection>
                      </mxswa:ActivityReference.Properties>
                    </mxswa:ActivityReference>
                    <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.ConditionSequence, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="ConditionStep55: Call Disconnected">
                      <mxswa:ActivityReference.Arguments>
                        <InArgument x:TypeArguments="x:Boolean" x:Key="Wait">False</InArgument>
                      </mxswa:ActivityReference.Arguments>
                      <mxswa:ActivityReference.Properties>
                        <sco:Collection x:TypeArguments="Variable" x:Key="Variables">
                          <Variable x:TypeArguments="x:Boolean" Default="False" Name="ConditionBranchStep56_condition" />
                          <Variable x:TypeArguments="x:Object" Name="ConditionBranchStep56_1" />
                          <Variable x:TypeArguments="x:Object" Name="ConditionBranchStep56_2" />
                        </sco:Collection>
                        <sco:Collection x:TypeArguments="Activity" x:Key="Activities">
                          <mxswa:GetEntityProperty Attribute="DNS  m_outboundcalloutcome_code" Entity="[InputEntities(&quot;primaryEntity&quot;)]" EntityName="phonecall" Value="[ConditionBranchStep56_1]">
                            <mxswa:GetEntityProperty.TargetType>
                              <InArgument x:TypeArguments="s:Type">
                                <mxswa:ReferenceLiteral x:TypeArguments="s:Type">
                                  <x:Null />
                                </mxswa:ReferenceLiteral>
                              </InArgument>
                            </mxswa:GetEntityProperty.TargetType>
                          </mxswa:GetEntityProperty>
                          <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateExpression, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateExpression">
                            <mxswa:ActivityReference.Arguments>
                              <InArgument x:TypeArguments="x:String" x:Key="ExpressionOperator">CreateCrmType</InArgument>
                              <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { Microsoft.Xrm.Sdk.Workflow.WorkflowPropertyType.OptionSetValue, "713770006", "Picklist" }]</InArgument>
                              <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="mxs:OptionSetValue" />
                              </InArgument>
                              <OutArgument x:TypeArguments="x:Object" x:Key="Result">[ConditionBranchStep56_2]</OutArgument>
                            </mxswa:ActivityReference.Arguments>
                          </mxswa:ActivityReference>
                          <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateCondition, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateCondition">
                            <mxswa:ActivityReference.Arguments>
                              <InArgument x:TypeArguments="mxsq:ConditionOperator" x:Key="ConditionOperator">Equal</InArgument>
                              <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { ConditionBranchStep56_2 }]</InArgument>
                              <InArgument x:TypeArguments="x:Object" x:Key="Operand">[ConditionBranchStep56_1]</InArgument>
                              <OutArgument x:TypeArguments="x:Boolean" x:Key="Result">[ConditionBranchStep56_condition]</OutArgument>
                            </mxswa:ActivityReference.Arguments>
                          </mxswa:ActivityReference>
                          <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.ConditionBranch, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="ConditionBranchStep56">
                            <mxswa:ActivityReference.Arguments>
                              <InArgument x:TypeArguments="x:Boolean" x:Key="Condition">[ConditionBranchStep56_condition]</InArgument>
                            </mxswa:ActivityReference.Arguments>
                            <mxswa:ActivityReference.Properties>
                              <mxswa:ActivityReference x:Key="Then" AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.Composite, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="ConditionBranchStep56">
                                <mxswa:ActivityReference.Properties>
                                  <sco:Collection x:TypeArguments="Variable" x:Key="Variables" />
                                  <sco:Collection x:TypeArguments="Activity" x:Key="Activities">
                                    <mxswa:SetState DisplayName="SetStateStep57: Complete as Negative Attempt" Entity="[InputEntities(&quot;primaryEntity&quot;)]" EntityId="[InputEntities(&quot;primaryEntity&quot;).Id]" EntityName="phonecall">
                                      <mxswa:SetState.State>
                                        <InArgument x:TypeArguments="mxs:OptionSetValue">
                                          <mxswa:ReferenceLiteral x:TypeArguments="mxs:OptionSetValue">
                                            <mxs:OptionSetValue ExtensionData="{x:Null}" Value="1" />
                                          </mxswa:ReferenceLiteral>
                                        </InArgument>
                                      </mxswa:SetState.State>
                                      <mxswa:SetState.Status>
                                        <InArgument x:TypeArguments="mxs:OptionSetValue">
                                          <mxswa:ReferenceLiteral x:TypeArguments="mxs:OptionSetValue">
                                            <mxs:OptionSetValue ExtensionData="{x:Null}" Value="713770004" />
                                          </mxswa:ReferenceLiteral>
                                        </InArgument>
                                      </mxswa:SetState.Status>
                                    </mxswa:SetState>
                                    <Persist />
                                    <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.ConditionSequence, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="ConditionStep58: Check if max attempts has been reached.">
                                      <mxswa:ActivityReference.Arguments>
                                        <InArgument x:TypeArguments="x:Boolean" x:Key="Wait">False</InArgument>
                                      </mxswa:ActivityReference.Arguments>
                                      <mxswa:ActivityReference.Properties>
                                        <sco:Collection x:TypeArguments="Variable" x:Key="Variables">
                                          <Variable x:TypeArguments="x:Boolean" Default="False" Name="ConditionBranchStep59_condition" />
                                          <Variable x:TypeArguments="x:Object" Name="ConditionBranchStep59_1" />
                                          <Variable x:TypeArguments="x:Object" Name="ConditionBranchStep59_2" />
                                        </sco:Collection>
                                        <sco:Collection x:TypeArguments="Activity" x:Key="Activities">
                                          <mxswa:GetEntityProperty Attribute="DNS  m_attempt_number" Entity="[InputEntities(&quot;primaryEntity&quot;)]" EntityName="phonecall" Value="[ConditionBranchStep59_1]">
                                            <mxswa:GetEntityProperty.TargetType>
                                              <InArgument x:TypeArguments="s:Type">
                                                <mxswa:ReferenceLiteral x:TypeArguments="s:Type">
                                                  <x:Null />
                                                </mxswa:ReferenceLiteral>
                                              </InArgument>
                                            </mxswa:GetEntityProperty.TargetType>
                                          </mxswa:GetEntityProperty>
                                          <mxswa:GetEntityProperty Attribute="DNS  m_attempts_number" Entity="[InputEntities(&quot;related_regardingobjectid#campaignactivity&quot;)]" EntityName="campaignactivity" Value="[ConditionBranchStep59_2]">
                                            <mxswa:GetEntityProperty.TargetType>
                                              <InArgument x:TypeArguments="s:Type">
                                                <mxswa:ReferenceLiteral x:TypeArguments="s:Type">
                                                  <x:Null />
                                                </mxswa:ReferenceLiteral>
                                              </InArgument>
                                            </mxswa:GetEntityProperty.TargetType>
                                          </mxswa:GetEntityProperty>
                                          <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateCondition, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateCondition">
                                            <mxswa:ActivityReference.Arguments>
                                              <InArgument x:TypeArguments="mxsq:ConditionOperator" x:Key="ConditionOperator">LessThan</InArgument>
                                              <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { ConditionBranchStep59_2 }]</InArgument>
                                              <InArgument x:TypeArguments="x:Object" x:Key="Operand">[ConditionBranchStep59_1]</InArgument>
                                              <OutArgument x:TypeArguments="x:Boolean" x:Key="Result">[ConditionBranchStep59_condition]</OutArgument>
                                            </mxswa:ActivityReference.Arguments>
                                          </mxswa:ActivityReference>
                                          <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.ConditionBranch, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="ConditionBranchStep59">
                                            <mxswa:ActivityReference.Arguments>
                                              <InArgument x:TypeArguments="x:Boolean" x:Key="Condition">[ConditionBranchStep59_condition]</InArgument>
                                            </mxswa:ActivityReference.Arguments>
                                            <mxswa:ActivityReference.Properties>
                                              <mxswa:ActivityReference x:Key="Then" AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.Composite, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="ConditionBranchStep59">
                                                <mxswa:ActivityReference.Properties>
                                                  <sco:Collection x:TypeArguments="Variable" x:Key="Variables" />
                                                  <sco:Collection x:TypeArguments="Activity" x:Key="Activities">
                                                    <Sequence DisplayName="CreateStep60: Create Next Phone Call">
                                                      <Sequence.Variables>
                                                        <Variable x:TypeArguments="x:Object" Name="CreateStep60_1" />
                                                        <Variable x:TypeArguments="x:Object" Name="CreateStep60_2" />
                                                        <Variable x:TypeArguments="x:Object" Name="CreateStep60_3" />
                                                        <Variable x:TypeArguments="x:Object" Name="CreateStep60_4" />
                                                        <Variable x:TypeArguments="x:Object" Name="CreateStep60_5" />
                                                        <Variable x:TypeArguments="x:Object" Name="CreateStep60_6" />
                                                        <Variable x:TypeArguments="x:Object" Name="CreateStep60_7" />
                                                        <Variable x:TypeArguments="x:Object" Name="CreateStep60_8" />
                                                        <Variable x:TypeArguments="x:Object" Name="CreateStep60_9" />
                                                        <Variable x:TypeArguments="x:Object" Name="CreateStep60_10" />
                                                        <Variable x:TypeArguments="x:Object" Name="CreateStep60_11" />
                                                        <Variable x:TypeArguments="x:Object" Name="CreateStep60_12" />
                                                        <Variable x:TypeArguments="x:Object" Name="CreateStep60_13" />
                                                        <Variable x:TypeArguments="x:Object" Name="CreateStep60_14" />
                                                        <Variable x:TypeArguments="x:Object" Name="CreateStep60_15" />
                                                        <Variable x:TypeArguments="x:Object" Name="CreateStep60_16" />
                                                        <Variable x:TypeArguments="x:Object" Name="CreateStep60_17" />
                                                      </Sequence.Variables>
                                                      <Assign x:TypeArguments="mxs:Entity" To="[CreatedEntities(&quot;CreateStep60_localParameter#Temp&quot;)]" Value="[New Entity(&quot;phonecall&quot;)]" />
                                                      <mxswa:GetEntityProperty Attribute="subject" Entity="[InputEntities(&quot;primaryEntity&quot;)]" EntityName="phonecall" Value="[CreateStep60_2]">
                                                        <mxswa:GetEntityProperty.TargetType>
                                                          <InArgument x:TypeArguments="s:Type">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="x:String" />
                                                          </InArgument>
                                                        </mxswa:GetEntityProperty.TargetType>
                                                      </mxswa:GetEntityProperty>
                                                      <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateExpression, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateExpression">
                                                        <mxswa:ActivityReference.Arguments>
                                                          <InArgument x:TypeArguments="x:String" x:Key="ExpressionOperator">SelectFirstNonNull</InArgument>
                                                          <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { CreateStep60_2 }]</InArgument>
                                                          <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="x:String" />
                                                          </InArgument>
                                                          <OutArgument x:TypeArguments="x:Object" x:Key="Result">[CreateStep60_1]</OutArgument>
                                                        </mxswa:ActivityReference.Arguments>
                                                      </mxswa:ActivityReference>
                                                      <mxswa:SetEntityProperty Attribute="subject" Entity="[CreatedEntities(&quot;CreateStep60_localParameter#Temp&quot;)]" EntityName="phonecall" Value="[CreateStep60_1]">
                                                        <mxswa:SetEntityProperty.TargetType>
                                                          <InArgument x:TypeArguments="s:Type">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="x:String" />
                                                          </InArgument>
                                                        </mxswa:SetEntityProperty.TargetType>
                                                      </mxswa:SetEntityProperty>
                                                      <mxswa:GetEntityProperty Attribute="to" Entity="[InputEntities(&quot;primaryEntity&quot;)]" EntityName="phonecall" Value="[CreateStep60_4]">
                                                        <mxswa:GetEntityProperty.TargetType>
                                                          <InArgument x:TypeArguments="s:Type">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="mxs:EntityCollection" />
                                                          </InArgument>
                                                        </mxswa:GetEntityProperty.TargetType>
                                                      </mxswa:GetEntityProperty>
                                                      <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateExpression, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateExpression">
                                                        <mxswa:ActivityReference.Arguments>
                                                          <InArgument x:TypeArguments="x:String" x:Key="ExpressionOperator">SelectFirstNonNull</InArgument>
                                                          <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { CreateStep60_4 }]</InArgument>
                                                          <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="mxs:EntityCollection" />
                                                          </InArgument>
                                                          <OutArgument x:TypeArguments="x:Object" x:Key="Result">[CreateStep60_3]</OutArgument>
                                                        </mxswa:ActivityReference.Arguments>
                                                      </mxswa:ActivityReference>
                                                      <mxswa:SetEntityProperty Attribute="to" Entity="[CreatedEntities(&quot;CreateStep60_localParameter#Temp&quot;)]" EntityName="phonecall" Value="[CreateStep60_3]">
                                                        <mxswa:SetEntityProperty.TargetType>
                                                          <InArgument x:TypeArguments="s:Type">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="mxs:EntityCollection" />
                                                          </InArgument>
                                                        </mxswa:SetEntityProperty.TargetType>
                                                      </mxswa:SetEntityProperty>
                                                      <mxswa:GetEntityProperty Attribute="phonenumber" Entity="[InputEntities(&quot;primaryEntity&quot;)]" EntityName="phonecall" Value="[CreateStep60_6]">
                                                        <mxswa:GetEntityProperty.TargetType>
                                                          <InArgument x:TypeArguments="s:Type">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="x:String" />
                                                          </InArgument>
                                                        </mxswa:GetEntityProperty.TargetType>
                                                      </mxswa:GetEntityProperty>
                                                      <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateExpression, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateExpression">
                                                        <mxswa:ActivityReference.Arguments>
                                                          <InArgument x:TypeArguments="x:String" x:Key="ExpressionOperator">SelectFirstNonNull</InArgument>
                                                          <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { CreateStep60_6 }]</InArgument>
                                                          <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="x:String" />
                                                          </InArgument>
                                                          <OutArgument x:TypeArguments="x:Object" x:Key="Result">[CreateStep60_5]</OutArgument>
                                                        </mxswa:ActivityReference.Arguments>
                                                      </mxswa:ActivityReference>
                                                      <mxswa:SetEntityProperty Attribute="phonenumber" Entity="[CreatedEntities(&quot;CreateStep60_localParameter#Temp&quot;)]" EntityName="phonecall" Value="[CreateStep60_5]">
                                                        <mxswa:SetEntityProperty.TargetType>
                                                          <InArgument x:TypeArguments="s:Type">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="x:String" />
                                                          </InArgument>
                                                        </mxswa:SetEntityProperty.TargetType>
                                                      </mxswa:SetEntityProperty>
                                                      <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateExpression, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateExpression">
                                                        <mxswa:ActivityReference.Arguments>
                                                          <InArgument x:TypeArguments="x:String" x:Key="ExpressionOperator">CreateCrmType</InArgument>
                                                          <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { Microsoft.Xrm.Sdk.Workflow.WorkflowPropertyType.Boolean, "True" }]</InArgument>
                                                          <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="x:Boolean" />
                                                          </InArgument>
                                                          <OutArgument x:TypeArguments="x:Object" x:Key="Result">[CreateStep60_7]</OutArgument>
                                                        </mxswa:ActivityReference.Arguments>
                                                      </mxswa:ActivityReference>
                                                      <mxswa:SetEntityProperty Attribute="directioncode" Entity="[CreatedEntities(&quot;CreateStep60_localParameter#Temp&quot;)]" EntityName="phonecall" Value="[CreateStep60_7]">
                                                        <mxswa:SetEntityProperty.TargetType>
                                                          <InArgument x:TypeArguments="s:Type">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="x:Boolean" />
                                                          </InArgument>
                                                        </mxswa:SetEntityProperty.TargetType>
                                                      </mxswa:SetEntityProperty>
                                                      <mxswa:GetEntityProperty Attribute="from" Entity="[InputEntities(&quot;primaryEntity&quot;)]" EntityName="phonecall" Value="[CreateStep60_9]">
                                                        <mxswa:GetEntityProperty.TargetType>
                                                          <InArgument x:TypeArguments="s:Type">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="mxs:EntityCollection" />
                                                          </InArgument>
                                                        </mxswa:GetEntityProperty.TargetType>
                                                      </mxswa:GetEntityProperty>
                                                      <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateExpression, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateExpression">
                                                        <mxswa:ActivityReference.Arguments>
                                                          <InArgument x:TypeArguments="x:String" x:Key="ExpressionOperator">SelectFirstNonNull</InArgument>
                                                          <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { CreateStep60_9 }]</InArgument>
                                                          <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="mxs:EntityCollection" />
                                                          </InArgument>
                                                          <OutArgument x:TypeArguments="x:Object" x:Key="Result">[CreateStep60_8]</OutArgument>
                                                        </mxswa:ActivityReference.Arguments>
                                                      </mxswa:ActivityReference>
                                                      <mxswa:SetEntityProperty Attribute="from" Entity="[CreatedEntities(&quot;CreateStep60_localParameter#Temp&quot;)]" EntityName="phonecall" Value="[CreateStep60_8]">
                                                        <mxswa:SetEntityProperty.TargetType>
                                                          <InArgument x:TypeArguments="s:Type">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="mxs:EntityCollection" />
                                                          </InArgument>
                                                        </mxswa:SetEntityProperty.TargetType>
                                                      </mxswa:SetEntityProperty>
                                                      <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateExpression, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateExpression">
                                                        <mxswa:ActivityReference.Arguments>
                                                          <InArgument x:TypeArguments="x:String" x:Key="ExpressionOperator">CreateCrmType</InArgument>
                                                          <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { Microsoft.Xrm.Sdk.Workflow.WorkflowPropertyType.Boolean, "False" }]</InArgument>
                                                          <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="x:Boolean" />
                                                          </InArgument>
                                                          <OutArgument x:TypeArguments="x:Object" x:Key="Result">[CreateStep60_10]</OutArgument>
                                                        </mxswa:ActivityReference.Arguments>
                                                      </mxswa:ActivityReference>
                                                      <mxswa:SetEntityProperty Attribute="leftvoicemail" Entity="[CreatedEntities(&quot;CreateStep60_localParameter#Temp&quot;)]" EntityName="phonecall" Value="[CreateStep60_10]">
                                                        <mxswa:SetEntityProperty.TargetType>
                                                          <InArgument x:TypeArguments="s:Type">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="x:Boolean" />
                                                          </InArgument>
                                                        </mxswa:SetEntityProperty.TargetType>
                                                      </mxswa:SetEntityProperty>
                                                      <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateExpression, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateExpression">
                                                        <mxswa:ActivityReference.Arguments>
                                                          <InArgument x:TypeArguments="x:String" x:Key="ExpressionOperator">CreateCrmType</InArgument>
                                                          <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { Microsoft.Xrm.Sdk.Workflow.WorkflowPropertyType.OptionSetValue, "1", "Picklist" }]</InArgument>
                                                          <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="mxs:OptionSetValue" />
                                                          </InArgument>
                                                          <OutArgument x:TypeArguments="x:Object" x:Key="Result">[CreateStep60_11]</OutArgument>
                                                        </mxswa:ActivityReference.Arguments>
                                                      </mxswa:ActivityReference>
                                                      <mxswa:SetEntityProperty Attribute="prioritycode" Entity="[CreatedEntities(&quot;CreateStep60_localParameter#Temp&quot;)]" EntityName="phonecall" Value="[CreateStep60_11]">
                                                        <mxswa:SetEntityProperty.TargetType>
                                                          <InArgument x:TypeArguments="s:Type">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="mxs:OptionSetValue" />
                                                          </InArgument>
                                                        </mxswa:SetEntityProperty.TargetType>
                                                      </mxswa:SetEntityProperty>
                                                      <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateExpression, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateExpression">
                                                        <mxswa:ActivityReference.Arguments>
                                                          <InArgument x:TypeArguments="x:String" x:Key="ExpressionOperator">CreateCrmType</InArgument>
                                                          <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { Microsoft.Xrm.Sdk.Workflow.WorkflowPropertyType.Guid, "a76c3ba1-8f01-e611-811e-127b25dcbde7", "Key" }]</InArgument>
                                                          <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="mxs:EntityReference" />
                                                          </InArgument>
                                                          <OutArgument x:TypeArguments="x:Object" x:Key="Result">[CreateStep60_13]</OutArgument>
                                                        </mxswa:ActivityReference.Arguments>
                                                      </mxswa:ActivityReference>
                                                      <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateExpression, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateExpression">
                                                        <mxswa:ActivityReference.Arguments>
                                                          <InArgument x:TypeArguments="x:String" x:Key="ExpressionOperator">CreateCrmType</InArgument>
                                                          <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { Microsoft.Xrm.Sdk.Workflow.WorkflowPropertyType.EntityReference, "transactioncurrency", "US Dollar", CreateStep60_13, "Lookup" }]</InArgument>
                                                          <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="mxs:EntityReference" />
                                                          </InArgument>
                                                          <OutArgument x:TypeArguments="x:Object" x:Key="Result">[CreateStep60_12]</OutArgument>
                                                        </mxswa:ActivityReference.Arguments>
                                                      </mxswa:ActivityReference>
                                                      <mxswa:SetEntityProperty Attribute="transactioncurrencyid" Entity="[CreatedEntities(&quot;CreateStep60_localParameter#Temp&quot;)]" EntityName="phonecall" Value="[CreateStep60_12]">
                                                        <mxswa:SetEntityProperty.TargetType>
                                                          <InArgument x:TypeArguments="s:Type">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="mxs:EntityReference" />
                                                          </InArgument>
                                                        </mxswa:SetEntityProperty.TargetType>
                                                      </mxswa:SetEntityProperty>
                                                      <mxswa:GetEntityProperty Attribute="DNS  m_attempt_number" Entity="[InputEntities(&quot;primaryEntity&quot;)]" EntityName="phonecall" Value="[CreateStep60_15]">
                                                        <mxswa:GetEntityProperty.TargetType>
                                                          <InArgument x:TypeArguments="s:Type">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="x:Int32" />
                                                          </InArgument>
                                                        </mxswa:GetEntityProperty.TargetType>
                                                      </mxswa:GetEntityProperty>
                                                      <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateExpression, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateExpression">
                                                        <mxswa:ActivityReference.Arguments>
                                                          <InArgument x:TypeArguments="x:String" x:Key="ExpressionOperator">SelectFirstNonNull</InArgument>
                                                          <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { CreateStep60_15 }]</InArgument>
                                                          <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="x:Int32" />
                                                          </InArgument>
                                                          <OutArgument x:TypeArguments="x:Object" x:Key="Result">[CreateStep60_14]</OutArgument>
                                                        </mxswa:ActivityReference.Arguments>
                                                      </mxswa:ActivityReference>
                                                      <mxswa:SetEntityProperty Attribute="DNS  m_attempt_number" Entity="[CreatedEntities(&quot;CreateStep60_localParameter#Temp&quot;)]" EntityName="phonecall" Value="[CreateStep60_14]">
                                                        <mxswa:SetEntityProperty.TargetType>
                                                          <InArgument x:TypeArguments="s:Type">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="x:Int32" />
                                                          </InArgument>
                                                        </mxswa:SetEntityProperty.TargetType>
                                                      </mxswa:SetEntityProperty>
                                                      <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateExpression, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateExpression">
                                                        <mxswa:ActivityReference.Arguments>
                                                          <InArgument x:TypeArguments="x:String" x:Key="ExpressionOperator">CreateCrmType</InArgument>
                                                          <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { Microsoft.Xrm.Sdk.Workflow.WorkflowPropertyType.OptionSetValue, "713770000", "Picklist" }]</InArgument>
                                                          <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="mxs:OptionSetValue" />
                                                          </InArgument>
                                                          <OutArgument x:TypeArguments="x:Object" x:Key="Result">[CreateStep60_17]</OutArgument>
                                                        </mxswa:ActivityReference.Arguments>
                                                      </mxswa:ActivityReference>
                                                      <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateExpression, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateExpression">
                                                        <mxswa:ActivityReference.Arguments>
                                                          <InArgument x:TypeArguments="x:String" x:Key="ExpressionOperator">SelectFirstNonNull</InArgument>
                                                          <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { CreateStep60_17 }]</InArgument>
                                                          <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="mxs:OptionSetValue" />
                                                          </InArgument>
                                                          <OutArgument x:TypeArguments="x:Object" x:Key="Result">[CreateStep60_16]</OutArgument>
                                                        </mxswa:ActivityReference.Arguments>
                                                      </mxswa:ActivityReference>
                                                      <mxswa:SetEntityProperty Attribute="DNS  m_type_code" Entity="[CreatedEntities(&quot;CreateStep60_localParameter#Temp&quot;)]" EntityName="phonecall" Value="[CreateStep60_16]">
                                                        <mxswa:SetEntityProperty.TargetType>
                                                          <InArgument x:TypeArguments="s:Type">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="mxs:OptionSetValue" />
                                                          </InArgument>
                                                        </mxswa:SetEntityProperty.TargetType>
                                                      </mxswa:SetEntityProperty>
                                                      <mxswa:CreateEntity EntityId="{x:Null}" DisplayName="CreateStep60: Create Next Phone Call" Entity="[CreatedEntities(&quot;CreateStep60_localParameter#Temp&quot;)]" EntityName="phonecall" />
                                                      <Assign x:TypeArguments="mxs:Entity" To="[CreatedEntities(&quot;CreateStep60_localParameter&quot;)]" Value="[CreatedEntities(&quot;CreateStep60_localParameter#Temp&quot;)]" />
                                                      <Persist />
                                                    </Sequence>
                                                    <Sequence DisplayName="StopWorkflowStep61: End Workflow - Succeeded Call Disconnected">
                                                      <Sequence.Variables>
                                                        <Variable x:TypeArguments="x:Object" Name="StopWorkflowStep61_1" />
                                                        <Variable x:TypeArguments="x:String" Default="719feb1a-ece4-4d2d-83cf-0980cf51c1a5" Name="stepLabelLabelId" />
                                                        <Variable x:TypeArguments="x:String" Default="Succeeded Call Disconnected" Name="stepLabelDescription" />
                                                        <Variable x:TypeArguments="x:Int32" Default="1033" Name="stepLabelLanguageCode" />
                                                      </Sequence.Variables>
                                                      <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateExpression, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateExpression">
                                                        <mxswa:ActivityReference.Arguments>
                                                          <InArgument x:TypeArguments="x:String" x:Key="ExpressionOperator">CreateCrmType</InArgument>
                                                          <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { Microsoft.Xrm.Sdk.Workflow.WorkflowPropertyType.String, "Succeeded Call Disconnected", "String" }]</InArgument>
                                                          <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="x:String" />
                                                          </InArgument>
                                                          <OutArgument x:TypeArguments="x:Object" x:Key="Result">[StopWorkflowStep61_1]</OutArgument>
                                                        </mxswa:ActivityReference.Arguments>
                                                      </mxswa:ActivityReference>
                                                      <TerminateWorkflow DisplayName="StopWorkflowStep61: End Workflow - Succeeded Call Disconnected" Exception="[New Microsoft.Xrm.Sdk.InvalidPluginExecutionException(Microsoft.Xrm.Sdk.OperationStatus.Succeeded)]" Reason="[DirectCast(StopWorkflowStep61_1, System.String)]" />
                                                    </Sequence>
                                                  </sco:Collection>
                                                </mxswa:ActivityReference.Properties>
                                              </mxswa:ActivityReference>
                                              <x:Null x:Key="Else" />
                                            </mxswa:ActivityReference.Properties>
                                          </mxswa:ActivityReference>
                                        </sco:Collection>
                                      </mxswa:ActivityReference.Properties>
                                    </mxswa:ActivityReference>
                                  </sco:Collection>
                                </mxswa:ActivityReference.Properties>
                              </mxswa:ActivityReference>
                              <x:Null x:Key="Else" />
                            </mxswa:ActivityReference.Properties>
                          </mxswa:ActivityReference>
                        </sco:Collection>
                      </mxswa:ActivityReference.Properties>
                    </mxswa:ActivityReference>
                  </sco:Collection>
                </mxswa:ActivityReference.Properties>
              </mxswa:ActivityReference>
              <x:Null x:Key="Else" />
            </mxswa:ActivityReference.Properties>
          </mxswa:ActivityReference>
        </sco:Collection>
      </mxswa:ActivityReference.Properties>
    </mxswa:ActivityReference>
  </mxswa:Workflow>
</Activity>