Documentation
¶
Index ¶
Constants ¶
View Source
const NAME = "Territory2"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ObjectAccessLevel ¶ added in v0.63.0
type ObjectAccessLevel struct {
AccessLevel struct {
Text string `xml:",chardata"`
} `xml:"accessLevel"`
ObjectType struct {
Text string `xml:",chardata"`
} `xml:"objectType"`
}
ObjectAccessLevel is the access that users in a territory have to records of an object, such as Lead, assigned to the territory.
type RuleAssociation ¶
type Territory2 ¶
type Territory2 struct {
metadata.MetadataInfo
XMLName xml.Name `xml:"Territory2"`
Xmlns string `xml:"xmlns,attr"`
Xsi string `xml:"xmlns:xsi,attr,omitempty"`
Xsd string `xml:"xmlns:xsd,attr,omitempty"`
AccountAccessLevel *struct {
Text string `xml:",chardata"`
} `xml:"accountAccessLevel"`
CaseAccessLevel *struct {
Text string `xml:",chardata"`
} `xml:"caseAccessLevel"`
ContactAccessLevel *struct {
Text string `xml:",chardata"`
} `xml:"contactAccessLevel"`
CustomFields []territory2model.FieldValue `xml:"customFields"`
Description *struct {
Text string `xml:",chardata"`
} `xml:"description"`
Name struct {
Text string `xml:",chardata"`
} `xml:"name"`
ObjectAccessLevels []ObjectAccessLevel `xml:"objectAccessLevels"`
OpportunityAccessLevel *struct {
Text string `xml:",chardata"`
} `xml:"opportunityAccessLevel"`
ParentTerritory *struct {
Text string `xml:",chardata"`
} `xml:"parentTerritory"`
RuleAssociations []RuleAssociation `xml:"ruleAssociations"`
Territory2Type struct {
Text string `xml:",chardata"`
} `xml:"territory2Type"`
}
func Open ¶
func Open(path string) (*Territory2, error)
func (*Territory2) Files ¶ added in v0.63.0
Files writes the territory into its model's directory: territory2Models/<Model>/territories/<Territory>.territory2.
func (*Territory2) NameFromPath ¶ added in v0.63.0
func (c *Territory2) NameFromPath(path string) metadata.MetadataObjectName
NameFromPath names a territory as package.xml does, <Model>.<Territory>, since territories of different models may share a name.
func (*Territory2) SetMetadata ¶
func (c *Territory2) SetMetadata(m metadata.MetadataInfo)
func (*Territory2) Type ¶
func (c *Territory2) Type() metadata.MetadataType
Click to show internal directories.
Click to hide internal directories.