CopyToPhoneFields
This business rule can be attached to a transaction to allow the MathVariables to be copied from an activity to the phone fields when the activity is processed. This rule will be used to update fixed fields.
| Element/Tag | Attributes | Parent Element | Description | Element/Attribute Value |
|---|---|---|---|---|
| <CopyToPhoneFields> |
Required: Opening and closing tag of the CopyToClientFields rule. Note: PHONENUMBERGUID attribute is optional. |
|||
| PHONENUMBERGUID |
Optional attribute: MathVariable This attribute is used to specify the PhoneNumberGUID of the client whose records are to be updated. Note: Transaction to which this business rule is attached should contain the MathVariables that capture the PhoneNumberGUIDs. |
|||
| <Fields> | <CopyToPhoneFields> |
Required element: Used to specify the phone fields that will be updated by values from MathVariables. |
||
| <Field> | <Fields> |
Repeatable element: The opening and closing tag that encompasses <From> and <To>. If <From> element is present, then <To> element should be present. Similarly, a <FromCollection> element must have a <To> element. |
||
| <From> | <Field> |
This element is used to specify the MathVariable or activity field from where the data should be copied. Required element value: MathVariable/ActivityField Name of MathVariable or field from the transaction. Not required if using FromCollection and no PHONENUMBERGUID attribute is specified on the opening element. |
||
| <To> | <Field> |
Required element: This element is used to specify the fields in the Phone screen to where the data will be copied. |
Field Name of the field in the Phone screen. | |
| <FromCollection> | <Field> |
Required: This element is used to update multiple phone records, each with their own individual value. This element cannot be used in combination with the PHONENUMBERGUID attribute. |
MathVariable of variable type Collection. |
XML Schema
<CopyToPhoneFields PHONENUMBERGUID="[String]">
<Fields>
<Field>
<From\>
<To\>
</Field>
<Field>
<FromCollection\>
<To\>
</Field>
</Fields>
</CopyToPhoneFields>