Documentation
¶
Index ¶
Constants ¶
const NAME = "ObjectHierarchyRelationship"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ObjectHierarchyRelationship ¶
type ObjectHierarchyRelationship struct {
metadata.MetadataInfo
XMLName xml.Name `xml:"ObjectHierarchyRelationship"`
Xmlns string `xml:"xmlns,attr"`
ChildObjectMapping *ObjectMapping `xml:"childObjectMapping"`
InputObjRecordsGrpFieldName *TextLiteral `xml:"inputObjRecordsGrpFieldName"`
MappingType *TextLiteral `xml:"mappingType"`
MasterLabel *TextLiteral `xml:"masterLabel"`
OutputPntRelationshipFieldName *TextLiteral `xml:"outputPntRelationshipFieldName"`
ParentObjectMapping *ObjectMapping `xml:"parentObjectMapping"`
ParentRecord *TextLiteral `xml:"parentRecord"`
ParentRelationshipFieldName *TextLiteral `xml:"parentRelationshipFieldName"`
SourceReferenceRelaFieldName *TextLiteral `xml:"sourceReferenceRelaFieldName"`
UsageType *TextLiteral `xml:"usageType"`
}
ObjectHierarchyRelationship maps the fields of an input object to an output object for a Manufacturing Cloud usage: converting a record to a sales agreement (ConvertToSalesAgreement), a business transformation (TransformationMapping), and others. A record either carries a child object mapping for the input object's child records, or names the record it is the child of in ParentRecord. Stored as ObjectHierarchyRelationship/<name>.settings.
func Open ¶
func Open(path string) (*ObjectHierarchyRelationship, error)
func (*ObjectHierarchyRelationship) SetMetadata ¶
func (r *ObjectHierarchyRelationship) SetMetadata(m metadata.MetadataInfo)
func (*ObjectHierarchyRelationship) Type ¶
func (r *ObjectHierarchyRelationship) Type() metadata.MetadataType
type ObjectMapping ¶
type ObjectMapping struct {
InputObject *TextLiteral `xml:"inputObject"`
MappingFields []ObjectMappingField `xml:"mappingFields"`
OutputObject *TextLiteral `xml:"outputObject"`
}
ObjectMapping maps the fields of an input object to those of an output object.
type ObjectMappingField ¶
type ObjectMappingField struct {
InputField *TextLiteral `xml:"inputField"`
OutputField *TextLiteral `xml:"outputField"`
}
ObjectMappingField maps an input object field to an output object field. A lookup field is named by its relationship (Account for AccountId).