Documentation ¶
Index ¶
- Constants
- func EntityToJObject(target Entity, action string, isActivityEntity bool) string
- func GetPrimaryIdAttribute(entity string) string
- func IsActivityEntity(entity string) bool
- func IsNull(eref *EntityReference) bool
- type Entity
- func (e *Entity) Contains(attributeName string) (interface{}, bool)
- func (e *Entity) GetAttributeValue(attributeName string) (interface{}, bool)
- func (e *Entity) GetBool(attribute string) bool
- func (e *Entity) GetDateTime(attribute string) time.Time
- func (e *Entity) GetDec(attribute string) float64
- func (e *Entity) GetEntityReference(attribute string) EntityReference
- func (e *Entity) GetEntityReferenceId(attribute string) string
- func (e *Entity) GetEntityReferenceName(attribute string) string
- func (e *Entity) GetFormattedValue(attribute string) string
- func (e *Entity) GetGuid(attribute string) uuid.UUID
- func (e *Entity) GetInt(attribute string) int64
- func (e *Entity) GetMoney(attribute string) Money
- func (e *Entity) GetOptionSetInt(attribute string) int64
- func (e *Entity) GetOptionSetName(attribute string) string
- func (e *Entity) GetOptionSetValue(attribute string) OptionSetValue
- func (e *Entity) GetString(attribute string) string
- func (eptr *Entity) IsEntityReference(attribute string) (bool, string)
- func (e *Entity) PrimaryIdAttribute() string
- func (e *Entity) RemoveAttribute(attribute string)
- func (e *Entity) SetBool(attribute string, value bool)
- func (e *Entity) SetDateTime(attribute string, value time.Time)
- func (e *Entity) SetDec(attribute string, value float64)
- func (e *Entity) SetEntityReference(attribute string, reference EntityReference)
- func (e *Entity) SetGuid(attribute string, value uuid.UUID)
- func (e *Entity) SetInt(attribute string, value int64)
- func (e *Entity) SetMoney(attribute string, value float64)
- func (e *Entity) SetOptionSetValue(attribute string, option OptionSetValue)
- func (e *Entity) SetString(attribute string, value string)
- func (e *Entity) ToEntityReference() EntityReference
- type EntityCollection
- type EntityReference
- type Money
- type OptionSetValue
- type OrganizationRequest
- type OrganizationResponse
- type RelationShip
Constants ¶
View Source
const ( EntityRole_Referenced = 1 EntityRole_Referencing = 2 )
Variables ¶
This section is empty.
Functions ¶
func EntityToJObject ¶
func GetPrimaryIdAttribute ¶
func IsActivityEntity ¶
func IsNull ¶
func IsNull(eref *EntityReference) bool
Types ¶
type Entity ¶
type Entity struct { RowVersion int64 Id string LogicalName string Attributes map[string]interface{} FormattedValues map[string]string RelatedEntities map[RelationShip]EntityCollection // contains filtered or unexported fields }
func JObjectToEntity ¶
func (*Entity) GetAttributeValue ¶
func (*Entity) GetEntityReference ¶
func (e *Entity) GetEntityReference(attribute string) EntityReference
func (*Entity) GetEntityReferenceId ¶
func (*Entity) GetEntityReferenceName ¶
func (*Entity) GetFormattedValue ¶
func (*Entity) GetOptionSetInt ¶
func (*Entity) GetOptionSetName ¶
func (*Entity) GetOptionSetValue ¶
func (e *Entity) GetOptionSetValue(attribute string) OptionSetValue
func (*Entity) IsEntityReference ¶
func (*Entity) PrimaryIdAttribute ¶
func (*Entity) RemoveAttribute ¶
func (*Entity) SetEntityReference ¶
func (e *Entity) SetEntityReference(attribute string, reference EntityReference)
func (*Entity) SetOptionSetValue ¶
func (e *Entity) SetOptionSetValue(attribute string, option OptionSetValue)
func (*Entity) ToEntityReference ¶
func (e *Entity) ToEntityReference() EntityReference
type EntityCollection ¶
type EntityCollection struct { EntityName string Entities []Entity MoreRecords bool PagingCookie string NextPage int64 TotalRecordCount int64 TotalRecordCountLimitExceeded bool }
func NewEntityCollection0 ¶
func NewEntityCollection0() EntityCollection
func NewEntityCollection2 ¶
func NewEntityCollection2(entityName string) EntityCollection
func (*EntityCollection) FillEntities ¶
func (ec *EntityCollection) FillEntities(arr []byte)
type EntityReference ¶
func NewEntityReference ¶
func NewEntityReference(logicalName string, id string) EntityReference
type OptionSetValue ¶
func NewOptionSetValue ¶
func NewOptionSetValue(value int64) OptionSetValue
type OrganizationRequest ¶
func (*OrganizationRequest) GetRelativeUrlString ¶
func (this *OrganizationRequest) GetRelativeUrlString() string
type OrganizationResponse ¶
type OrganizationResponse struct { ResponseName string RequestResult string Jprops map[string]string }
func NewOrganizationResponse ¶
func NewOrganizationResponse() OrganizationResponse
type RelationShip ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.