Help us shape the future of Go! Take the 2026 Go Developer Survey

duplicateRule

package
v0.69.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const NAME = "DuplicateRule"

Variables

This section is empty.

Functions

This section is empty.

Types

type DuplicateRule

type DuplicateRule struct {
	metadata.MetadataInfo
	XMLName             xml.Name      `xml:"DuplicateRule"`
	Xmlns               string        `xml:"xmlns,attr"`
	Xsi                 string        `xml:"xmlns:xsi,attr,omitempty"`
	ActionOnInsert      TextLiteral   `xml:"actionOnInsert"`
	ActionOnUpdate      TextLiteral   `xml:"actionOnUpdate"`
	AlertText           *NillableText `xml:"alertText"`
	Description         *NillableText `xml:"description"`
	DuplicateRuleFilter *struct {
		Nil           string        `xml:"xsi:nil,attr,omitempty"`
		BooleanFilter *NillableText `xml:"booleanFilter"`
		Items         []struct {
			Field     TextLiteral `xml:"field"`
			Operation TextLiteral `xml:"operation"`
			Value     TextLiteral `xml:"value"`
			SortOrder TextLiteral `xml:"sortOrder"`
			Table     TextLiteral `xml:"table"`
		} `xml:"duplicateRuleFilterItems"`
	} `xml:"duplicateRuleFilter"`
	DuplicateRuleMatchRules []struct {
		MatchRuleSObjectType TextLiteral `xml:"matchRuleSObjectType"`
		MatchingRule         TextLiteral `xml:"matchingRule"`
		ObjectMapping        *struct {
			Nil           string       `xml:"xsi:nil,attr,omitempty"`
			InputObject   *TextLiteral `xml:"inputObject"`
			MappingFields []struct {
				InputField  TextLiteral `xml:"inputField"`
				OutputField TextLiteral `xml:"outputField"`
			} `xml:"mappingFields"`
			OutputObject *TextLiteral `xml:"outputObject"`
		} `xml:"objectMapping"`
	} `xml:"duplicateRuleMatchRules"`
	IsActive           TextLiteral   `xml:"isActive"`
	MasterLabel        TextLiteral   `xml:"masterLabel"`
	OperationsOnInsert []TextLiteral `xml:"operationsOnInsert"`
	OperationsOnUpdate []TextLiteral `xml:"operationsOnUpdate"`
	SecurityOption     TextLiteral   `xml:"securityOption"`
	SortOrder          TextLiteral   `xml:"sortOrder"`
}

func Open

func Open(path string) (*DuplicateRule, error)

func (*DuplicateRule) KeepEmptyElements added in v0.69.0

func (c *DuplicateRule) KeepEmptyElements()

KeepEmptyElements marks duplicate rules as written with empty elements open, as Salesforce writes <value></value> in filter items.

func (*DuplicateRule) SetMetadata

func (c *DuplicateRule) SetMetadata(m metadata.MetadataInfo)

func (*DuplicateRule) Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL