Versions in this module Expand all Collapse all v1 v1.2.2 Nov 7, 2024 Changes in this version + type BulkJobRecord struct + ApiVersion float64 + ColumnDelimiter string + ConcurrencyMode string + ContentType string + CreatedById string + CreatedDate string + ID string + LineEnding string + NumberRecordsProcessed int64 + Object string + Operation string + Retries int64 + State string + SystemModstamp string + TotalProcessingTimeMilliseconds int64 + type CollectionsDeleteRequest struct + AllOrNone bool + Ids []string + type CollectionsRequest struct + AllOrNone bool + Records []json.RawMessage + type CollectionsResponseError struct + Fields []string + Message string + StatusCode string + type CollectionsResponseItem struct + Errors []CollectionsResponseError + Id string + Success bool + type CompositeObject struct + Body []byte + ObjectType string + ReferenceId string + SalesforceId string + type CompositeRequest struct + AllOrNone bool + CompositeRequest []CompositeSubRequest + type CompositeResponse struct + CompositeResponse []CompositeSubResponse + type CompositeSubRequest struct + Body json.RawMessage + HttpHeaders interface{} + Method string + ReferenceId string + Url string + type CompositeSubResponse struct + Body CompositeSubResponseBody + HttpStatusCode int + ReferenceId string + type CompositeSubResponseBody struct + Errors []interface{} + Id string + Success bool + type Config struct + ApiVersion string + BaseUrl string + ClientId string + ClientSecret string + FastHTTPClient *fasthttp.Client + GrantType string + Password string + Username string + type DescribeObjectResponse struct + Fields []DescribeObjectResponseFields + Name string + type DescribeObjectResponseFields struct + Calculated bool + Createable bool + Name string + Type string + type GetBulkQueryJobResultsResponse struct + Body []byte + Locator string + NumberOfRecords int + type Limit struct + Max int + Remaining int + type LimitsResponse struct + AnalyticsExternalDataSizeMB Limit + ConcurrentAsyncGetReportInstances Limit + ConcurrentEinsteinDataInsightsStoryCreation Limit + ConcurrentEinsteinDiscoveryStoryCreation Limit + ConcurrentSyncReportRuns Limit + DailyAnalyticsDataflowJobExecutions Limit + DailyAnalyticsUploadedFilesSizeMB Limit + DailyApiRequests Limit + DailyAsyncApexExecutions Limit + DailyAsyncApexTests Limit + DailyBulkApiBatches Limit + DailyBulkV2QueryFileStorageMB Limit + DailyBulkV2QueryJobs Limit + DailyDeliveredPlatformEvents Limit + DailyDurableGenericStreamingApiEvents Limit + DailyDurableStreamingApiEvents Limit + DailyEinsteinDataInsightsStoryCreation Limit + DailyEinsteinDiscoveryOptimizationJobRuns Limit + DailyEinsteinDiscoveryPredictAPICalls Limit + DailyEinsteinDiscoveryPredictionsByCDC Limit + DailyEinsteinDiscoveryStoryCreation Limit + DailyFunctionsApiCallLimit Limit + DailyGenericStreamingApiEvents Limit + DailyStandardVolumePlatformEvents Limit + DailyStreamingApiEvents Limit + DailyWorkflowEmails Limit + DataStorageMB Limit + DurableStreamingApiConcurrentClients Limit + FileStorageMB Limit + HourlyAsyncReportRuns Limit + HourlyDashboardRefreshes Limit + HourlyDashboardResults Limit + HourlyDashboardStatuses Limit + HourlyLongTermIdMapping Limit + HourlyManagedContentPublicRequests Limit + HourlyODataCallout Limit + HourlyPublishedPlatformEvents Limit + HourlyPublishedStandardVolumePlatformEvents Limit + HourlyShortTermIdMapping Limit + HourlySyncReportRuns Limit + HourlyTimeBasedWorkflow Limit + MassEmail Limit + MonthlyEinsteinDiscoveryStoryCreation Limit + MonthlyPlatformEventsUsageEntitlement Limit + Package2VersionCreates Limit + Package2VersionCreatesWithoutValidation Limit + PermissionSets PermissionSetsLimit + PrivateConnectOutboundCalloutHourlyLimitMB Limit + PublishCallbackUsageInApex Limit + SingleEmail Limit + StreamingApiConcurrentClients Limit + type ListBulkJobsResponse struct + Done bool + NextRecordsUrl string + Records []BulkJobRecord + type ObjectResponse struct + Errors []string + Id string + Success bool + type PermissionSetsLimit struct + CreateCustom Limit + Max int + Remaining int + type SalesforceCredentials struct + AccessToken string + Id string + InstanceUrl string + IssuedAt int + Signature string + TokenType string + type SalesforceUtils struct + Config Config + Credentials SalesforceCredentials + FastHTTPClient *fasthttp.Client + func NewSalesforceUtils(authenticate bool, config Config) (*SalesforceUtils, error) + func (s *SalesforceUtils) Authenticate() error + func (s *SalesforceUtils) CollectionsCreateObjects(recordsJsonBytes [][]byte) (response []CollectionsResponseItem, err error) + func (s *SalesforceUtils) CollectionsDeleteObjects(ids []string) (response []CollectionsResponseItem, err error) + func (s *SalesforceUtils) CollectionsUpdateObjects(recordsJsonBytes [][]byte) (response []CollectionsResponseItem, err error) + func (s *SalesforceUtils) CompositeCreateObjects(objects []CompositeObject) (response CompositeResponse, err error) + func (s *SalesforceUtils) CompositeDeleteObjects(objects []CompositeObject) (response CompositeResponse, err error) + func (s *SalesforceUtils) CompositeUpdateObjects(objects []CompositeObject) (response CompositeResponse, err error) + func (s *SalesforceUtils) CompositeUpsertObjects(objects []CompositeObject) (response CompositeResponse, err error) + func (s *SalesforceUtils) CreateBulkQueryAllJob(query string) (BulkJobRecord, error) + func (s *SalesforceUtils) CreateBulkQueryJob(query string) (BulkJobRecord, error) + func (s *SalesforceUtils) CreateObject(typeName string, jsonBytes []byte) (response ObjectResponse, err error) + func (s *SalesforceUtils) DeleteObject(typeName, id string) error + func (s *SalesforceUtils) DescribeObject(typeName string) (response DescribeObjectResponse, err error) + func (s *SalesforceUtils) ExecuteSoqlQuery(query string) (SoqlResponse, error) + func (s *SalesforceUtils) ExecuteSoqlQueryAll(query string) (SoqlResponse, error) + func (s *SalesforceUtils) GetBulkQueryJob(queryJobID string) (response BulkJobRecord, err error) + func (s *SalesforceUtils) GetBulkQueryJobResults(queryJobID string, locator string) (response GetBulkQueryJobResultsResponse, err error) + func (s *SalesforceUtils) GetLimits() (*LimitsResponse, error) + func (s *SalesforceUtils) GetNextRecords(nextRecordsUrl string) (response SoqlResponse, err error) + func (s *SalesforceUtils) ListBulkJobs() (response ListBulkJobsResponse, err error) + func (s *SalesforceUtils) UpdateObject(typeName, id string, jsonBytes []byte) error + type SoqlResponse struct + Done bool + NextRecordsUrl string + Records []interface{} + TotalSize int