A tag details.
Tag is used for grouping/labeling entities like campaings and contacts group.
Parameters:
Name
|
Type
|
Required
|
Description
|
Name
|
String
|
Yes
|
The tag name/title. The name must contain alpha numeric characters only.
|
OwnerType
|
String
|
Yes
|
The owner entity type - the type of the entity you want to set the tag to, such as ContactsGroup, EmailMessage etc.
|
OwnerId
|
String
|
Yes
|
The owner entity id - the id of the entity you want to set the tag to, i.e. the ContactsGroup/EmailMessage id
|
Java Code:
Tag tag = new Tag();
tag.setName(name);
tag.setOwnerType("EmailMessage");
tag.setOwnerId(theEmailMessageId);
C# Code:
Tag tag = new Tag();
tag.Name = name;
tag.OwnerType = "EmailMessage";
tag.OwnerId = theEmailMessageId;
VB Code:
Dim tag As
New Tag()
tag.Name
= name
tag.OwnerType
= "EmailMessage"
tag.OwnerId
= theEmailMessageId
Raw Xml:
<entity xsi:type="Tag">
<Name>name</Name>
<OwnerType>EmailMessage</OwnerType>
<OwnerId>383</OwnerId>
</entity>