Defines the attributes of child Tag objects.
delete(), describeSObjects(), query(), retrieve(), search(), undelete(), update()
| Field | Field Type | Field Properties | Description |
|---|---|---|---|
| Name | string | Filter | Identifies the tag word or phrase. |
| Type | picklist | Filter | Defines the visibility of a tag. Possible value are:
|
public void tagDefinitionSample() {
QueryResult qr = null;
try {
qr = binding.query("SELECT Id, Name FROM TagDefinition WHERE Name = 'WC'");
} catch (RemoteException e) {
System.out.println("An unexpected error has occurred." + e.getMessage());
}
TagDefinition d = (TagDefinition)qr.getRecords()[0];
d.setName("West Coast");
try {
binding.update(new SObject[]{d});
} catch (RemoteException e) {
System.out.println("An unexpected error has occurred." + e.getMessage());
}
}When a tag is deleted, its parent TagDefinition will also be deleted if the name is not being used; otherwise, the parent remains. Deleting a TagDefinition sends it to the recycle bin, along with any associated tag entries.
For more information on tags, see “About Tagging” in the Salesforce.com online help.