Skip to content

AddProfile

Adds data to the case profile.

1
myCase.AddProfile(input: ( object | Xml )):Case

Parameters

( object | Xml ) input
    The profile data, as an Xml node or an object whose properties become XML elements.

Returns

The current Case instance.

Remarks

When the case has a content type, the values are copied into the matching profile fields of the content type; otherwise the data is appended to the profile as it is.

Examples

Copy customer details from the form to the case profile

1
2
3
4
$Case.AddProfile({
    CustomerId : $Xml.Evaluate('Customer/Id'),
    CustomerName : $Xml.Evaluate('Customer/Name')
});

See Also