Syntax

Platform.Function.SetObjectProperty(object, propertyName, value)
3 arguments

Parameters

Name Type Required Description
object object Yes SOAP object created via CreateObject
propertyName string Yes Property name as defined in the SFMC SOAP API
value any Yes Value to set

Examples

var sub = Platform.Function.CreateObject("Subscriber");
Platform.Function.SetObjectProperty(sub, "EmailAddress", "new@example.com");
Platform.Function.SetObjectProperty(sub, "SubscriberKey", "sub_456");

See Also