Assign Value

Replaces all values with the specified value.

Input Parameter Sequence

Description

1

Value to assign to all records for the attribute specified in the output parameter.

Output Parameter Sequence

Description

1

Microsoft Dynamics CRM field to update with the specified value. The field can be a string field or a lookup field.

If the output is a lookup field, a <LookUpMaps> section must be included in the data map.

Sample Data Map Using Assign

This sample shows assigning the value of the target address1_stateorprovince attribute to "Washington" for all contact records.

<Map Name="sample_contact_assign_value">

<Description>Sample map showing Assign Value Transformation</Description>

<EntityMaps>

<EntityMap TargetEntityName="contact" SourceEntityName="Source_contact">

<AttributeMaps>

<AttributeMap>

<SourceAttributeName>Source_lastname</SourceAttributeName>

<TargetAttributeName>lastname</TargetAttributeName>

<ProcessCode>Process</ProcessCode>

<AttributeMap>

</AttributeMaps>

<TransformationMaps>

<TransformationMap>

<TransformationTypeName>Microsoft.Crm.Transformations.AssignValue</TransformationTypeName>

</ProcessCode>Process</ProcessCode>

<InputParameterMaps>

<SingletonInputParameterMaps>

<SingletonInputParameterMap>

<ParameterSequence>1</ParameterSequence>

<DataTypeCode>Value</DataTypeCode>

<Data>WA</Data>

</SingletonInputParameterMap>

</SingletonInputParameterMaps>

<ArrayInputParameterMaps/>

</InputParameterMaps>

<OutputParameterMaps>

<OutputParameterMap>

<ParameterSequence>1</ParameterSequence>

<Data>address1_stateorprovince</Data>

</OutputParameterMap>

</OutputParameterMaps>

</TransformationMap>

</TransformationMaps>

</EntityMap>

</EntityMaps>

</Map>

Sample Assign Transformation with Output as a Lookup Field

This sample shows assigning "Primary Unit" for all product records.

<TransformationMap>

<TransformationTypeName>Microsoft.Crm.Transformations.AssignValue</TransformationTypeName>

<ProcessCode>Process</ProcessCode>

<InputParameterMaps>

<SingletonInputParameterMaps>

<SingletonInputParameterMap>

<ParameterSequence>1</ParameterSequence>

<DataTypeCode>Value</DataTypeCode>

<Data>Primary Unit</Data>

</SingletonInputParameterMap>

</SingletonInputParameterMaps>

<ArrayInputParameterMaps/>

</InputParameterMaps>

<OutputParameterMaps>

<OutputParameterMap>

<ParameterSequence>1</ParameterSequence>

<Data>uomid</Data>

<LookupMaps>

<LookupMap>

<LookupEntityName>uom</LookupEntityName>

<LookupAttributeName>name</LookupAttributeName>

<LookupType>System</LookupType>

<ProcessCode>Process</ProcessCode>

</LookupMap>

</LookupMaps>

</OutputParameterMap>

</OutputParameterMaps>

</TransformationMap>

Did you find the information that you need?
Yes      No 
If not, what information do you need? (optional)