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 | Attribute | Definition | Element/Attribute Value and Description |
---|---|---|---|
<CopyToPhoneFields> | PHONENUMBERGUID |
Required: opening and closing tag of the CopyToClientFields rule. Note: PHONENUMBERGUID attribute is optional. |
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> | Required element: Used to specify the phone fields that will be updated by values from MathVariables. | ||
<Field> | 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> | 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> | Required element: This element is used to specify the fields in the Phone screen to where the data will be copied. | Required element value: Field Name of the field in the Phone screen. | |
<FromCollection> | 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. | Required element value: MathVariable of variable type Collection. |
XML Schema
<CopyToPhoneFields PHONENUMBERGUID="[String]">
<Fields>
<Field>
<From\>
<To\>
</Field>
<Field>
<FromCollection\>
<To\>
</Field>
</Fields>
</CopyToPhoneFields>