Versions in this module Expand all Collapse all v2 v2.0.2 Feb 4, 2026 Changes in this version + type FieldInfo struct + APIName string + Createable bool + DataType string + Label string + Required bool + Updateable bool + type FieldValue struct + DisplayValue string + Value interface{} + type HTTPClient interface + Delete func(ctx context.Context, path string) ([]byte, error) + Get func(ctx context.Context, path string) ([]byte, error) + Patch func(ctx context.Context, path string, body interface{}) ([]byte, error) + Post func(ctx context.Context, path string, body interface{}) ([]byte, error) + type LayoutItem struct + Editability string + Field string + Label string + type LayoutRepresentation struct + ID string + LayoutType string + Mode string + Sections []LayoutSection + type LayoutRow struct + LayoutItems []LayoutItem + type LayoutSection struct + Columns int + Heading string + LayoutRows []LayoutRow + UseHeading bool + type ObjectInfo struct + APIName string + Createable bool + Deletable bool + Fields map[string]FieldInfo + KeyPrefix string + Label string + LabelPlural string + Updateable bool + type PicklistFieldValue struct + DefaultValue *PicklistValue + Values []PicklistValue + type PicklistValue struct + Label string + Value string + type PicklistValues struct + ETag string + PicklistFieldValues map[string]PicklistFieldValue + type RecordRepresentation struct + APIName string + Fields map[string]FieldValue + ID string + RecordTypeId string + SystemModstamp string + type RecordUI struct + Layouts map[string]LayoutRepresentation + ObjectInfos map[string]ObjectInfo + Records map[string]RecordRepresentation + type Service struct + func NewService(client HTTPClient, apiVersion string) *Service + func (s *Service) CreateRecord(ctx context.Context, objectAPIName string, fields map[string]interface{}) (*RecordRepresentation, error) + func (s *Service) DeleteRecord(ctx context.Context, recordId string) error + func (s *Service) GetLayout(ctx context.Context, objectAPIName, layoutType, mode string) (*LayoutRepresentation, error) + func (s *Service) GetObjectInfo(ctx context.Context, objectAPIName string) (*ObjectInfo, error) + func (s *Service) GetPicklistValues(ctx context.Context, objectAPIName, recordTypeId string) (*PicklistValues, error) + func (s *Service) GetRecord(ctx context.Context, recordId string, fields []string) (*RecordRepresentation, error) + func (s *Service) GetRecordUI(ctx context.Context, recordIds []string) (*RecordUI, error) + func (s *Service) UpdateRecord(ctx context.Context, recordId string, fields map[string]interface{}) (*RecordRepresentation, error)