# legacydeveloper Uiapi - Full Documentation # Action The actions for a single record or a collection of records. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | actions | Map | A map of record IDs to the actions for each record. | Small, 41.0 | 41.0 | | url | String | The URL of the current request. | Big, 41.0 | 41.0 | #### See Also - [Get Related List Actions with a Request Body](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_related_list_actions_get.htm "Get the actions on related lists for a record detail page. This resource uses the POST method so you can enter request parameters in the request body instead using complex URL parameters.") # Action Input Get the actions on related lists on a record detail page. JSON example To get information about related list actions on a record detail page, use this request with a request body. POST /services/data/v68.0/ui-api/actions/record/001R0000003IDlwIAG/related-list { "apiNames": \["New"\], "retrievalMode": "All" } Properties
Parameter Name Type Description Required or Optional Available Version
actionTypes String[] The action type. One or more of these values:
  • CustomButton—A button that opens a URL or Visualforce page or executes JavaScript.
  • ProductivityAction—A pre-defined Salesforce action, attached to a limited set of objects.
  • QuickAction—A global or object-specific action.
  • StandardButton—A pre-defined Salesforce button, such as New, Edit, and Delete.
Optional 57.0
apiNames String[] The API names of one or more actions to be retrieved. Use this parameter only when passing retrievalMode=All. Optional 57.0
formFactor String The layout display size. One of these values:
  • Large—(Default) Use this value to get a layout for desktop display size.
  • Medium—Use this value to get a layout for tablet display size.
  • Small—Use this value to get a layout for phone display size.
Optional 57.0
retrievalMode String When the action context is Record, this parameter indicates which actions to retrieve from the record page. One of these values:
  • All—Retrieves all actions specified in the apiNames parameter.
  • PageLayout—(Default) Retrieves actions from the page layout.
Optional 57.0
sections String[] The section of the user interface that the actions reside in. One or more of these values:
  • ActivityComposer
  • CollaborateComposer
  • Page
  • SingleActionLinks
Optional 57.0
#### See Also - [Get Related List Actions with a Request Body](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_related_list_actions_get.htm "Get the actions on related lists for a record detail page. This resource uses the POST method so you can enter request parameters in the request body instead using complex URL parameters.") # Action Related List Single Batch Input Get the actions on a batch of related lists for a record. JSON example To get information about the actions for the Contacts and Opportunities related lists on an Account record page, use this request with parameters in a request body. POST /services/data/v68.0/ui-api/actions/record/001R0000003IDlwIAG/related-list/batch { "relatedListsActionParameters": \[ { "relatedListId": "Contacts", "apiNames": \[ "New" \], "retrievalMode": "All" }, { "relatedListId": "Opportunities", "apiNames": \["New" \], "retrievalMode": "All" } \] } Properties
Parameter Name Type Description Required or Optional Available Version
actionTypes String[] The action type. One or more of these values:
  • CustomButton—A button that opens a URL or Visualforce page or executes JavaScript.
  • ProductivityAction—A pre-defined Salesforce action, attached to a limited set of objects.
  • QuickAction—A global or object-specific action.
  • StandardButton—A pre-defined Salesforce button, such as New, Edit, and Delete.
Optional 57.0
apiNames String[] The API names of one or more actions to be retrieved. Use this parameter only when passing retrievalMode=All. Optional 57.0
formFactor String The layout display size. One of these values:
  • Large—(Default) Use this value to get a layout for desktop display size.
  • Medium—Use this value to get a layout for tablet display size.
  • Small—Use this value to get a layout for phone display size.
Optional 57.0
relatedListId String The ID of the related list. Optional 57.0
retrievalMode String When the action context is Record, this parameter indicates which actions to retrieve from the record page. One of these values:
  • All—Retrieves all actions specified in the apiNames parameter.
  • PageLayout—(Default) Retrieves actions from the page layout.
Optional 57.0
sections String[] The section of the user interface that the actions reside in. One or more of these values:
  • ActivityComposer
  • CollaborateComposer
  • Page
  • SingleActionLinks
Optional 57.0
#### See Also - [Get a Batch of Related List Actions with a Request Body](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_related_list_actions_batch_get.htm "Get the actions on a batch of related lists for a record. This resource uses the POST method so you can enter request parameters in the request body instead using complex URL parameters.") # Action Related Lists Batch Input Get the actions on a batch of related lists for a record. JSON example To get information about the actions for the Contacts and Opportunities related lists on an Account record page, use this request with parameters in a request body. POST /services/data/v68.0/ui-api/actions/record/001R0000003IDlwIAG/related-list/batch { "relatedListsActionParameters": \[ { "relatedListId": "Contacts", "apiNames": \[ "New" \], "retrievalMode": "All" }, { "relatedListId": "Opportunities", "apiNames": \["New" \], "retrievalMode": "All" } \] } Properties | Parameter Name | Type | Description | Required or Optional | Available Version | | --- | --- | --- | --- | --- | | relatedListsActionParameters | [Action Related List Single Batch Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_action_related_list_single_batch_input.htm "Get the actions on a batch of related lists for a record.") | Parameters for each related list in the batch request. | Required | 57.0 | #### See Also - [Get a Batch of Related List Actions with a Request Body](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_related_list_actions_batch_get.htm "Get the actions on a batch of related lists for a record. This resource uses the POST method so you can enter request parameters in the request body instead using complex URL parameters.") # Actions Use these resources to get data and metadata about actions displayed in the Salesforce UI. Examples include standard and custom buttons, quick actions, and productivity actions. - **[Get Global Actions](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_global.htm)** Get the actions in the Global Actions menu. - **[Get Record Detail Actions](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_action_record.htm)** Get the actions on record detail pages. - **[Get Record Edit Actions](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_action_record_edit.htm)** Get the actions on a record edit page. - **[Get Related List Actions with URL Parameters](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_related_list.htm)** Get the actions on related lists on a record detail page via URL parameters. - **[Get Related List Actions with a Request Body](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_related_list_actions_get.htm)** Get the actions on related lists for a record detail page. This resource uses the POST method so you can enter request parameters in the request body instead using complex URL parameters. - **[Get a Batch of Related List Actions with URL Parameters](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_related_lists_batch.htm)** Get the actions on a batch of related lists for a record via URL parameters. - **[Get a Batch of Related List Actions with a Request Body](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_related_list_actions_batch_get.htm)** Get the actions on a batch of related lists for a record. This resource uses the POST method so you can enter request parameters in the request body instead using complex URL parameters. - **[Get Related List Record Actions](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_related_list_record.htm)** Get the actions on records in related lists. - **[Get List View Header Actions](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_list_view.htm)** Get the header actions on list views. - **[Get List View Record Actions](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_list_view_record.htm)** Get the record actions on list views. - **[Get List View Chart Actions](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_list_view_chart.htm)** Get the chart actions on list views. - **[Get Lightning Page Actions](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_flexipage.htm)** Get the actions on Lightning pages (FlexiPages). - **[Get Lookup Field Actions](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_lookup.htm)** Get the actions on lookup fields. - **[Get MRU List View Actions](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_mru_list.htm)** Get the header actions on the most recently used (MRU) list view for objects. - **[Get Photo Actions](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_photo.htm)** Get the photo actions for pages. Currently, only group and user pages support photo actions. - **[Get a Quick Action Layout](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_quick_action_layout.htm)** Get information about the record layout used by a Create a Record or Update a Record quick action. - **[Perform Quick Actions](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_perform_action.htm)** Perform a quick action that creates or updates a record. - **[Update a Record with a Quick Action](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_update_action.htm)** Perform an Update a Record quick action. To perform a quick action that creates or updates a record, you can also use the POST method. # Advanced Lookup Display Info Search lookups advanced display information. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | fields | [Advanced Lookup Display Info Field](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_advanced_lookup_display_info_field.htm "Search lookups advanced display field information.")\[\] | Ordered list of advanced lookup display fields. | Small, 61.0 | 61.0 | # Advanced Lookup Display Info Field Search lookups advanced display field information. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | fieldPath | String | Advanced lookup display field path. | Small, 61.0 | 61.0 | | label | String | Advanced lookup display field label. | Small, 61.0 | 61.0 | | objectApiName | String | Advanced lookup display field object API name. | Small, 61.0 | 61.0 | # Advanced Lookup Info Advanced search lookup information. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | displayInfo | [Advanced Lookup Display Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_advanced_lookup_display_info.htm "Search lookups advanced display information.") | Advanced lookup display information. | Small, 61.0 | 61.0 | # All Supported Objects User Interface API supports many standard objects as well as all custom and external objects. For general information about the supported objects for UI API, see [Supported Objects](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_get_started_supported_objects.htm "User Interface API supports all custom objects and external objects and many standard objects."). This is a list of supported standard objects. As of Summer ’23, all new standard objects are auto-enabled for UI API usage. This list might not reflect the latest object support. To check if a specific object is supported, use the [/ui-api/object-info/{objectApiName} resource](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_get_started_supported_objects.htm "User Interface API supports all custom objects and external objects and many standard objects."). - AISentimentResult - Account - AccountBrand - AccountContactRelation - AccountForecast - AccountForecastAdjustment - AccountForecastPeriodMetric - AccountParticipant - AccountPartner - AccountProductForecast - AccountProductPeriodForecast - AccountRelationship - AccountTeamMember - Accreditation - AcctMgrPeriodicTargetDstr - AcctMgrTarget - AcctMgrTargetDstr - ActionCadence - ActionCadenceStep - ActionCadenceTracker - ActionCadenceStepTracker - ActionPlan - ActionPlanItem - ActionPlanItemDependency - ActionPlanTemplate - ActionPlanTemplateItem - ActionPlanTemplateItemValue - ActionPlanTemplateVersion - ActionPlnTmplItmDependency - ActionPlanTmplItmAssessmentInd - ActionVisibility - ActivationTarget - ActiveScratchOrg - ActivityMetric - ActivityTiming - AddOnDefinition - Address - AdCreativeSizeType - AdOrderItem - AdOrderLineAdTarget - AdPageLayoutType - AdProductTargetCategory - AdQuote - AdServer - AdServerAccount - AdServerUser - AdSpaceCreativeSizeType - AdSpaceGroupMember - AdSpaceSpecification - AdTargetCategory - AdTargetCategorySegment - AdUsage - AdUsageSummary - AdvAccountForecastFact - AdvAcctForecastSetPartner - AiDataset - AiImageDetectedObject - AiImageTrainingObject - AiVisionModel - AiVisionModelMetric - AiVisionModelObjectMetric - AiVisitRecommendRequest - AiVisitRecommendation - AiVisitSummary - AiVisitTaskRcmd - AiVisitTaskRcmdRequest - AirTravelEmssnFctr - AirTravelEnrgyUse - AllergyIntolerance - AlternativePaymentMethod - ApiAnomalyEventStore - AppAnalyticsQueryRequest - AppExtension - AppMenuItem - AppUsageAssignment - ApplicationCase - ApplicationFormTemplate - AppointmentInvitation - AppointmentInvitee - AppointmentReason - AppointmentTopicTimeSlot - ApptBundleAggrDurDnscale - ApptBundleAggrPolicy - ApptBundleConfig - ApptBundlePolicy - ApptBundlePolicySvcTerr - ApptBundlePropagatePolicy - ApptBundleRestrictPolicy - ApptBundleSortPolicy - Assessment - AssessmentIndDefinedValue - AssessmentIndValue - AssessmentIndicatorDefinition - AssessmentQuestion - AssessmentQuestionResponse - AssessmentQuestionSet - AssessmentQuestionVersion - AssessmentTask - AssessmentTaskContentDocument - AssessmentTaskDefinition - AssessmentTaskIndDefinition - AssessmentTaskOrder - Asset - AssetAction - AssetActionSource - AssetAttribute - AssetDowntimePeriod - AssetRelationship - AssetStatePeriod - AssetWarranty - AssignedResource - AssistantText - AssociatedLocation - Assortment - AssortmentProduct - AsyncOperationLog - AttachedContentNote - AttributeCategory - AttributeDefinition - AttributePicklist - AttributePicklistValue - AuthApplicationAsset - AuthApplicationPlace - AuthFormRequestRecord - AuthLocationAccessSchedule - AuthorNote - AuthorizationForm - AuthorizationFormConsent - AuthorizationFormDataUse - AuthorizationFormText - AuthorizedInsuranceLine - AuthProvider - AutomatedAction - AutomatedActionCondition - AutomatedActionParameter - Award - BCEntityPermission - BCEntityPermissionSet - BCFieldPermission - BCParticipant - BCParticipantAccess - BCPermissionSet - BCRecordAccess - BCRecordAccessApproval - BCRelatedParticipant - BackgroundOperation - Banker - BatchJob - BatchJobDefinition - BatchJobPart - BatchJobPartFailedRecord - Benefit - BenefitParameterValue - BenefitSchedule - BenefitSession - BenefitType - BillingBatchFilterCriteria - BillingBatchScheduler - BillingPeriodItem - BillingPeriodTaxItem - BillingPolicy - BillingSchedule - BillingScheduleCreationStatus - BillingScheduleGroup - BillingTreatment - BillingTreatmentItem - BldgEnrgyIntensity - BldgEnrgyIntensityVal - BldgSizeCategory - BlockchainAppMember - BlockchainApplication - BlockchainEntity - BlockchainField - BlockchainMember - BoardCertification - BranchUnit - BranchUnitBusinessMember - BranchUnitCustomer - BranchUnitRelatedRecord - BroadcastCommunication - Budget - BudgetAllocation - BundledCareFeeAgreement - BusRegAuthTypeDependency - BusRegAuthorizationType - BusinessBrand - BusinessHours - BusinessLicense - BusinessLicenseApplication - BusinessMilestone - BusinessProfile - BusinessType - BuyerAccount - BuyerGroupPricebook - CalcProcStepRelationship - CalculationMatrix - CalculationMatrixColumn - CalculationMatrixRow - CalculationMatrixVersion - CalculationProcedure - CalculationProcedureStep - CalculationProcedureVariable - CalculationProcedureVersion - Campaign - CampaignInfluence - CampaignInsight - CampaignMember - CampaignMemberStatus - CapitationCareFeeAgreement - CardPaymentMethod - CareBarrier - CareBarrierDeterminant - CareBarrierType - CareBenefitVerifyRequest - CareDeterminant - CareDeterminantType - CareDiagnosis - CareFeeScheduleItem - CareInterventionType - CareLimitType - CareMetricTarget - CareObservation - CareObservationComponent - CarePlanDetail - CarePerformer - CarePgmProvHealthcareProvider - CarePractnFacilityAppt - CarePreauth - CarePreauthItem - CareProgram - CareProgramCampaign - CareProgramEligibilityRule - CareProgramEnrollee - CareProgramEnrolleeProduct - CareProgramEnrollmentCard - CareProgramGoal - CareProgramProduct - CareProgramProvider - CareProgramTeamMember - CareProviderAdverseAction - CareProviderFacilitySpecialty - CareProviderSearchableField - CareRegisteredDevice - CareRequest - CareRequestDrug - CareRequestExtension - CareRequestItem - CareRequestReviewer - CareSpecialty - CareSpecialtyTaxonomy - CareTaxonomy - CartDeliveryGroup - CartItem - CartItemPriceAdjustment - CartTax - Case - CaseArticle—See [Salesforce Knowledge Developer Guide](https://developer.salesforce.com/docs/atlas.en-us.264.0.knowledge_dev.meta/knowledge_dev/knowledge_development_uiapi_limitations.htm) for UI API limitations. - CaseContactRole - CaseMilestone - CaseParticipant - CaseRelatedFile - CaseRelatedIssue - CaseServicePlan - CategorizedCareFeeAgreement - ChangeRequest - ChangeRequestRelatedIssue - ChannelObjectLinkingRule - ChannelProgram - ChannelProgramLevel - ChannelProgramMember - Claim - ClaimCase - ClaimCovPaymentAdjustment - ClaimCovReserveAdjustment - ClaimCoverage - ClaimCoveragePaymentDetail - ClaimCoverageReserveDetail - ClaimItem - ClaimParticipant - ClaimPaymentSummary - ClaimRecovery - ClinicalAlert - ClinicalEncounter - ClinicalEncounterDiagnosis - ClinicalEncounterFacility - ClinicalEncounterIdentifier - ClinicalEncounterProvider - ClinicalEncounterReason - ClinicalEncounterSvcRequest - ClinicalServiceRequest - ClinicalServiceRequestDetail - CloudServiceProvider - CodeSet - CodeSetBundle - CommSubscription - CommSubscriptionChannelType - CommSubscriptionConsent - CommSubscriptionTiming - CommissionSchedule - CommissionScheduleAssignment - ComplaintCase - ComplaintParticipant - ConsentMetric - ConsentUsageMetric - ConsumptionRate - ConsumptionSchedule - Contact - ContactEncounter - ContactEncounterParticipant - ContactPointAddress - ContactPointConsent - ContactPointEmail - ContactPointPhone - ContactPointTypeConsent - ContactRequest - ContentDocument - ContentDocumentLink - ContentDocumentListViewMapping - ContentFolderItem - ContentFolderLink - ContentNote - ContentVersion - ContentWorkspace - Contract - ContractContactRole - ContractDocVerContentDoc - ContractDocVersionSection - ContractDocumentVersion - ContractGroupPlan - ContractGroupPlanGroupClass - ContractLineItem - ContractPaymentAgreement - ContractType - ContractTypeConfig - ConversationBroadcast - ConversationBroadcastEntry - Coupon - CourseOffering - CourtAction - CourtActionOutcome - CoverageBenefit - CoverageBenefitItem - CoverageBenefitItemLimit - CoverageType - CrbnEmssnScopeAlloc - CrbnEmssnScopeAllocVal - CredentialStuffingEventStore - CreditMemo - CreditMemoInvApplication - CreditMemoLine - Crisis - CryptoTransEnvelopeChgLog - CspTrustedSites - Customer - CustomerProperty - CustomObjectParticipant - CustomPermission - DandBCompany - DataAction - DataActionTarget - DataConnectorS3 - DataLakeObjectInstance - DataStream - DataUseLegalBasis - DataUsePurpose - DelegatedAccount - DeleteEvent - DeliveryTask - DiagnosticSummary - DiagnosticSummaryDetail - DigitalSignature - DigitalWallet - DistributorAuthorization - DocTemplateSectionCondition - DocumentChecklistItem - DocumentEnvelope - DocumentGenerationSetting - DocumentRecipient - DocumentTemplate - DocumentTemplateClause - DocumentTemplateContentDoc - DocumentTemplateSection - DocumentTemplateToken - DsarPolicyLog - DuplicateRecordItem - DuplicateRecordSet - DynamicDataCapture - ECart - EditionDefinition - ElectricityEmssnFctrSet - ElectronicMediaGroup - EmailMessage - EmailTemplate - Employee - EmployeeAsset - EmployeeContact - EmployeeCrisisAssessment - EmployeeJob - EmployeeJobPosition - EmployeeOrganization - EmpUserProvisioningProcess - EmpUserProvisionProcessErr - EnablementMeasureDefinition - EnablementProgram - EndCaseArticle - EngagementChannelType - EnhancedLetterhead - EnrolleeBenefit - EnrollmentEligibilityCriteria - Entitlement - EntitlementContact - EntityArchivingException - EntityArchivingJob - EntityArchivingSetup - EntityMilestone - EnvironmentHubMember - Event - Examination - Expense - ExpenseReport - ExpenseReportEntry - ExplainabilityMsgTemplate - ExpressionSetView - ExternalAccountHierarchy - ExtDataShare - ExtDataShareTarget - FeedItem - FeeScheduleDefinition - FieldPermissions - FieldServiceMobileExtension - FieldServiceMobileSettings - FieldServiceOrgSettings - FinanceBalanceSnapshot - FinanceBook - FinancePeriod - FinanceTransaction - FinanceTransactionErrorLog - FinancialDeal - FinancialDealAsset - FinancialDealBid - FinancialDealInteraction - FinancialDealParticipant - FinancialDealParty - FinancialDealProduct - FinclDealInteractionSummary - FlowInterview - FlowOrchestrationInstance - FlowOrchestrationLog - FlowOrchestrationStageInstance - FlowOrchestrationStepInstance - FlowOrchestrationWorkItem - ForecastingCustomData - ForecastingFact - ForecastingOwnerAdjustment - ForecastingQuota - ForecastingType - FrgtHaulingEmssnFctr - FrgtHaulingEnrgyUse - FtestConcrete - FtestConcrete6 - FtestConcrete7 - FtestConcrete8 - FtestZosUiPrototypeChild1 - FtestZosUiPrototypeChild2 - FtestZosUiPrototypeParent - FulfillmentOrder - FulfillmentOrderLineItem - GeneratedDocument - GeneratedDocumentSection - GeneratedWaste - GenericVisitTask - GenericVisitTaskContext - GeoCountry - GeoState - GnrcVstKeyPerformanceInd - GnrcVstTaskContextRelation - GoalDefinition - GoalLink - GroundTravelEmssnFctr - GroundTravelEnrgyUse - Group - GroupCensus - GroupCensusMember - GroupClass - GroupClassContribution - GroupMember - GuestBuyerProfile - HealthCareDiagnosis - HealthCareProcedure - HealthCondition - HealthConditionDetail - HealthcareFacility - HealthcareFacilityNetwork - HealthcarePayerNetwork - HealthcarePractitionerFacility - HealthcareProvider - HealthcareProviderNpi - HealthcareProviderSpecialty - HealthcareProviderTaxonomy - Holiday - HotelStayEmssnFctr - HotelStayEnrgyUse - IPAddressRange - Identifier - IdentityDocument - Image - Incident - IncludedLicenseDefinition - Individual - IndividualApplication - IndividualCrisisAssessment - InflationRate - InfoAuthRequestForm - InfoAuthorizationRequest - InsightsExternalData - InsightsExternalDataPart - InspectionAssessmentInd - InspectionType - InStoreLocation - InsuranceClaimAsset - InsuranceContract - InsurancePolicy - InsurancePolicyAsset - InsurancePolicyCoverage - InsurancePolicyMemberAsset - InsurancePolicyParticipant - InsurancePolicySurcharge - InsurancePolicyTransaction - InsuranceProfile - IntegrationProviderDef - Interaction - InteractionAttendee - InteractionParticipant - InteractionSumDiscussedAccount - InteractionSummary - InteractionSummaryParticipant - InterestTag - InternalOrganizationUnit - InventoryItemReservation - InventoryReservation - Invoice - InvoiceAddressGroup - InvoiceLine - JobFamily - JobPosition - JobProfile - JobRole - JournalReason - JournalSubType - JournalType - KnowledgeArticleVersion—See [Salesforce Knowledge Developer Guide](https://developer.salesforce.com/docs/atlas.en-us.264.0.knowledge_dev.meta/knowledge_dev/knowledge_development_uiapi_limitations.htm) for UI API limitations. - Lead - LeadLineItemLeadPreferredSeller - LearningItem - LearningItemAssignment - LearningItemProgress - LegalEntity - LicensingError - LicensingRequest - LicensingRequestOrderItem - LicensingSnapshotRequest - LinkedArticle—See [Salesforce Knowledge Developer Guide](https://developer.salesforce.com/docs/atlas.en-us.264.0.knowledge_dev.meta/knowledge_dev/knowledge_development_uiapi_limitations.htm) for UI API limitations. - ListEmail - LiveAgentSession - LiveChatSensitiveDataRule - LiveChatTranscript - LiveChatVisitor - LoanApplicant - LoanApplicantAddress - LoanApplicantAsset - LoanApplicantDeclaration - LoanApplicantEmployment - LoanApplicantIncome - LoanApplicantLiability - LoanApplicationAsset - LoanApplicationFinancial - LoanApplicationLiability - LoanApplicationProperty - LoanApplicationTitleHolder - LocWaitlistMsgTemplate - Location - LocationGroupAssignment - LocationTrustMeasure - LocationWaitlist - LocationWaitlistedParty - LoyaltyAggrPointExprtLedger - LoyaltyLedger - LoyaltyMemberCurrency - LoyaltyMemberTier - LoyaltyPartnerProduct - LoyaltyPgmGroupMbrRlnsp - LoyaltyPgmMbrAttributeVal - LoyaltyPgmPartnerCurrency - LoyaltyPgmPartnerPromotion - LoyaltyPgmPtnrLdgrSummary - LoyaltyPgmPtnrPrepaidPack - LoyaltyProgram - LoyaltyProgramCurrency - LoyaltyProgramMbrPromotion - LoyaltyProgramMember - LoyaltyProgramMemberCase - LoyaltyProgramPartner - LoyaltyProgramPartnerLedger - LoyaltyProgramProcess - LoyaltyProgramProcessRule - LoyaltyTier - LoyaltyTierBenefit - LoyaltyTierGroup - Macro - ManufacturingProgram - MaintenanceAsset - MaintenancePlan - MaintenanceWorkRule - ManagedContent - ManagedContentVariant - MarketSegmentActivation - MarketingAction - MarketingAppExtAction - MarketingAppExtActivity - MarketingAppExtAssignment - MarketingAppExtension - MarketingForm - MarketingLink - MarketingLinkContent - MarketingResource - MediaChannel - MediaContentTitle - Medication - MedicationDispense - MedicationReconciliation - MedicationRequest - MedicationStatement - MedicationStatementDetail - MedicinalIngredient - MedReconRecommendation - MedReconStmtRecommendation - MemberBenefit - MemberPlan - MessagingChannel - MessagingDeliveryError - MessagingEndUser - MessagingSession - Metric - MilestoneType - MktCalculatedInsight - MktDataTransform - MktMLModel - MobileSettingsAssignment - MsgChannelLanguageKeyword - MultipartyInfoAuthRequest - NamespaceRegistry - Network - NetworkReferencedObject - Note - ObjectPermissions - ObjectStateDefinition - ObjectStateTransition - ObjectStateValue - OcrDocumentScanResult - OmniDataPack - OmniDataTransform - OmniDataTransformItem - OmniESignatureTemplate - OmniInteractionConfig - OmniProcess - OmniProcessAsmtQuestionVer - OmniProcessCompilation - OmniProcessElement - OmniProcessTransientData - OmniScriptSavedSession - OmniUiCard - OperatingHours - OperatingHoursHoliday - Opportunity - OpportunityContactRole - OpportunityHistory - OpportunityLineItem - OpportunityLineItemSplit - OpptyLineItemSplitType - OpportunityLineItemSchedule - OpportunityParticipant - OpportunityPartner - OpportunityPreferredSeller - OpportunitySplit - OpportunityTeamMember - Order - OrderAction - OrderAdjustmentGroup - OrderChangeLog - OrderDeliveryGroup - OrderDeliveryMethod - OrderItem - OrderItemAdjustmentLineItem - OrderItemRelationship - OrderItemRelationshipChangeEvent - OrderItemRelationshipFeed - OrderItemRelationshipHistory - OrderItemRelationshipShare - OrderItemSummaryChange - OrderItemTaxLineItem - OrderItemTaxLineItemSummary - OrderSummary - OrderSummaryRoutingSchedule - OrgMetric - OrgMetricScanResult - OrgMetricScanSummary - Organization - OtherComponentTask - OtherEmssnFctrSet - OtherEmssnFctrSetItem - ParticipantRole - Partner - PartnerFundAllocation - PartnerFundClaim - PartnerFundRequest - PartnerMarketingBudget - PartyConsent - PartyIncome - PatientHealthReaction - PatientImmunization - PatientMedicalProcedure - PatientMedicalProcedureDetail - PatientMedicationDosage - Payment - PaymentApplicationMethod - PaymentAuthorization - PaymentAuthAdjustment - PaymentBatchRun - PaymentBatchRunCriteria - PaymentGateway - PaymentGatewayLog - PaymentGatewayProvider - PaymentIntent - PaymentLineInvoice - PaymentPolicy - PaymentRequest - PaymentRequestLine - PaymentSchedule - PaymentScheduleItem - PaymentTreatment - PcmtEmssnFctrSet - PcmtEmssnFctrSetItem - PercentileBsdCareFeeAgreement - PermissionSet - PermissionSetGroup - PermissionSetLicense - PersonAccount - PersonEducation - PersonEmployment - PersonExamination - PersonLanguage - PersonLifeEvent - PersonName - PersonTraining - PersonalDevelopmentPlan - PersonalDevelopmentPlanItem - PgmRebateTypBnftMapping - PlanBenefit - PlanBenefitItem - PlatformLicenseDefinition - Polygon - PreliminaryApplicationRef - PreventiveCareAgreement - PriceAdjustmentGroupShape - PriceAdjustmentItemShape - PriceAdjustmentSchedule - PriceAdjustmentTier - Pricebook2 - PricebookEntry - PriceRule - PriceRuleAction - PriceRuleActionItem - PriceRuleCondition - PriceRuleConditionFilter - PriceRuleExecutionStage - PrivacyJobSession - PrivacyPolicy - PrivacyRequest - Problem - ProblemIncident - ProcessDefinition - ProcessException - ProcessInstance - Producer - ProducerCommission - ProducerPolicyAssignment - Product2 - Product2DataTranslation - ProductAttribute - ProductAttributeDefinition - ProductAttributeSet - ProductAttributeSetItem - ProductAttributeSetProduct - ProductAvailabilityProjection - ProductCatalog - ProductCategory - ProductCategoryAttribute - ProductCategoryDataTranslation - ProductCategoryMedia - ProductCategoryProduct - ProductComponentGroup - ProductConsumed - ProductConsumedState - ProductConsumptionSchedule - ProductCoverage - ProductEmissionsFactor - ProductFulfillmentLocation - ProductItem - ProductItemTransaction - ProductLicenseMap - ProductMedia - ProductQuantityRule - ProductRelatedComponent - ProductRelationshipType - ProductRequest - ProductRequestLineItem - ProductRequired - ProductSellingModel - ProductSellingModelOption - ProductServiceCampaign - ProductServiceCampaignItem - ProductSpecificationType - ProductTaxPolicy - ProductTransfer - ProductTransferState - ProductWarrantyTerm - Profile - ProfileSkill - ProfileSkillEndorsement - ProfileSkillUser - ProgramRebateTypPayoutSrc - ProgramRebateType - ProgramRebateTypeBenefit - ProgramRebateTypeFilter - ProgramRebateTypePayout - ProgramRebateTypeProduct - ProgramRebateTypeReference - Promotion - PromotionChannel - PromotionDataTranslation - PromotionLoyaltyPtnrProdt - PromotionMarketSegment - PromotionProduct - PromotionProductCategory - PromotionQualifier - PromotionSegment - PromotionSegmentBuyerGroup - PromotionSegmentSalesStore - PromotionTarget - ProrationPolicy - ProviderNetworkTier - ProviderSearchSyncLog - ProvisioningRun - ProvisioningRunEvent - ProvisioningTargetGroup - ProvisioningTargetItem - ProvisioningTargetRole - PublicApplicationParticipant - PublicComplaint - PublicProgram - PublicServiceGoal - PurchaseQuantityRule - PurchaserPlan - PurchaserPlanAssn - QuickText - Quote - QuoteDocument - QuoteItemTaxItem - QuoteLineItem - QuoteLineItemAttribute - QuoteLinePriceAdjustment - RebateMemberAggregateItem - RebateMemberProductAggregate - RebatePayment - RebatePayoutAdjustment - RebateProgram - RebateProgramMember - RebateProgramMemberPayout - RebateProgramPayoutPeriod - ReceivedDocument - ReceivedDocumentType - Recommendation - RecordAction - RecordAlert - RecordType - RecordsetFilterCriteria - RecordsetFilterCriteriaRule - RefrigerantEmssnFctr - RefundLinePayment - RegAuthorizationTypeProduct - RegulatoryAuthority - RegulatoryAuthorizationType - RegulatoryCode - RegulatoryCodeAssessmentInd - RegulatoryCodeViolation - RegulatoryTrxnFee - RegulatoryTrxnFeeItem - RentalCarEmssnFctr - RentalCarEnrgyUse - ReplyText - ReportAnomalyEventStore - ResidentialLoanApplication - ResourceAbsence - ResourcePreference - RetailLocationGroup - RetailStore - RetailStoreGroupAssignment - RetailStoreKpi - RetailVisitKpi - ReturnOrder - ReturnOrderLineItem - RevRecogTreatmentItemGroup - RevenueDistributionMethod - RevenueElement - RevenueElementDistribution - RevenueRecogTreatmentItem - RevenueRecognitionPolicy - RevenueRecognitionTreatment - RevenueTransactionErrorLog - SalesAgreement - SalesAgreementProduct - SalesAgreementProductSchedule - SalesContractLine - SalesforceContract - SalesforceInvoice - SalesforceQuote - SalesTransactionItemShape - SalesTransactionShape - SalesTrxnItemRelationship - SchedulingConstraint - Scope3CrbnFtprnt - Scope3EmssnSrc - Scope3PcmtItem - Scope3PcmtSummary - Scorecard - ScorecardAssociation - ScorecardMetric - SearchPromotionRule - SecuritiesHolding - Seller - SerializedProduct - SerializedProductTransaction - ServiceAppointment - ServiceAppointmentCapacityUsage - ServiceAppointmentStatus - ServiceContract - ServiceCrew - ServiceCrewMember - ServicePlanTemplate - ServicePlanTemplateBenefit - ServicePlanTemplateGoal - ServiceReport - ServiceReportLayout - ServiceResource - ServiceResourceCapacity - ServiceResourcePreference - ServiceResourceSkill - ServiceTerritory - ServiceTerritoryLocation - ServiceTerritoryMember - ServiceTerritoryWorkType - SessionHijackingEventStore - SettingUsageDefinition - SettingUsageMap - SetupAssistantStep - SharedSavingPaymentAgreement - SharingRecordCollection - SharingRecordCollectionItem - Shift - ShiftPattern - ShiftPatternEntry - ShiftTemplate - Shipment - SignatureTask - SignatureTaskLineItem - Skill - SkillLevelDefinition - SkillRequirement - Snippet - SocialPersona - SocialPost - StandardCareFeeAgreement - StandardPermissionSet - StaticResource - StnryAssetCrbnFtprnt - StnryAssetCrbnFtprntItm - StnryAssetEnrgyUse - StnryAssetEnvrSrc - StnryAssetWaterActvty - StnryAssetWaterFtprnt - StoreActionPlanTemplate - StoreAssortment - StoreIntegratedService - StoreProduct - StreamingChannel - Survey - SurveyEmailBranding - SurveyInvitation - SurveyQuestion - SurveyQuestionChoice - SurveyQuestionResponse - SurveyResponse - SurveySubject - SurveyVersion - SvcCatalogCategory - SvcCatalogCategoryItem - SvcCatalogCategoryItemDef - SvcCatalogReqRelatedItem - Swarm - SwarmMember - TagCategory - TagCategoryAssignment - Task - TaxEngine - TaxEngineInteractionLog - TaxEngineProvider - TaxPolicy - TaxTreatment - TaxRate - Tenant - TenantParameterMap - TenantSecurityNotificationRule - Territory2 - ThreatDetectionFeedback - TimeSheet - TimeSheetEntry - TimeSlot - TimelineObjectDefinition - Topic - TopicAssignment - TrainingCourseParticipant - TransactionJournal - Translation - TravelMode - TrialEnvironmentSignup - TrnCourse - UnitOfMeasure - UnitOfMeasureConversion - UsageEntitlement - UsageEntitlementPeriod - UsageEntitlementUsage - UsageFactor - User - UserAccessPolicy - UserAppMenuItem - UserDefinedLabel - UserDefinedLabelAssignment - UserEsignVendorIdentifier - UserLicenseDefinition - UserRole - UserTerritory2AssocLog - UserUiPreference - VehicleAssetCrbnFtprnt - VehicleAssetEmssnSrc - VehicleAssetEnrgyUse - VehicleUserAssignment - VideoCall - VideoCallParticipant - VideoRecording - ViolationEnforcementAction - ViolationType - ViolationTypeAssessmentInd - Visit - VisitedParty - Visitor - VoiceCall - VolunteerProject - Voucher - VoucherDefinition - WarrantyTerm - WasteFootprint - WasteFootprintItem - WaveAutoInstallRequest - WebCart - WebStore - WebStoreBuyerGroup - WebStoreCatalog - WebStorePricebook - WebStoreSearchProdSettings - WorkCapacityLimit - WorkCapacityUsage - WorkCoaching - WorkContract - WorkforceCapacity - WorkforceCapacityPlan - WorkOrder - WorkOrderLineItem - WorkPlan - WorkPlanSelectionRule - WorkPlanTemplate - WorkPlanTemplateEntry - WorkRewardFund - WorkRewardFundType - WorkStep - WorkStepStatus - WorkStepTemplate - WorkType - WorkTypeCareSpecialty - WorkTypeCodeSetBundle - WorkTypeGroup - WorkTypeGroupMember - WorkerCompCoverageClass - WstDispoEmssnFctrSet - WstDispoEmssnFctrSetItm # API End-of-Life Policy Salesforce is committed to supporting each API version for a minimum of three years from the date of first release. To mature and improve the quality and performance of the API, versions that are more than three years old sometimes are no longer supported. Salesforce notifies customers who use an API version scheduled for deprecation at least one year before support for the version ends. | Salesforce API Versions | Version Support Status | Version Retirement Info | | --- | --- | --- | | Versions 31.0 through 68.0 | Supported. | [Salesforce Platform API Versions 31.0 through 40.0 Retirement](https://help.salesforce.com/s/articleView?id=005321531&type=1&language=en_US) | | Versions 21.0 through 30.0 | As of Summer ’25, these versions are retired and unavailable. | [Salesforce Platform API Versions 21.0 through 30.0 Retirement](https://help.salesforce.com/s/articleView?id=000389618&type=1&language=en_US) | | Versions 7.0 through 20.0 | As of Summer ’22, these versions are retired and unavailable. | [Salesforce Platform API Versions 7.0 through 20.0 Retirement](https://help.salesforce.com/s/articleView?id=000380623&type=1&language=en_US) | If you request any resource or use an operation from a retired API version, REST API returns the 410:GONE error code. To identify requests made from old or unsupported API versions, use the [API Total Usage](https://developer.salesforce.com/docs/atlas.en-us.264.0.object_reference.meta/object_reference/sforce_api_objects_eventlogfile_apitotalusage.htm) event type. # App The metadata for a single app.
Property Name Type Description Filter Group and Version Available Version
appId String The unique ID of the app. Small, 43.0 43.0
description String A description of the app. Small, 43.0 43.0
developerName String The API name of the app. Small, 43.0 43.0
formFactors String[] The form factor of the app. One or more of these values:
  • Large—App supports the desktop display size.
  • Medium—App supports the tablet display size.
  • Small—App supports the phone display size.
Medium, 43.0 43.0
headerColor String The primary color for the app as selected by an admin. For example, #0070D2. Small, 43.0 43.0
iconUrl String The URL for the app’s icon. Small, 43.0 43.0
isNavAutoTempTabsDisabled Boolean If true, the navigation automatically creates temporary tabs settings. Small, 43.0 43.0
isNavPersonalizationDisabled Boolean If true, navigation personalization is disabled. Small, 43.0 43.0
isNavTabPersistenceDisabled Boolean If true, workspace tabs are cleared for each new console session. Small, 54.0 54.0
isOmniPinnedViewEnabled Boolean If true, the Omni-Channel sidebar is enabled. Small, 60.0 60.0
label String The label of the app. Small, 43.0 43.0
logoUrl String The logo URL of the app as selected by the admin. Medium, 43.0 43.0
mobileStartUrl String The mobile launch URL for the app. This field is used with client apps and Experience Builder sites. For sites only, this location is a fully qualified domain name. For other apps, it’s a relative URL. Medium, 43.0 43.0
navItems Navigation Item[] The metadata for the navigation tabs of the app.
Note

Note

Only navItems with supported formFactors values are returned.

Big, 43.0 43.0
selected Boolean If true, this app is the default app for the user. Big, 43.0 43.0
startUrl String The launch URL of the app. Medium, 43.0 43.0
type String The type of the app. One of these values:
  • Classic
  • Community
  • Connected
  • ExternalClient
  • Lightning
  • Multiframework
Small, 47.0 47.0
uiType String The UI type for the app. One of these values:
  • Salesforce Classic
  • Lightning Experience

This property was deprecated in API version 47.0. In API version 47.0 and later, use type instead.

Small, 43.0–46.0 43.0–46.0
userNavItems Navigation Item[] The user's navigation tabs for the app. Big, 43.0 43.0
#### See Also - [Apps](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_apps.htm "A list of apps that the current user has access to.") - [Get an App](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_apps_id.htm "Get the metadata for an app.") - [Get Last Selected App](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_apps_selected.htm "Retrieves the app the current user last selected or the app the user sees by default.") - [Manage Apps](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_features_apps.htm "An app is a collection of items that work together to serve a particular function. Salesforce apps come in two flavors: Classic apps and Lightning apps. Classic apps are created and managed in Salesforce Classic. Lightning apps are created and managed in Lightning Experience. Admins customize both types of apps to match the way users work.") # Apps Use these resources to get data and metadata for apps displayed in the Salesforce UI. - **[Get Apps](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_apps.htm)** Get metadata for all the apps a user has access to. Metadata for the selected app includes tabs on the app’s navigation bar. Metadata for other apps doesn’t include tabs on the navigation bar. - **[Get an App](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_apps_id.htm)** Get the metadata for an app. - **[Update Last Selected App](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_apps_id_update.htm)** Returns metadata for an app, and saves an app as the last selected for a user. - **[Get Last Selected App](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_apps_selected.htm)** Retrieves the app the current user last selected or the app the user sees by default. - **[Get Personalized Navigation Items](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_apps_user_nav_items.htm)** Get a user’s personalized navigation items (tabs). - **[Get All Navigation Items](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_all_nav_items.htm)** Gets all navigation items (tabs) that the user has access to. - **[Update Personalized Navigation Items](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_apps_update_nav_items.htm)** Updates the order of a user’s personalized navigation items (tabs) and adds a navigation item to the list in the order specified. # Apps A list of apps that the current user has access to. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | apps | [App](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_app.htm#ui_api_responses_app "The metadata for a single app.")\[\] | Metadata for an app. | Small, 43.0 | 43.0 | #### See Also - [Get Apps](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_apps.htm "Get metadata for all the apps a user has access to. Metadata for the selected app includes tabs on the app’s navigation bar. Metadata for other apps doesn’t include tabs on the navigation bar.") - [App](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_app.htm "The metadata for a single app.") - [Manage Apps](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_features_apps.htm "An app is a collection of items that work together to serve a particular function. Salesforce apps come in two flavors: Classic apps and Lightning apps. Classic apps are created and managed in Salesforce Classic. Lightning apps are created and managed in Lightning Experience. Admins customize both types of apps to match the way users work.") # Authentication, Versioning, Limits, ETag, and More Learn the high-level facts about how to use User Interface API. How do you authenticate? How is the API versioned? What are the rate limits? All the information you need, available at a glance. Authentication Like other Salesforce REST APIs, User Interface API uses OAuth 2.0. To specify OAuth settings, create an [external client app](https://help.salesforce.com/s/articleView?id=xcloud.create_a_local_external_client_app.htm&type=5&language=en_US "HTML (New Window)") in Salesforce. Case Sensitivity When writing a User Interface API client, assume case sensitivity. Some parts of the API aren’t case-sensitive, but some are, so it’s best to assume case sensitivity. Dates Dates are represented in [ISO 8601](https://www.w3.org/TR/NOTE-datetime "HTML (New Window)") format. Experience Cloud Site User Access Users with a Customer Community or Partner Community [User License](https://help.salesforce.com/articleView?id=users_license_types_communities.htm&type=0&language=en_US "HTML (New Window)") can access User Interface API. Lightning components on Experience Cloud site pages request UI API resources in the context of a site user. Even if an Experience Cloud site user doesn't have the API Enabled permission, these requests can count towards Salesforce API limits. For example, if you add the component to an Experience Cloud site page, requests from that component to UI API resources are made in the context of a site user. These requests can count towards API limits, even if the user doesn't have the API Enabled permission. HTTP Caching with ETag [Record](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record.htm "The field data, API name, child relationship data, and record type information for a record.") responses include a weakEtag property that you can use to compare whether a record is a newer, older, or the same as a record in a previous response. In addition, to take advantage of browser caching, User Interface API responses include an [ETag](https://tools.ietf.org/html/rfc7232#section-2.3 "HTML (New Window)") field. To reduce network traffic and increase your app’s response time, make conditional HTTP requests. If the browser cache holds the latest version of a representation, the web server returns only HTTP headers. The ETag (or Entity Tag) contains a hash that identifies a representation: ETag: "b9a5cd4fbfcf1b65b03d95a4d9ffa8f4--gzip". When a representation changes, the web server generates a new ETag. GET /ui-api/object-info/account HTTP/1.1 200 OK Date: Tue, 07 Nov 2017 04:27:43 GMT Strict-Transport-Security: max-age=31536000; includeSubDomains X-Content-Type-Options: nosniff X-XSS-Protection: 1; mode=block Content-Security-Policy: upgrade-insecure-requests X-Robots-Tag: none Cache-Control: no-cache,must-revalidate,max-age=0,no-store,private Set-Cookie: BrowserId=GHrCS0saRl64DgVv-NrLjA;Path=/;Domain=.salesforce.com;Expires=Sat, 06-Jan-2018 04:27:45 GMT;Max-Age=5184000 Expires: Thu, 01 Jan 1970 00:00:00 GMT **ETag: "b9a5cd4fbfcf1b65b03d95a4d9ffa8f4--gzip"** Content-Type: application/json;charset=UTF-8 Vary: Accept-Encoding Content-Encoding: gzip Transfer-Encoding: chunked { "apiName" : "Account", "childRelationships" : \[ { "childObjectApiName" : "Account", "fieldName" : "ParentId", "junctionIdListNames" : \[ \], "junctionReferenceTo" : \[ \], "relationshipName" : "ChildAccounts" ... response shortened ... \]} ... } The client saves the ETag and sends it in a header in subsequent requests for the resource: If-None-Match: “b9a5cd4fbfcf1b65b03d95a4d9ffa8f4”. The web server compares this ETag value with the ETag value of the current version of the representation. If the values are the same, the browser cache holds the latest version and the web server returns an HTTP status of 304 Not Modified. If-Modified-Since PATCH requests support the [If-Modified-Since](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Modified-Since "HTML (New Window)") HTTP header. Integers We support integers less than 1018. Integers greater than or equal to 231 must be in quotes. JSON Support The JavaScript Object Notation (JSON) format is supported with UTF-8. Limits The User Interface API uses the [Salesforce API limits](https://developer.salesforce.com/docs/atlas.en-us.264.0.salesforce_app_limits_cheatsheet.meta/salesforce_app_limits_cheatsheet/salesforce_app_limits_platform_api.htm "HTML (New Window)") and the [Connect REST API limits](https://developer.salesforce.com/docs/atlas.en-us.264.0.chatterapi.meta/chatterapi/intro_rate_limits.htm "HTML (New Window)"). When you exceed the rate limit, all User Interface API resources return a 503 Service Unavailable error code. Versioning User Interface API is versioned. Specify the API version number in each request. GET https://MyDomainName.my.salesforce.com/services/data/v68.0/ui-api #### See Also - [_Salesforce Help_: Set Up OAuth Flows](https://help.salesforce.com/s/articleView?id=xcloud.external_client_apps_oauth_flow_config.htm&type=5&language=en_US "Salesforce Help: Set Up OAuth Flows - HTML (New Window)") # Batch Operation Input Represents the operation type and record data to create, update, and delete in a batch. JSON example "operations": \[ { "type": "CREATE", "records": \[ { "apiName": "Account", "fields": { "Name": "Global Media" } }, { "apiName": "Contact", "fields": { "LastName": "Smith" } } \] }, { "type": "UPDATE", "records": \[ { "fields": { "Id": "001xx000003Gaf9AAC", "NumberOfEmployees": 1000 } } \] }, { "type": "DELETE", "records": \[ { "fields": { "Id": "001xx000003GanDAAS" } } \] } \] Properties
Name Type Description Required or Optional Available Version
type String The type of record operation. Valid values include: Required 59.0
records Record Input [] A description of a record or multiple records to create, update, and delete. Required 59.0
# Batch Record Input A description of multiple operations for a request to create, update, or delete a batch of records. Example POST /ui-api/records/batch { "allOrNone": false, "operations": \[ { "type": "CREATE", "records": \[ { "apiName": "Account", "fields": { "Name": "ACCOUNT 1" } }, { "apiName": "Contact", "fields": { "LastName": "Smith" } } \] }, { "type": "Update", "records": \[ { "fields": { "Id": "001xx000003Gaf9AAC", "NumberOfEmployees": 1000 } } \] }, { "type": "Delete", "records": \[ { "fields": { "Id": "001xx000003GanDAAS" } } \] } \] } Properties | Name | Type | Description | Required or Optional | Available Version | | --- | --- | --- | --- | --- | | allOrNone | Boolean | Specifies whether to stop processing the request and rollback any changes when the request encounters an error. The default is true. | Optional | 59.0 | | operations | [Batch Operation Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_batch_operation_input.htm "Represents the operation type and record data to create, update, and delete in a batch.") \[\] | A description of records and operation types. | Required | 59.0 | # Batch Result Item The results of one subrequest in a batch request.
Property Type Description Filter Group and Version Available Version
result One of these types: A response body for a record or related list. Small, 41.0 41.0
statusCode Integer An HTTP status code indicating the status of this individual request in the batch. Small, 41.0 41.0
#### See Also - [Batch Results](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_batch_results.htm "The results from a request to a batch resource. Results include information for each subrequest in the batch.") # Batch Results The results from a request to a batch resource. Results include information for each subrequest in the batch. | Property | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | hasErrors | Boolean | true if at least one of the results in the result set is an HTTP status code in the 400 or 500 range; false otherwise | Small, 41.0 | 41.0 | | results | [Batch Result Item](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_batch_result.htm#ui_api_responses_batch_result "The results of one subrequest in a batch request.")\[\] | Collection of batch result items | Small, 41.0 | 41.0 | #### See Also - [Get a Batch of Records](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_records_batch.htm "Get data for a batch of records.") # Build UI for Picklists User Interface API exposes properties and resources that make it easy for a client to build picklists and dependent picklists. Picklists are complicated UI elements, and dependent picklists are especially tricky. The values in a dependent picklist field are filtered based on the selection in another field, called a controlling field. A controlling field can be a picklist field or a checkbox field. For example, imagine a Continents picklist that controls a Countries picklist that controls a Cities picklist and a Languages picklist field. Dependent picklists exist in a field dependency tree that shows a hierarchy of controlling and dependent fields. Each node in the tree can have any number of child nodes. To build UI, you need to know the complete hierarchy.![Field dependency tree diagram](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/api_ui/images/field_dependency_tree.png) An object can have any number of field dependency trees. User Interface API exposes the collection of field dependency trees in a single property on each object called dependentFields. Each dependent field has a controllingFields property that lists the fields that control it. User Interface API also provides a batch resource to get all picklist values for a record type: [/ui-api/object-info/{objectApiName}/picklist-values/{recordTypeId}](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_picklist_values_collection.htm#ui_api_resources_picklist_values_collection "Use this resource to get the values for all the picklist fields of a specific record type. This resource is especially useful for getting dependent picklist values. For example, if an object has a tree of dependent picklists (Continents__c, Countries__c, Cities__c), use this resource to get all the values for each picklist in one request."). ## Check for Picklists To build UI to create, display, edit, and delete records, make a request to one of the User Interface API resources. The response from each of these resources includes an [Object Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_object_info.htm#ui_api_responses_object_info "The metadata for an object.") response body, which contains the object metadata, including information about picklists. - [Get Record Data and Object Metadata](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_record_ui.htm#ui_api_resources_record_ui "Get layout information, metadata, and data to build UI for a single record or for a collection of records.") - [Get Object Metadata](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_object_info.htm#ui_api_resources_object_info "Get metadata about a specific object. The response includes metadata describing fields, child relationships, record type, and theme.") - [Get Default Values to Create a Record](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_record_defaults_create.htm#ui_api_resources_record_defaults_create "Get the default values for fields for a new record of a specified object and optional record type. After getting the default values, make a request to POST /ui-api/records to create the record.") - [Get Default Values to Clone a Record](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_record_defaults_clone.htm#ui_api_resources_record_defaults_clone "Get the default layout information, object information, and data for cloning a record. After getting the default values, make a request to POST /ui-api/records to create the record.") 1. Parse the response for each field’s dataType. If the dataType is Picklist or MultiPicklist, the field is a picklist. 2. If you find a picklist, grab the recordTypeId, you’ll use it in a request to get the picklist values. 3. Parse the response for dependent picklists. If the field is a picklist and if the controllingFields property is non-null, the field is a dependent picklist. 4. If the field is a dependent picklist, look at the dependentFields property on the object to see the tree structure of the object’s dependent and controlling fields. A dependent picklist can depend on (be controlled by) standard or and custom picklists and checkboxes. { ... "dependentFields" : { "Continents\_\_c" : { "Countries\_\_c" : { "Cities\_\_c" : { }, "Languages\_\_c" : { }, } } }, ... "fields" : { "AccountSource" : { ... "controllingFields" : \[ \], ... "dataType" : "Picklist", ... }, "Cities\_\_c" : { ... "controllingFields" : \[ "Countries\_\_c", "Continents\_\_c" \], ... "dataType" : "Picklist", ... }, "Continents\_\_c" : { ... "controllingFields" : \[ \], ... "dataType" : "Picklist", ... }, "Countries\_\_c" : { ... "controllingFields" : \[ "Continents\_\_c" \], ... "dataType" : "Picklist", ... }, "Languages\_\_c" : { ... "controllingFields" : \[ "Countries\_\_c", "Continents\_\_c" \], ... "dataType" : "Picklist", ... }, ... "recordTypeInfos" : { "012000000000000AAA" : { ... "recordTypeId" : "012000000000000AAA" } }, ... } Here’s a bit more info about the dependent and controlling fields properties. - {Object}.dependentFields—A map of the dependent fields tree structure. Each nested object is another Map. When the object is empty, it indicates a leaf of the tree, which is a field that doesn’t control other fields. An object can have multiple independent trees, which means this property can have multiple root objects. Imagine an object with the picklists Continents\_\_c, Countries\_\_c, and Cities\_\_c. Continents\_\_c is the root. Cities\_\_c is a leaf. Continents\_\_c and Countries\_\_c are controlling fields. Countries\_\_c and Cities\_\_c are dependent picklists. - {Field}.controllingFields—If this field is a dependent picklist, this property is a collection of fields that control the values in the picklist. When there’s a hierarchy of controlling fields, the collection starts with the immediate parent and moves up the tree. ## Get Picklist Values You know that the object has picklists, you know whether it has dependent picklists, and you know how the dependent picklists are controlled. It’s time to get the picklist values. 1. Do one of the following: - To retrieve the values for all picklists of a record type, make a request to [GET /ui-api/object-info/${objectApiName}/picklist-values/${recordTypeId}](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_picklist_values_collection.htm#ui_api_resources_picklist_values_collection "Use this resource to get the values for all the picklist fields of a specific record type. This resource is especially useful for getting dependent picklist values. For example, if an object has a tree of dependent picklists (Continents__c, Countries__c, Cities__c), use this resource to get all the values for each picklist in one request."). It’s handy to retrieve the values in a batch instead of requesting them for each field. - To get the values for a single picklist, make a request to [GET /ui-api/object-info/{objectApiName}/picklist-values/{recordTypeId}/{fieldApiName}](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_picklist_values.htm#ui_api_resources_picklist_values "If a field’s dataType property is equal to Picklist or MultiPicklist, use this resource to get its values."). 2. Get the values for independent picklists. 1. To determine whether a picklist is independent, look at the {Field}.controllingFields property. If the property is empty, the picklist is independent. ![Tip](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/images/icon_note_tip.png) #### Tip If the controllerValues property is empty, like it is for the AccountSource field in the following example, the field isn’t necessarily independent. If the controlling field is protected by field-level security (FLS), it doesn’t appear in the controllerValues property. 2. To populate a picklist in the UI, use the field’s label and value properties. 3. Get the values for dependent picklists. 1. If a picklist is dependent, its controllerValues property lists the values and indexes of its controlling field (except when the immediate controlling field is protected by FLS). The indexes are used in the validFor property to indicate which controlling field values map to which picklist value. For example, in controllerValues, Italy has index 5. In the values.validFor property, you see that Rome is valid for index 5. 2. To populate a picklist in the UI, use the field’s label and value properties. { "picklistFieldValues" : { "AccountSource" : { "controllerValues" : { }, "defaultValue" : null, "url" : "/services/data/v68.0/ui-api/object-info/account/picklist-values/012000000000000AAA/AccountSource", "values" : \[ { "attributes" : null, "label" : "Advertisement", "validFor" : \[ \], "value" : "Advertisement" }, { "attributes" : null, "label" : "Employee Referral", "validFor" : \[ \], "value" : "Employee Referral" }, ... } "Cities\_\_c" : { "controllerValues" : { "Australia" : 0, "Brazil" : 1, "China" : 2, "Colombia" : 3, "France" : 4, "Italy" : 5, "Mexico" : 6, "New Zealand" : 7, "Nigeria" : 8, "Senegal" : 9, "South Korea" : 10, "US" : 11 }, "defaultValue" : null, "url" : "/services/data/v68.0/ui-api/object-info/account/picklist-values/012000000000000AAA/Cities\_\_c", "values" : \[ { "attributes" : null, "label" : "Cali", "validFor" : \[ 3 \], "value" : "Cali" }, { "attributes" : null, "label" : "Chicago", "validFor" : \[ 11 \], "value" : "Chicago" }, { "attributes" : null, "label" : "Dakar", "validFor" : \[ 9 \], "value" : "Dakar" }, { "attributes" : null, "label" : "Lagos", "validFor" : \[ 8 \], "value" : "Lagos" }, { "attributes" : null, "label" : "Los Angeles", "validFor" : \[ 11 \], "value" : "Los Angeles" }, { "attributes" : null, "label" : "Oaxaca", "validFor" : \[ 6 \], "value" : "Oaxaca" }, { "attributes" : null, "label" : "Wellington", "validFor" : \[ 7 \], "value" : "Wellington" } \] }, ## Record Viewer Sample App To view sample code that parses a response and displays dependent picklists, check out the [Record Viewer](https://github.com/forcedotcom/RecordViewer "HTML (New Window)") sample app on GitHub. To contribute to the app, fork it and submit a pull request. We love to see what people do with User Interface API. #### See Also - [User Interface API Sample Apps](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_get_started_sample_apps.htm "We’ve built two sample apps that use User Interface API to create, read, update, and delete records. The apps are open-source and available on GitHub.") - [Get Values for a Picklist Field](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_picklist_values.htm "If a field’s dataType property is equal to Picklist or MultiPicklist, use this resource to get its values.") - [Get Values for All Picklist Fields of a Record Type](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_picklist_values_collection.htm "Use this resource to get the values for all the picklist fields of a specific record type. This resource is especially useful for getting dependent picklist values. For example, if an object has a tree of dependent picklists (Continents__c, Countries__c, Cities__c), use this resource to get all the values for each picklist in one request.") # Canvas Layout Component A canvas component on a record page layout.
Property Name Type Description Filter Group and Version Available Version
apiName String The API name of the canvas app. Small, 41.0 41.0
componentType String The value is Canvas. Small, 41.0 41.0
displayLocation String The location in the application where the canvas app is being called from. One of these values:
  • Chatter—The canvas app was called from the Chatter tab.
  • ChatterFeed—The canvas app was called from a Chatter canvas feed item.
  • MobileNav—The canvas app was called from the navigation menu in the Salesforce mobile app.
  • OpenCTI—The canvas app was called from an Open CTI component.
  • PageLayout—The canvas app was called from an element within a page layout. If the displayLocation is PageLayout, one of the subLocation values can be returned.
  • Publisher—The canvas app was called from a canvas custom quick action.
  • ServiceDesk—The canvas app was called from a Salesforce Console component.
  • Visualforce—The canvas app was called from a Visualforce page.
  • None—The canvas app was called from the Canvas App Previewer.

The sublocation in the application where the canvas app was called from when the canvas app is loaded in a mobile device. The possible values are:

  • S1MobileCardFullview—The canvas app was called from a mobile card.
  • S1MobileCardPreview—The canvas app was called from a mobile card preview.
  • S1RecordHomePreview—The canvas app was called from a record detail page preview.
  • S1RecordHomeFullview—The canvas app was called from a page layout.
Small, 41.0 41.0
height String The height of the component. Small, 41.0 41.0
referenceId String The unique ID of the canvas app definition. Small, 41.0 41.0
showScroll Boolean Indicates whether to show the scroll bar on the canvas component (true) or not (false). Small, 41.0 41.0
width String The width of the component. Small, 41.0 41.0
#### See Also - [Record Layout Item](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_layout_item.htm "An item in a record layout.") # Case Status Picklist Value Attributes Additional picklist value attributes for case statuses.
Property Name Type Description Filter Group and Version Available Version
closed Boolean If this status indicates the case has been closed, the value is true, otherwise false. Small, 48.0 48.0
picklistAtrributes​ValueType String The value is CaseStatus. Indicates that these value attributes are associated with the status of a case.

For more information, see the CaseStatus object documentation.

The property picklistAtrributes​ValueType contains a typographical error.

Small, 48.0 48.0
#### See Also - [Picklist Value](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_picklist_value.htm "A single picklist value.") # Check for Duplicate Records Before updating or creating a record, you can check whether a duplicate record exists. Use the response to learn whether to block or allow the action, and whether to warn the user. ![Tip](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/images/icon_note_tip.png) #### Tip To learn more about when to check for duplicate records, see [Get Duplicate Management Configuration for a Specified Object](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_duplicates_get.htm "Learn whether duplicate management is configured for the specified object. If duplicate management is configured, learn about the object's duplicate rules and matching rules. Use the information in the response to know when to check for duplicate records."). Resource /ui-api/predupe Available Version 50.0 HTTP Method POST Example Use the following request to check whether a duplicate record for the movie "Aliens" exists. ui-api/predupe{ "apiName" : "Movie\_\_c", "fields" : {"Name": "Aliens", "Year\_\_c": "1986" } Request Body
Name Type Description Required or Optional Available Version
allowSaveOnDuplicate Boolean Specifies whether to save a duplicate record (true), or not (false). The default value is false.

Don’t specify this property when checking for duplicate records.

Optional 43.0
apiName String To create a record, specify the API name of an Object from which to create the record. To update a record, use null or don’t pass this property. To check for duplicate records, specify the API name of the object for which you’re performing the duplicate check. Required to create a record.

Required to check for duplicate records.

41.0
fields Map<String, Object> Map of field names to field values.

Format data types according to these rules:

  • Address—JSON String. Addresses are compound fields and must be broken up into their constituent fields. See the previous example.
  • Boolean—JSON Boolean, true or false
  • Currency—JSON Number (for example, 67.54)
  • Date—JSON string (for example, 2020-04-20)
  • DateTime—JSON string in ISO 8601 format (for example, 2012-02-18T06:40:41.000Z)
  • Double—JSON Number
  • Email—JSON String (for example, joe@smith.com)
  • EncryptedString—JSON String
  • Int—JSON Number
  • Location—JSON String. Location fields are compound fields and must be broken up into their constituent fields.
  • MultiPicklist—JSON String (for example, Dog;Cat;Fish).
  • Percent—JSON Number
  • Phone—JSON String
  • Picklist—JSON String
  • Reference—JSON String
  • String—JSON String
  • TextArea—JSON String
  • Time—JSON String in format HH:MM:SS
  • Url—JSON String

To specify the main record type, either don’t specify the RecordTypeId field, or set it to null.

Required 41.0
Response Body [Duplicates](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_duplicates.htm "The results of a check for duplicate records.") #### See Also - [Get Duplicate Management Configuration for a Specified Object](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_duplicates_get.htm "Learn whether duplicate management is configured for the specified object. If duplicate management is configured, learn about the object's duplicate rules and matching rules. Use the information in the response to know when to check for duplicate records.") # Child Relationship The child relationship on a parent object. Relationships are connections between records. Use relationships to display data about related object records on a record's detail page.
Property Name Type Description Filter Group and Version Available Version
childObjectApiName String The API name of the child object. Medium, 41.0 41.0
fieldName String The field on the child object that contains the reference to the parent object.

Instead of defining relationships through primary keys and foreign keys, the Salesforce database uses reference fields. A reference field stores the ID of the related parent record.

Medium, 41.0 41.0
junctionIdListNames String[] The names of the JunctionIdList fields associated with an object. Each ID is a polymorphic key, which is an ID that can refer to more than one type of object. Medium, 41.0 41.0
junctionReferenceTo String[] A collection of object names that the polymorphic keys in the junctionIdListNames property can reference.

You can query these object names.

Medium, 41.0 41.0
relationshipName String The name of the relationship.

A name for the child relationship that is unique to the parent. The name is the plural form of the child object name. For example, Account has child relationships to Assets, Cases, and Contacts, among other objects. Account has a relationshipName for each object: Assets, Cases, and Contacts.

Medium, 41.0 41.0
#### See Also - [Object Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_object_info.htm "The metadata for an object.") # Content Document Composite The file and its relationship to a record. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | contentDocument | [Record](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record.htm "The field data, API name, child relationship data, and record type information for a record.") | The record associated with the content document. | Small, 56.0 | 56.0 | | contentDocumentLinks | [Record](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record.htm "The field data, API name, child relationship data, and record type information for a record.")\[\] | The relationship between a record and a content document. | Small, 56.0 | 56.0 | | contentVersion | [Record](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record.htm "The field data, API name, child relationship data, and record type information for a record.") | The record associated with the content document. Creating a new content version also creates a content document. | Small, 56.0 | 56.0 | #### See Also - [Upload a File](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_records_contentversion.htm "Upload a file such as a document or image.") - [Upload a New File Version](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_records_contentdocument.htm "Upload a new document or image version.") # Content Input Upload a file or a new file version. To upload a file or a new file version, provide the binary file in a multipart/form-data body part where name="fileData". See [Upload Binary Files](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_features_records_binary_upload.htm "If a record has a Base64 field, you can upload binary data to the field when you create or update a record.") and [Upload Files](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_features_records_content_document.htm "Upload documents and images or update the file with a new version."). Example for Uploading a File POST /ui-api/records/content-documents/content-versions { "description": "A description of the product", "title": "product\_image" } Example for Uploading a New Version of a File POST /ui-api/records/content-documents/0692L00000BDVevQAH/content-versions { "description": "Version 2 of the product image", "title": "product\_image" } Properties | Name | Type | Description | Required or Optional | Available Version | | --- | --- | --- | --- | --- | | description | String | A description of the document or image to be uploaded. | Optional | 56.0 | | title | String | The title of the document or image to be uploaded. | Optional | 56.0 | #### See Also - [Upload a New File Version](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_records_contentdocument.htm "Upload a new document or image version.") - [Upload a File](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_records_contentversion.htm "Upload a file such as a document or image.") # Create a Batch of Records Create multiple records. You can create, update, and delete up to 200 records in a single request. Resource /ui-api/records/batch Available Version 59.0 HTTP Method POST Example This example creates an account and a contact, and updates a record. POST /ui-api/records/batch { "allOrNone": false, "operations": \[ { "type": "CREATE", "records": \[ { "apiName": "Account", "fields": { "Name": "Global Media" } }, { "apiName": "Contact", "fields": { "LastName": "Smith" } } \] }, { "type": "Update", "records": \[ { "fields": { "Id": "001xx000003Gaf9AAC", "NumberOfEmployees": 1000 } } \] } \] } Request Body | Name | Type | Description | Required or Optional | Available Version | | --- | --- | --- | --- | --- | | recordInput | [Batch Record Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_batch_input.htm "A description of multiple operations for a request to create, update, or delete a batch of records.") | The batch of record input. | Required | 59.0 | Request Parameters
Name Type Description Required or Optional Available Version
useDefaultRule Boolean

For a Case or Lead, specifies whether to use the default (active) assignment rule. If you specify useDefaultRule, don’t specify an assignmentRuleId.

For an Account, specifies whether to apply the default territory assignment rules.

The default value is false.

See AssignmentRuleHeader in SOAP API Developer Guide.

Optional 64.0
Response Body [Batch Results](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_batch_results.htm#ui_api_responses_batch_results "The results from a request to a batch resource. Results include information for each subrequest in the batch.") Usage When creating a batch of records, you must include the required apiName field in [Batch Operation Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_batch_operation_input.htm "Represents the operation type and record data to create, update, and delete in a batch."). Don’t include the Id field. Otherwise, a 400 HTTP status code with an INVALID\_BATCH\_REQUEST error is returned. Receiving a 400 HTTP status code with an INVALID\_INPUT error can be caused by one of these reasons. - The operations field is missing or empty. - The operation type is missing. - The operations field doesn’t contain a records field or the records field is empty. #### See Also - [Update a Batch of Records](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_records_batch_update.htm "Update multiple records. You can create, update, and delete up to 200 records in a single request.") - [Delete a Batch of Records](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_records_batch_delete.htm "Delete multiple records. You can create, update, and delete up to 200 records in a single request.") # Create a Favorite Create a favorite. Resource /ui-api/favorites Available Version 41.0 HTTP Method POST Example POST /ui-api/favorites/ { name: "Most Important Accounts", sortOrder: 1 target: "00BR0000000tTTwMAM", targetType: "ListView" } Request Parameters
Name Type Description Required or Optional Available Version
name String The name of the favorite. Optional 41.0
sortOrder Integer The sort order of the favorite, from 1 to N. Optional 41.0
target String The record, API name, or content being favorited. Required 41.0
targetType String The type of favorite. One of these values:
  • ListView—A favorited list view.
  • ObjectHome—A favorited object home.
  • Record—A favorited record.
  • Tab—A favorited tab.
Required 41.0
Request Body [Favorite Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_favorite_input.htm "A favorite to create or update.") Response Body [Favorite](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_favorite.htm#ui_api_responses_favorite "A single favorite.") # Create a List View for an Object Create a list view associated with an object. Resource /ui-api/list-info/${objectApiName} Available version 61.0 HTTP methods POST Example This example uses a request body to create the metadata for an account list view. POST /services/data/v68.0/ui-api/list-info/Account { "listViewApiName": "MyAccountListView", "filteredByInfo": \[ { "fieldApiName": "Name", "operandLabels": \[ "This", "That"\], "operator": "Equals" }, { "fieldApiName": "Phone", "operandLabels": \[ "919"\], "operator": "StartsWith" }, { "fieldApiName": "AnnualRevenue", "operandLabels": \[ "1000000"\], "operator": "GreaterThan" } \], "filterLogicString" : "(1 OR 2) AND 3", "label": "Accounts opened this year", "scope": { "apiName": "entity", "entityId": "00Gxx000000sjI8", "relatedEntityId": "701xx000003HZ7X" }, "visibility": "Public" } Request parameters for POST | Parameter Name | Type | Description | Required or Optional | Available Version | | --- | --- | --- | --- | --- | | listInfoInput | [List Info Post Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_list_info_post_input.htm "Info to create a list.") | Info to create a list. | Required | 61.0 | Response body for POST [List Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_metadata.htm "Metadata that describes a list.") # Create or Clone a Record Create or clone a record. ## Usage To create or clone a record, pass a [Record Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_record_input.htm "A description of a record to use in a request to create or update a record or in a request to check for duplicate records.") request body to the POST /ui-api/records resource. To create the request body, you must know the fields, required fields, and default values for that object. You may also want layout information. If you don’t want layout information, use the lightweight resources. To find the required fields, fields, and default values, make a request to one of these resources. - [Get Default Values to Create a Record](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_record_defaults_create.htm "Get the default values for fields for a new record of a specified object and optional record type. After getting the default values, make a request to POST /ui-api/records to create the record.") - [Get Default Values to Create a Record—Lightweight](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_record_defaults_template_create.htm "Get the default values for fields for a new record of a specified object and optional record type. You must specify the fields you want returned. This resource doesn’t use or return layout information. After getting the default values, make a request to POST /ui-api/records to create the record.") - [Get Default Values to Clone a Record](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_record_defaults_clone.htm "Get the default layout information, object information, and data for cloning a record. After getting the default values, make a request to POST /ui-api/records to create the record.") - [Get Default Values to Clone a Record—Lightweight](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_record_defaults_template_clone.htm "Get the default values for fields for cloning a record. You must specify the fields you want returned. This resource doesn’t use or return layout information. After getting the default values, make a request to POST /ui-api/records to create the record.") The response from these resources includes [Object Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_object_info.htm "The metadata for an object."), including all fields and a required property for each field. To find the values for lookup fields, picklist fields, and multi-select picklist fields, use these resources. - [Get Lookup Field Suggestions for a Specified Object](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_lookup_object_get.htm "When a user edits a lookup field, use this resource to search for and display suggestions for a specified object. You can search for most recently used matches, for matching names, or for any match in a searchable field. You can also specify lookup filter bindings for dependent lookups.") - [Get Lookup Field Suggestions](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_lookup_get.htm "When a user edits a lookup field, use this resource to search for and display suggestions. You can search for most recently used matches, for matching names, or for any match in a searchable field. You can also specify lookup filter bindings for dependent lookups.") - [Get Values for a Picklist Field](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_picklist_values.htm "If a field’s dataType property is equal to Picklist or MultiPicklist, use this resource to get its values.") - [Get Values for All Picklist Fields of a Record Type](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_picklist_values_collection.htm "Use this resource to get the values for all the picklist fields of a specific record type. This resource is especially useful for getting dependent picklist values. For example, if an object has a tree of dependent picklists (Continents__c, Countries__c, Cities__c), use this resource to get all the values for each picklist in one request.") As of API version 43.0, if you pass read-only fields in a request body, the response is an [Error with Output](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_error_with_output.htm#ui_api_responses_error_with_output "Contains extra information about errors. In rare cases, an error message isn't enough to describe the reason for a failure. For example, when a conflicting precondition exists, the error result can include the information about the cause of the conflict."). ![Note](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/images/icon_note.png) #### Note ProductMedia records can’t be created with this resource. Use the [ProductMedia object API](https://developer.salesforce.com/docs/atlas.en-us.264.0.object_reference.meta/object_reference/sforce_api_objects_productmedia.htm) instead. Resource /ui-api/records Available Version 41.0 HTTP Method POST Example POST /ui-api/records { "apiName": "Account", "fields": { "Name": "Universal Containers" } } To provide an address, provide the individual fields as separate inputs. The compound field is only available in the response. { "apiName": "Account", "fields" : { "Name": "Local Boxes", "BillingState": "WA", "BillingStreet" : "123 Main Street", "BillingCountry" : "USA" } } Request Parameters
Parameter Name Type Description Required or Optional Available Version
allowSaveOnDuplicate Boolean Specifies whether to save a duplicate record. The default value is false. Optional 43.0
handleOwnerChange Boolean Specifies whether to return a 204 No Content HTTP status code if the context user loses access to the record during creation. The default value is false. When false, if the context user loses access to the record during creation, creation completes successfully, however the resource returns an incorrect 404 Not found HTTP status code. Optional 60.0
triggerOtherEmail Boolean For a Case, specifies whether to send email to users outside the organization. In the Salesforce user interface, this email can be automatically triggered by creating, editing, or deleting a contact for a Case.

The default value is false.

See EmailHeader in SOAP API Developer Guide.

Optional 51.0
triggerUserEmail Boolean For a Case or a Lead, specifies whether to send email to users in the organization. In the Salesforce user interface, this email can be automatically triggered by various events: resetting a password, creating a user, changing the Case owner, or adding comments to a Case.

For Case owner changes, also set useDefaultRule=true, or no email is sent.

The default value is false.

See EmailHeader in SOAP API Developer Guide.

Optional 51.0
useDefaultRule Boolean

For a Case or Lead, specifies whether to use the default (active) assignment rule. If you specify useDefaultRule, don’t specify an assignmentRuleId.

When you create an Account, as long as the account matches any filter for a territory, the Account is assigned to that territory regardless of how useDefaultRule is set.

The default value is false.

See AssignmentRuleHeader in SOAP API Developer Guide.

Optional 51.0
Request Body
Name Type Description Required or Optional Available Version
allowSaveOnDuplicate Boolean Specifies whether to save a duplicate record (true), or not (false). The default value is false.

Don’t specify this property when checking for duplicate records.

Optional 43.0
apiName String To create a record, specify the API name of an Object from which to create the record. To update a record, use null or don’t pass this property. To check for duplicate records, specify the API name of the object for which you’re performing the duplicate check. Required to create a record.

Required to check for duplicate records.

41.0
fields Map<String, Object> Map of field names to field values.

Format data types according to these rules:

  • Address—JSON String. Addresses are compound fields and must be broken up into their constituent fields. See the previous example.
  • Boolean—JSON Boolean, true or false
  • Currency—JSON Number (for example, 67.54)
  • Date—JSON string (for example, 2020-04-20)
  • DateTime—JSON string in ISO 8601 format (for example, 2012-02-18T06:40:41.000Z)
  • Double—JSON Number
  • Email—JSON String (for example, joe@smith.com)
  • EncryptedString—JSON String
  • Int—JSON Number
  • Location—JSON String. Location fields are compound fields and must be broken up into their constituent fields.
  • MultiPicklist—JSON String (for example, Dog;Cat;Fish).
  • Percent—JSON Number
  • Phone—JSON String
  • Picklist—JSON String
  • Reference—JSON String
  • String—JSON String
  • TextArea—JSON String
  • Time—JSON String in format HH:MM:SS
  • Url—JSON String

To specify the main record type, either don’t specify the RecordTypeId field, or set it to null.

Required 41.0
Response Body [Record](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record.htm#ui_api_responses_record "The field data, API name, child relationship data, and record type information for a record.") #### See Also - [Upload Binary Files](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_features_records_binary_upload.htm "If a record has a Base64 field, you can upload binary data to the field when you create or update a record.") # CSRF Token Cross-Site Request Forgery (CSRF) token. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | csrfToken | String | CSRF token string. | Big, 67.0 | 67.0 | #### See Also - [Session CSRF Token](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_session_csrf.htm "Get the Cross-Site Request Forgery (CSRF) token for your session to protect requests from malicious third-party sites forgeries.") # Custom Link Layout Component A custom link component on a record page layout.
Property Name Type Description Filter Group and Version Available Version
apiName String If a field powers this component, this property contains the API name of the field. Small, 41.0 41.0
behavior String Indicates how a link behaves on open. One of these values:
  • NewWindow—Open a new window.
  • NoSidebar—No sidebar
  • OnClickJavaScript—When the link is clicked, run JavaScript.
  • Replace—Replace the current page.
  • Sidebar—Sidebar
Small, 41.0 41.0
componentType String The component type. The value is CustomLink. Small, 41.0 41.0
customLinkUrl String The custom link URL. Small, 41.0 41.0
label String The custom link label. Small, 41.0 41.0
#### See Also - [Record Layout Item](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_layout_item.htm "An item in a record layout.") # Delete a Batch of Records Delete multiple records. You can create, update, and delete up to 200 records in a single request. Resource /ui-api/records/batch Available Version 59.0 HTTP Method POST Example This example deletes multiple records. POST /ui-api/records/batch { "allOrNone": false, "operations": \[ { "type": "Delete", "records": \[ { "fields": { "Id": "001xx000003GanDAAS" } }, { "fields": { "Id": "001xx000003Gaf9AAC" } } \] } \] } Request Body | Name | Type | Description | Required or Optional | Available Version | | --- | --- | --- | --- | --- | | recordInput | [Batch Record Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_batch_input.htm "A description of multiple operations for a request to create, update, or delete a batch of records.") | The batch of record input. | Required | 59.0 | Response Body [Batch Results](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_batch_results.htm#ui_api_responses_batch_results "The results from a request to a batch resource. Results include information for each subrequest in the batch.") Usage When deleting a batch of records, you must include the required Id field. Don’t include the apiName field in [Batch Operation Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_batch_operation_input.htm "Represents the operation type and record data to create, update, and delete in a batch."). You can’t perform multiple operations on the same record in one request. A delete operation using an Id value that’s used in another update or delete operation can’t be processed. Otherwise, a 400 HTTP status code with an INVALID\_BATCH\_REQUEST error is returned. Receiving a 400 HTTP status code with an INVALID\_INPUT error can be caused by one of these reasons. - The operations field is missing or empty. - The operation type is missing. - The operations field doesn’t contain a records field or the records field is empty. #### See Also - [Create a Batch of Records](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_records_batch_post.htm "Create multiple records. You can create, update, and delete up to 200 records in a single request.") - [Update a Batch of Records](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_records_batch_update.htm "Update multiple records. You can create, update, and delete up to 200 records in a single request.") # Delete a Favorite Delete a favorite. Resource /ui-api/favorites/${favoriteId} favoriteId—The ID of a favorite. Available Version 41.0 HTTP Method DELETE Response Body Deleting a record returns a 200 HTTP status code. # Delete a Record Delete a record. /ui-api/records/{recordId} Available Version 41.0 HTTP Method DELETE Delete a record Deleting a record returns a 200 HTTP status code. DELETE /ui-api/records/001R0000003Gjrt # Delete List View Metadata Delete list view metadata. Resource /ui-api/list-info/${objectApiName}/${listViewApiName} - objectApiName—A [supported](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_get_started_supported_objects.htm#ui_api_get_started_supported_objects "User Interface API supports all custom objects and external objects and many standard objects.") object, such as Account. - listViewApiName—The API name of a list view, such as AllAccounts. Available Version 61.0 HTTP Method DELETE Example This example deletes the metadata for a list view. The object API name is Account and the list view API name is AllAccounts. DELETE /services/data/v68.0/ui-api/list-info/Account/AllAccounts Response Deleting list view metadata returns a 204 HTTP status code. # Display Layout Search lookups target display layout metadata. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | displayFields | String\[\] | Fields to display in lookup results. | Small, 57.0 | 57.0 | # Display Layout and Matching Info Search lookups target display layout and matching information. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | displayLayout | [Display Layout](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_display_layout.htm "Search lookups target display layout metadata.") | Display information for lookup results. | Small, 57.0 | 57.0 | | matchingInfo | [Matching Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_matching_info.htm "Search lookups target matching information.") | Information about matching fields. | Small, 57.0 | 57.0 | # Duplicate Record Error Information about duplicate record errors. Duplicate rules are used to control whether and when you can save duplicate records within Salesforce. Duplicate rules tell Salesforce what action to take when you attempt to create a duplicate record. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | matchResults | [Match Result](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_match_result.htm#ui_api_responses_match_result "A duplicate rule match. Duplicate rules are used to control whether and when you can save duplicate records within Salesforce. Duplicate rules tell Salesforce what action to take when you attempt to create a duplicate record. Each duplicate rule requires at least one matching rule to identify which existing records are possible duplicates.")\[\] | A collection of duplicate rule match results. Each duplicate rule requires at least one matching rule to identify which existing records are possible duplicates. | Small, 41.0 | 41.0 | #### See Also - [Record Exception Error](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_exception_error.htm "Information about a record exception error.") # Duplicate Result Info The result of the check for duplicate records. If duplicate records exist, returns the records' IDs and the duplicate rule that was used to match the records. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | allowSave | Boolean | Whether the duplicate record can be saved (true) or not (false). | Small, 50.0 | 50.0 | | matchResultInfo | [Match Result Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_match_result_info.htm "Information about the results of a match.") | Information about the match result. | Small, 50.0 | 50.0 | | rule | String | Name of the duplicate rule. | Small, 50.0 | 50.0 | # Duplicate Rule Describes a duplicate rule.
Property Name Type Description Filter Group and Version Available Version
actionOnInsert String Whether users can create a duplicate record. Possible values are:
  • Allow—duplicate records can be created
  • Block—duplicate records can't be created
Small, 50.0 50.0
actionOnUpdate String Whether users can create a duplicate record while editing an existing record. Possible values are:
  • Allow—users can create a duplicate record while editing an existing record
  • Block—users can't create a duplicate record while editing an existing record
Small, 50.0 50.0
active Boolean Indicates whether the duplicate rule is active (true) or not (false). Small, 50.0 50.0
duplicateRuleFilters Duplicate Rule Filter[] A list of filters that are used by the duplicate rule. Small, 50.0 50.0
matchRules Match Rule[] A list of the match rules that are used by the duplicate rule. Small, 50.0 50.0
name String The name of the duplicate rule. Small, 50.0 50.0
operationsOnInsert String[] Actions to take when a user creates a duplicate record. Possible values are:
  • Alert
  • Report
Small, 50.0 50.0
operationsOnUpdate String[] Actions to take when the edits to a record cause it to become a duplicate record. Possible values are:
  • Alert
  • Report
Small, 50.0 50.0
# Duplicate Rule Filter A duplicate rule filter. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | booleanFilter | String | The filter's boolean logic. | Small, 50.0 | 50.0 | | filterItems | [Duplicate Rule Filter Item](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_duplicate_rule_filter_item.htm "A filter, or condition, for a duplicate rule. For example, a condition can specify that this rule applies only to movies that were produced in the United States.")\[\] | A list of filter items. | Small, 50.0 | 50.0 | | ruleCritera | String | The rule criteria. | Small, 50.0 | 50.0 | # Duplicate Rule Filter Item A filter, or condition, for a duplicate rule. For example, a condition can specify that this rule applies only to movies that were produced in the United States. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | field | String | The name of the field on which the condition is evaluated. | Small, 50.0 | 50.0 | | operation | String | The condition operator. For example, equals or includes. | Small, 50.0 | 50.0 | | sortOrder | Integer | Conditions are applied in the specified order. The order of the condition, starting with 1. | Small, 50.0 | 50.0 | | value | String | The value of field that matches the condition. For example, to specify that a rule applies only to movies produced in the United States, set the value to United States. | Small, 50.0 | 50.0 | # Duplicates The results of a check for duplicate records. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | allowSave | Boolean | Indicates whether this duplicate record can be saved (true) or not (false). | Small, 50.0 | 50.0 | | duplicateError | Boolean | Indicates whether duplicate records exist (true) or not (false). | Small, 50.0 | 50.0 | | duplicateRules | String\[\] | A list of the duplicate rules that were used to determine whether duplicate records exist. | Small, 50.0 | 50.0 | | matches | [Match](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_match.htm "A group of records that match the duplicate rules.")\[\] | The IDs of the duplicate records. | Small, 50.0 | 50.0 | # Duplicates Configuration Contains information about duplicate management configuration for an object. Learn whether duplicate management is configured, which fields are used to determine whether duplicate records exist, and which duplicate rules are active. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | apiName | String | The API name of the object. | Small, 50.0 | 50.0 | | dedupeEnabled | Boolean | Indicates whether any duplicate rules are active for the object (true) or not (false). | Small, 50.0 | 50.0 | | dedupeFields | String\[\] | The fields used to determine whether a record is a duplicate. Lists all fields that are used in all matching rules that are currently active. | Small, 50.0 | 50.0 | | duplicateRules | [Duplicate Rule](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_duplicate_rule.htm "Describes a duplicate rule.")\[\] | The duplicate rules that are active for the object. | Small, 50.0 | 50.0 | | predupeEnabled | Boolean | Indicates whether matching rules are active for the object (true) or not (false). | Small, 50.0 | 50.0 | #### See Also - [Get Duplicate Management Configuration for a Specified Object](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_duplicates_get.htm "Learn whether duplicate management is configured for the specified object. If duplicate management is configured, learn about the object's duplicate rules and matching rules. Use the information in the response to know when to check for duplicate records.") # Error Message An error code and error message. | Property | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | errorCode | String | An error code with information about the error, for example, INSUFFICIENT\_PRIVILEGES | Small, 41.0 | 41.0 | | message | String | Description of error | Small, 41.0 | 41.0 | #### See Also - [Batch Result Item](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_batch_result.htm "The results of one subrequest in a batch request.") # Error with Output Contains extra information about errors. In rare cases, an error message isn't enough to describe the reason for a failure. For example, when a conflicting precondition exists, the error result can include the information about the cause of the conflict. User Interface API enforces Salesforce validation rules. If a validation rule fails, the error is reported here.
Property Type Description Filter Group and Version Available Version
enhancedErrorType String Indicates the type of the output property. The value is either null or RecordError. Small, 41.0 41.0
message String Description of the error. Small, 41.0 41.0
output Any response body The response body returned by the requested resource. For example, if a successful request returns a Object Info response body but an error triggers the Error with Output response body, the value of the output property is an Object Info response body.

When an error occurs related to record create or update, this value is Record Exceptions.

Small, 41.0 41.0
# Favorite A single favorite.
Property Name Type Description Filter Group and Version Available Version
accessCount Integer The number of times this favorite has been used. Big, 41.0 41.0
iconColor String The color of the icon for this favorite, usually the related object’s color. Big, 41.0 41.0
iconUrl String The URL of the icon for the favorite, usually the related object’s icon. Big, 41.0 41.0
id String The ID of the favorite. Small, 41.0 41.0
lastAccessDate String The last time this favorite was used. The value is in ISO 8061 date and time format. Big, 41.0 41.0
name String The name of the favorite. Small, 41.0 41.0
objectType String The developer name of the entity associated with this favorite, if any. Medium, 41.0 41.0
sortOrder Integer The sort order of the favorite, from 1 to N. Small, 41.0 41.0
subtitle String The subtitle of the favorite, usually the object’s label. Provides additional information about the type of record or content being favorited. Medium, 41.0 41.0
target String The record, API name, or content being favorited. Small, 41.0 41.0
targetType String The type of record or content being favorited. One of these values:
  • ListView—A favorited list view.
  • ObjectHome—A favorited object home.
  • Record—A favorited record.
  • Tab—A favorited tab.
Small, 41.0 41.0
#### See Also - [Create a Favorite](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_favorites_create.htm "Create a favorite.") - [Get Favorites](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_favorites_get.htm "Get all of a user’s favorites.") - [Update a Favorite](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_favorite_update.htm "Update a favorite.") - [Update Usage of a Favorite](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_favorites_usage_update.htm "Update the usage of an individual favorite. Increments the accessCount and sets the lastAccessDate to the current system time.") # Favorite Batch Collection Input A collection of all the favorites in a batch. Pass this request body to update a batch of favorites. JSON example { favorites: \[ { id: "0MVR00000004DhnOAE", name: "Q4 Perf" }, { id: "0MVR00000004DhsOAE" }, { id: "0MVR00000004DiGOAU" }, { id: "0MVR000000001e2OAA", name: "Office Group" }, { id: "0MVR00000004GGlOAM" }}\] } Properties | Name | Type | Description | Required or Optional | Available Version | | --- | --- | --- | --- | --- | | favorites | [Favorite Batch Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_favorite_batch_input.htm#ui_api_requests_favorite_batch_input "Represents a single favorite when updating favorites in batch.")\[\] | The list of favorites to keep and update. | Required | 41.0 | #### See Also - [Update a Batch of Favorites](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_favorites_batch_update.htm "Update all favorites at once. The sort order is updated to the given relative ordering. Any favorites missing from the request body are deleted.") # Favorite Batch Input Represents a single favorite when updating favorites in batch. JSON example { favorites: \[ { id: "0MVR00000004DhnOAE", name: "Q4 Perf" }, { id: "0MVR00000004DhsOAE" }, { id: "0MVR00000004DiGOAU" }, { id: "0MVR000000001e2OAA", name: "Office Group" }, { id: "0MVR00000004GGlOAM" }}\] } Properties | Name | Type | Description | Required or Optional | Available Version | | --- | --- | --- | --- | --- | | id | String | The ID of the favorite. | Required | 41.0 | | name | String | The name of the favorite. | Required | 41.0 | #### See Also - [Update a Batch of Favorites](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_favorites_batch_update.htm "Update all favorites at once. The sort order is updated to the given relative ordering. Any favorites missing from the request body are deleted.") # Favorite Collection A list of favorites. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | favorites | [Favorite](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_favorite.htm#ui_api_responses_favorite "A single favorite.")\[\] | A list of favorites. | Small, 41.0 | 41.0 | #### See Also - [Update a Batch of Favorites](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_favorites_batch_update.htm "Update all favorites at once. The sort order is updated to the given relative ordering. Any favorites missing from the request body are deleted.") # Favorite Input A favorite to create or update. JSON example { name: "Most Important Accounts", sortOrder: 1 target: "00BR0000000tTTwMAM", targetType: "ListView" } Properties
Name Type Description Required or Optional Available Version
name String The name of the favorite. Required for PATCH if sortOrder isn't specified. You may specify both. 41.0
sortOrder Integer The sort order of the favorite, from 1 to N. Required for PATCH if name is unspecified. You may specify both. 41.0
target String The record, API name, or content being favorited. Required in a POST request. Do not specify in a PATCH request. 41.0
targetType String The type of favorite. One of these values:
  • ListView—A favorited list view.
  • ObjectHome—A favorited object home.
  • Record—A favorited record.
  • Tab—A favorited tab.
Required in a POST request. Do not specify in a PATCH request. 41.0
#### See Also - [Create a Favorite](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_favorites_create.htm "Create a favorite.") - [Update a Favorite](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_favorite_update.htm "Update a favorite.") # Favorites Use these resources to create and update a single favorite or a collection of favorites, and to get favorites usage information. These resources make it easy to build UI for favorites. - **[Create a Favorite](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_favorites_create.htm)** Create a favorite. - **[Get a Favorite](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_favorite_get.htm)** Get a favorite. - **[Get Favorites](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_favorites_get.htm)** Get all of a user’s favorites. - **[Update a Favorite](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_favorite_update.htm)** Update a favorite. - **[Update a Batch of Favorites](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_favorites_batch_update.htm)** Update all favorites at once. The sort order is updated to the given relative ordering. Any favorites missing from the request body are deleted. - **[Delete a Favorite](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_favorite_delete.htm)** Delete a favorite. - **[Update Usage of a Favorite](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_favorites_usage_update.htm)** Update the usage of an individual favorite. Increments the accessCount and sets the lastAccessDate to the current system time. # Field A field's metadata. ![Important](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/images/icon_note_important.png) #### Important Where possible, we changed noninclusive terms to align with our company value of Equality. Because changing the often-used term master-detail can break customer implementations, we maintained this reference.
Property Name Type Description Filter Group and Version Available Version
apiName String The API name for this field. Small, 41.0 41.0
calculated Boolean Indicates whether the field is a custom formula field. Small, 41.0 41.0
compound Boolean Indicates whether the field is a top-level compound field.

If the dataType is Location, this value is usually false.

Small, 41.0 41.0
compoundComponentName String If this field is a component field of a compound field, the value is the normalized component name, otherwise the value is null. For example, if the field represents "BillingStreet" of an Address compound field, this property contains "Street". Small, 41.0 41.0
compoundFieldName String If this field is a component field of a compound field, this property contains the top-level compound field. Otherwise, the value of this property is null. Small, 41.0 41.0
controllerName String If this field is a dependent picklist, this property is the name of the field that controls the values of the picklist. Small, 41.0 41.0
controllingFields String[] If this field is a dependent picklist, this property is a collection of fields that control the values in the picklist. When there’s a hierarchy of controlling fields, the collection starts with the immediate parent and moves up the tree. Small, 42.0 42.0
createable Boolean Indicates whether the field can be created. Small, 41.0 41.0
custom Boolean Indicates whether the field is custom. Small, 41.0 41.0
dataType String Field type. One of these values: Small, 41.0 41.0
defaultValue String Default value for the field. Small, 66.0 66.0
defaultedOnCreate Boolean Indicates whether the field is automatically assigned a default value when a record is created. Small, 66.0 66.0
digits Integer For integer fields, the maximum number of digits that an integer can have. Small, 65.0 65.0
externalId String External ID of the field. Small, 60.0 60.0
extraTypeInfo String More data type information. One of these values:
  • ExternalLookup—External lookup
  • ImageUrl—Image url
  • IndirectLookup—Indirect lookup
  • PersonName—Person name
  • PlainTextArea—Plain text area
  • RichTextArea—Rich text area
  • SwitchablePersonName—Switchable person name
Small, 41.0 41.0
filterable Boolean Indicates whether the field is filterable. If true, then this field can be specified in the WHERE clause of a SOQL statement. Small, 41.0 41.0
filteredLookupInfo Filtered Lookup Info If the field is a reference field type with a lookup filter, this value contains the lookup information. Small, 41.0 41.0
highScaleNumber Boolean Indicates whether the field stores numbers to 8 decimal places regardless of what's specified in the field details. Small, 41.0 41.0
htmlFormatted Boolean Indicates whether the field is formatted for HTML and should be encoded for display in HTML. Also indicates whether a field is a custom formula field that has an IMAGE text function. Small, 41.0 41.0
inlineHelpText String The text that appears in the field-level help hover text. Medium, 41.0 41.0
label String Text label that appears next to the field in the Salesforce user interface. This label may be localized. Small, 41.0 41.0
length Integer For string fields, the maximum number of Unicode characters. Small, 41.0 41.0
maskType String Mask type of the field. Small, 60.0 60.0
nameField Boolean Indicates whether the field is a name field. Small, 41.0 41.0
polymorphicForeignKey Boolean Indicates whether the field is a foreign key over a domain of multiple objects. Small, 41.0 41.0
precision Integer For double fields, indicates the maximum number of digits that can be stored, on both sides of the decimal point. Small, 41.0 41.0
reference Boolean Indicates whether the field is a foreign key to another record.

A reference field contains an ID value that points to a unique record (usually the parent record) on another object.

Small, 41.0 41.0
referenceTargetField String For indirect lookup relationships on external objects, this property is the target custom field of the referenced object. Medium, 41.0 41.0
referenceToInfos Reference to Info[] For fields that refer to other objects, this list includes information about the object types and name fields of the referenced objects. Small, 41.0 41.0
relationshipName String The name of the relationship, if this relationship is a master-detail relationship field. Small, 41.0 41.0
required Boolean Indicates whether the field is required when creating or editing a record.

To determine which fields are required in a layout, use the RecordLayoutItem.required property.

Small, 41.0 41.0
scale Integer For double fields, indicates the number of digits to the right of the decimal point. Small, 41.0 41.0
searchPrefilterable Boolean Indicates whether a foreign key (relationship field) can be included in a SOSL WHERE clause. Big, 41.0 41.0
sortable Boolean Indicates whether the field is sortable. If true, then this field can be specified in a SOQL ORDER BY clause. Small, 41.0 41.0
unique Boolean Indicates whether a field’s value must be unique. Small, 41.0 41.0
updateable Boolean Indicates whether the field can be edited. Small, 41.0 41.0
#### See Also - [Object Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_object_info.htm "The metadata for an object.") # Field Layout Component A field in a record layout. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | apiName | String | The API name of the field. | Small, 41.0 | 41.0 | | componentType | String | The value is Field. | Small, 41.0 | 41.0 | | label | String | The label of the field. | Small, 41.0 | 41.0 | #### See Also - [Record Layout Item](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_layout_item.htm "An item in a record layout.") # Field Value The raw and displayable field values for a field in a record.
Property Name Type Description Filter Group and Version Available Version
displayValue String The displayable value for a field.

This field is non-null in these cases.

  • The value property can be localized to the context user’s language.
  • The value property is a date or currency that can be formatted for display.

    If the dataType of a field is Date or DateTime, it uses the short format in this table.

    If the dataType of a field is Currency, it uses the format in this table.

  • The value property is a related record.
Small, 41.0 41.0
value Object The value of a field in its raw data form.

If the field is a related record, the raw value contains a nested Record response body.

If this value is null, the displayValue is also null.

Date and time information is in ISO 8601 format.

Small, 41.0 41.0
#### See Also - [Record](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record.htm "The field data, API name, child relationship data, and record type information for a record.") - [Record Template Clone](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_template_clone.htm "A record template containing the default information and data needed to clone a record. Use these values in a request to POST /ui-api/records.") - [Record Template Create](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_template_create.htm "A record template containing the default information and data needed to create a record. Use these values in a request to POST /ui-api/records.") # Filtered Lookup Info Metadata for a lookup filter. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | controllingFields | String\[\] | A collection of controlling fields when the lookup filter is dependent on the source object. | Small, 41.0 | 41.0 | | dependent | Boolean | Indicates whether the lookup filter is dependent on the source object. | Small, 41.0 | 41.0 | | optionalFilter | Boolean | Indicates whether the lookup filter is optional. | Small, 41.0 | 41.0 | #### See Also - [Field](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_field.htm "A field's metadata.") # Get a Batch of List View Metadata Get metadata for a batch of list views. Resource /ui-api/list-info/batch?ids= Available Version 55.0 HTTP Methods GET Example This example gets metadata for a batch of list views by ID: GET /services/data/v68.0/ui-api/list-info/batch?ids=00Bxx0000029Y0OEAU,00Bxx0000029Y0NEAU This example gets metadata for a batch of list views by name: GET /services/data/v68.0/ui-api/list-info/batch?names=Account.AllAccounts,Accounts,Account.NewLastWeek Request Parameters | Parameter Name | Type | Description | Required or Optional | Available Version | | --- | --- | --- | --- | --- | | ids | ID | A comma-delimited list of list view IDs. A list view ID starts with 00B, like 00Bxx0000029Y0NEAU | Either ids or names is required. | 55.0 | | names | String | A comma-delimited list of list view names. A list view name starts with an entity name, a dot, and then the name of the list view, like Account.AllAccounts. | Either ids or names is required. | 55.0 | Response Body [Simplified Batch Results](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_batch_results_simplified.htm "The simplified results from a request to a batch resource. Results include information for each subrequest in the batch.") # Get a Batch of Object Metadata Get metadata about specific objects. The response includes a batch of metadata describing fields, child relationships, record type, and theme. You can request up to 2,000 objects in an object metadata request. Resource /ui-api/object-info/batch/{objectApiNames} objectApiNames—A comma-delimited list of up to 2,000 [supported](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_get_started_supported_objects.htm#ui_api_get_started_supported_objects "User Interface API supports all custom objects and external objects and many standard objects.") objects. Available Version 49.0 HTTP Method GET Response Body [Simplified Batch Results](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_batch_results_simplified.htm "The simplified results from a request to a batch resource. Results include information for each subrequest in the batch.") # Get a Batch of Records Get data for a batch of records. Resource GET /ui-api/records/batch/{recordIds} recordIds—A comma-delimited list of custom object and [supported object](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_get_started_supported_objects.htm#ui_api_get_started_supported_objects "User Interface API supports all custom objects and external objects and many standard objects.") records. Available Version 41.0 Example for GET This example gets the Account.Name field and Account.Contacts child records for two accounts. GET /ui-api/records/batch/001R0000003I6CeIAK,001R0000003I6CgIAK? fields=Account.Name&childRelationships=Account.Contacts Request Parameters
Parameter Name Type Description Required or Optional Available Version
childRelationships String[] A collection of child relationship names. The records with those child relationship names are included in the response. Specify names in the format ObjectApiName.ChildRelationshipName or ObjectApiName.ChildRelationshipName.FieldApiName. For example, to specify the Contacts relationship on an Account, use Account.Contacts. You can get child relationships one level deep.

To get a relationship name, look in the Object Info response body.

Optional 41.0
includeFieldsInBody Boolean Specifies whether to return a field that’s defined in the request body but not in the layout. The default value is false. When set to true, fields that are not in the layout are also included in the response body. Optional 59.0
fields String[] Specifies the fields to return. If this property is specified, the response is a union of fields and optionalFields.

If the context user doesn’t have access to a field, or if the field doesn’t exist, an error is returned.

If you’re not sure whether the context user has access to a field and you don’t want the request to fail if they don’t, use the optionalFields parameter.

Specify names in the format ObjectApiName.FieldName. You can get any field that has a named relationship to this record. There’s no limit to the number of fields you can specify.

Child relationship records don’t have layouts. To get more fields for these records, specify them in the fields parameter.

To return a field whose type is base64, specify the field in the optionalFields parameter.

Polymorphic fields aren't supported. Including a polymorphic field in fields can result in an invalid field error.

In API versions 45.0 and later, either fields, optionalFields, or layoutTypes is required.

In earlier API versions, either fields or layoutTypes is required.

In all API versions, to specify both fields and layoutTypes, you must specify childRelationships.
41.0
layoutTypes String[] Specifies the fields to return. If this property is specified, the response is a union of layoutTypes, modes, and optionalFields.

A collection containing any of these values:

  • Compact—Use this value to get a layout that contains a record’s key fields.
  • Full—(Default) Use this value to get a full layout.
In API versions 45.0 and later, either fields, optionalFields, or layoutTypes is required.

In earlier API versions, either fields or layoutTypes is required.

In all API versions, to specify both fields and layoutTypes, you must specify childRelationships.
41.0
modes String[] The access mode for the record. This value determines which fields to get from a layout. Layouts have different fields for create, edit, and view modes. For example, formula fields are rendered in view mode, but not in create mode because they’re calculated at run time, like formulas in a spreadsheet. A collection containing any of these values:
  • Create—Use this mode if you intend to build UI that lets a user create a record. This mode is used by the /ui-api/record-defaults/create/{apiName} resource.
  • Edit—Use this mode if you intend to build UI that lets a user edit a record. This mode is used by the /ui-api/record-defaults/clone/{recordId} resource.
  • View—(Default) Use this mode to build UI that displays a record.
Optional if layoutTypes is specified. If layoutTypes is not specified, this parameter is ignored. 41.0
optionalFields String[] A collection of optional field names. If a field is accessible to the context user, it’s included in the response. If a field isn’t accessible to the context user, it isn’t included in the response, but it doesn’t cause an error.

Specify names in the format ObjectApiName.FieldName. You can get any field that has a named relationship to this record. There’s no limit to the number of fields you can specify.

To return a field whose type is base64, specify the field in the optionalFields parameter.

In API versions 45.0 and later, either fields, optionalFields, or layoutTypes is required.

In earlier API versions, optionalFields is optional.

41.0
pageSize Integer The maximum number of child records to return on a page. Optional 41.0
updateMru Boolean To add to the most recently used (MRU) list view, set to true. The default value is false. Optional 47.0
Response Body [Batch Results](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_batch_results.htm#ui_api_responses_batch_results "The results from a request to a batch resource. Results include information for each subrequest in the batch.") #### See Also - [Get Default Values to Clone a Record](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_record_defaults_clone.htm "Get the default layout information, object information, and data for cloning a record. After getting the default values, make a request to POST /ui-api/records to create the record.") - [Get Default Values to Create a Record](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_record_defaults_create.htm "Get the default values for fields for a new record of a specified object and optional record type. After getting the default values, make a request to POST /ui-api/records to create the record.") - [Get Child Records](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_features_records_child_relationships.htm "User Interface API has several resources that include child records in their responses. If a record has many child relationships, a response can be huge and have a negative effect on performance. To get only the records you need, request records for specific child relationships and set the page size of the results.") - [User Interface API Quick Start](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_quick_start_postman.htm "Use the Postman desktop app or web-based UI to easily explore and test the UI API and other Salesforce APIs against your orgs.") - [Batch Results](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_batch_results.htm "The results from a request to a batch resource. Results include information for each subrequest in the batch.") # Get a Batch of Related List Actions with a Request Body Get the actions on a batch of related lists for a record. This resource uses the POST method so you can enter request parameters in the request body instead using complex URL parameters. Resources /ui-api/actions/record/${recordIds}/related-list/batch - recordIds—The 15 or 18 character ID of a record. Available Version 57.0 HTTP Method POST Example To get information about the actions for the Contacts and Opportunities related lists on an Account record page, use this request with parameters in a request body. POST /services/data/v68.0/ui-api/actions/record/001R0000003IDlwIAG/related-list/batch { "relatedListsActionParameters": \[ { "relatedListId": "Contacts", "apiNames": \[ "New" \], "retrievalMode": "All" }, { "relatedListId": "Opportunities", "apiNames": \["New" \], "retrievalMode": "All" } \] } Request Parameters | Parameter Name | Type | Description | Required or Optional | Available Version | | --- | --- | --- | --- | --- | | listRecordActionsQuery | [Action Related Lists Batch Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_action_related_list_batch_input.htm "Get the actions on a batch of related lists for a record.") | The data for a batch of related list actions. | Optional | 57.0 | Response Body [Simplified Batch Results](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_batch_results_simplified.htm "The simplified results from a request to a batch resource. Results include information for each subrequest in the batch.") # Get a Batch of Related List Actions with URL Parameters Get the actions on a batch of related lists for a record via URL parameters. Resources /ui-api/actions/record/${recordIds}/related-list/batch/${relatedListIds} - recordIds—The 15 or 18 character ID of a record. - relatedListIds—(Optional) A comma-delimited list of related list IDs. When this parameter isn’t specified, the request returns all related list actions for the specified record. Available Version 50.0 HTTP Method GET Example As an example, let’s say we have an Account record detail page with a record ID of 001R0000003IDlwIAG. The page has some related lists, including tasks and events. To get information about all the related list actions on this page, make this request. GET /services/data/v68.0/ui-api/actions/record/001R0000003IDlwIAG/related-list/batch The request returns a list of related list actions on the page and the URLs of the request and subrequests. { "actions" : { "001R0000003IDlwIAG" : { "actions" : \[ { "actionListContext" : "RelatedList", "actionTarget" : null, "actionTargetType" : "Invoke", "apiName" : "NewTask", "externalId" : "00DR00000008n7M:001R0000003IDlwIAG::RelatedList:Phone:StandardButton:NewTask", "iconUrl" : "https://yourInstance.salesforce.com/img/icon/t4v35/action/new\_task\_120.png", "id" : "0JVR00000000036OAA", "isMassAction" : "false", "label" : "New Task", "primaryColor" : "4BC076", "relatedListRecordId" : null, "relatedSourceObject" : "OpenActivities", "section" : "Page", "sourceObject" : "001R0000003IDlwIAG", "subtype" : null, "targetObject" : "Task", "targetUrl" : null, "type" : "StandardButton" }, { "actionListContext" : "RelatedList", "actionTarget" : null, "actionTargetType" : "Invoke", "apiName" : "NewEvent", "externalId" : "00DR00000008n7M:001R0000003IDlwIAG::RelatedList:Phone:StandardButton:NewEvent", "iconUrl" : "https://yourInstance.salesforce.com/img/icon/t4v35/action/new\_event\_120.png", "id" : "0JVR00000000037OAA", "isMassAction" : "false", "label" : "New Event", "primaryColor" : "EB7092", "relatedListRecordId" : null, "relatedSourceObject" : "OpenActivities", "section" : "Page", "sourceObject" : "001R0000003IDlwIAG", "subtype" : null, "targetObject" : "Event", "targetUrl" : null, "type" : "StandardButton" } ... Additional actions removed for brevity ... \], "links" : \[ \], "url" : "/services/data/v68.0/ui-api/actions/record/001R0000003IDlwIAG/related-list" } }, "url" : "/services/data/v68.0/ui-api/actions/record/001R0000003IDlwIAG/related-list" } Request Parameters
Parameter Name Type Description Required or Optional Available Version
actionTypes String[]

The action type. One or more of these values:

  • CustomButton—A button that opens a URL or Visualforce page or executes JavaScript.
  • ProductivityAction—A pre-defined Salesforce action, attached to a limited set of objects.
  • QuickAction—A global or object-specific action.
  • StandardButton—A pre-defined Salesforce button, such as New, Edit, and Delete.
Optional 41.0
apiNames String[] The API names of one or more actions to be retrieved. Use this parameter only when passing retrievalMode=All. Optional 49.0
formFactor String The layout display size. One of these values:
  • Large—(Default) Use this value to get a layout for desktop display size.
  • Medium—Use this value to get a layout for tablet display size.
  • Small—Use this value to get a layout for phone display size.
Optional 41.0
retrievalMode String When the action context is Record, this parameter indicates which actions to retrieve from the record page. One of these values:
  • All—Retrieves all actions specified in the apiNames parameter.
  • PageLayout—(Default) Retrieves actions from the page layout.
Optional 49.0
sections String[] The section of the user interface that the actions reside in. One or more of these values:
  • ActivityComposer
  • CollaborateComposer
  • Page
  • SingleActionLinks
Optional 41.0
Response Body [Simplified Batch Results](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_batch_results_simplified.htm "The simplified results from a request to a batch resource. Results include information for each subrequest in the batch.") # Get a Batch of Related List Metadata Returns metadata for a batch of related lists in a page layout. Resource /ui-api/related-list-info/batch/${parentObjectApiName}/${relatedListNames} - parentObjectApiName—A [supported](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_get_started_supported_objects.htm#ui_api_get_started_supported_objects "User Interface API supports all custom objects and external objects and many standard objects.") object, such as Account. - relatedListNames—Comma-separated IDs of supported related lists for that object. Available Version 50.0 HTTP Method GET Example To get information about the Contracts and Work Orders related lists for the Account object, make this request. GET /services/data/v68.0/ui-api/related-list-info/batch/Account/Contracts,WorkOrders Request Parameters | Parameter Name | Type | Description | Required or Optional | Available Version | | --- | --- | --- | --- | --- | | recordTypeId | Id | The ID of the record type (RecordType object) for the record. If not provided, the default record type is used. | Optional | 50.0 | Response Body [Simplified Batch Results](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_batch_results_simplified.htm "The simplified results from a request to a batch resource. Results include information for each subrequest in the batch.") # Get a Batch of Related List Record Counts Returns the record count for a batch of related lists. Resource /ui-api/related-list-count/batch/${parentRecordId}/${relatedListIds} - parentRecordId—The ID of the record you want to get related lists for. - relatedListIds—Comma-separated IDs of supported related lists for that object. Available Version 50.0 HTTP Method GET Example To get the number of records in the Contracts related list for the account 001RM000003UNu6YAG, make this request. /services/data/v68.0/ui-api/related-list-count/batch/001RM000003UNu6YAG/Contracts,WorkOrders Request Parameters | Parameter Name | Type | Description | Required or Optional | Available Version | | --- | --- | --- | --- | --- | | maxCount | Integer | The maximum number of records to return. The default value is 20. | Optional | 50.0 | Response Body [Simplified Batch Results](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_batch_results_simplified.htm "The simplified results from a request to a batch resource. Results include information for each subrequest in the batch.") # Get a Batch of Related List Records with a Request Body Returns record data for a batch of related lists. This resource uses the POST method to let you enter request parameters in the request body instead of the URL. Resources /ui-api/related-list-records/batch/${parentRecordId} - parentRecordId—The ID of the record you want to get a batch of related lists for. Available Version 55.0 HTTP Method POST Example To get record data for the Contacts and Opportunities related lists for the account record 001xx000003GYOpAAO, use the following request. POST /ui-api/related-list-records/batch/001xx000003GYOpAAO { "relatedListParameters": \[ { "relatedListId": "Contacts", "fields": \["Name", "Id", "Birthdate"\], "optionalFields": \["Email"\], "sortBy": \["CreatedDate"\], "pageSize": 10, "where": "{ Account: { AnnualRevenue: { gt: 10000000 } }}" }, { "relatedListId": "Opportunities", "fields": \["Name", "Id"\], "optionalFields": \["Email"\], "sortBy": \["CreatedDate"\], "pageSize": 10, "where": "{ Account: { AnnualRevenue: { gt: 10000000 } }}" } \] } Request Parameters | Parameter Name | Type | Description | Required or Optional | Available Version | | --- | --- | --- | --- | --- | | listRecordsQuery | [Related List Records Batch Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_related_list_record_batch_input.htm "Get record data for a batch of related lists.") | The record data for a batch of related lists. | Required | 55.0 | Response Body [Simplified Batch Results](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_batch_results_simplified.htm "The simplified results from a request to a batch resource. Results include information for each subrequest in the batch.") # Get a Batch of Related List Records with URL Parameters Returns record data for a batch of related lists via URL parameters. Resources /ui-api/related-list-records/batch/${parentRecordId}/${relatedListIds} - parentRecordId—The ID of the record you want to get related lists for. - relatedListIds—Comma-separated IDs of supported related lists for the specified record. Available Version 50.0 HTTP Method GET Example To get metadata for the Contracts related list for the account record 001RM000003UNu6YAG, make this request: /services/data/v68.0/ui-api/related-list-records/batch/001RM000003UNu6YAG/Contracts,WorkOrders Request Parameters ![Note](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/images/icon_note.png) #### Note To get record data for a batch of related lists without using complex URL parameters, you can use the POST method and enter request parameters in the request body. See [Get a Batch of Related List Records with a Request Body](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_related_list_records_batch_get.htm "Returns record data for a batch of related lists. This resource uses the POST method to let you enter request parameters in the request body instead of the URL.").
Parameter Name Type Description Required or Optional Available Version
fields String[] Fields queried for the records returned. These fields are included in the response body and don’t create visible columns. If the field isn’t available to the user, an error occurs. Optional 50.0
optionalFields String[] Additional fields queried for the records returned. These fields are included in the response body and don’t create visible columns. If the field isn’t available to the user, no error occurs and the field isn’t included in the records. Optional 50.0
pageSize Integer The number of records from all lists in the request viewed at one time. The default value is 50. Value can be 1–1999. Optional 50.0
sortBy String[] The API names of the fields the related list is sorted by. If the name is preceded with -, the sort order is descending. For example, Name sorts by name in ascending order. -CreatedDate sorts by created date in descending order.

In API version 63.0 and later, you can sort by up to five fields. If a field is invalid or isn’t accessible to the context user, this parameter is ignored, but no error occurs.

Optional 50.0
where String
Note

Note

The where parameter isn’t supported for GET requests.

Optional 55.0
Response Body [Simplified Batch Representation](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_batch_results_simplified.htm "The simplified results from a request to a batch resource. Results include information for each subrequest in the batch.") # Get a Batch of Related List User Preferences Returns a batch of user preferences for a related list. Resource /ui-api/related-list-preferences/batch/${preferencesIds} - preferencesIds—A comma-delimited set of related list user preference IDs, such as Account.RelatedContactList. Available Version 57.0 HTTP Method GET Example To get user preferences for the Contact and Opportunity related lists on an Account, make this request. GET /services/data/v68.0/ui-api/related-list-preferences/batch/Account.RelatedContactList,Account.RelatedOpportunityList Response Body [Simplified Batch Results](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_batch_results_simplified.htm "The simplified results from a request to a batch resource. Results include information for each subrequest in the batch.") # Get a Directory of Supported Objects Get a directory of objects that are [supported](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_get_started_supported_objects.htm#ui_api_get_started_supported_objects "User Interface API supports all custom objects and external objects and many standard objects.") by User Interface API and accessible to the context user. The directory includes a /ui-api/object-info/{objectApiName} resource for each supported object. Resource /ui-api/object-info/ Available Version 42.0 HTTP Method GET Response Body [Object Info Directory](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_object_info_directory.htm#ui_api_responses_object_info_directory "A directory of objects that are supported by User Interface API and available to the context user.") #### See Also - [Get Object Metadata](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_object_info.htm "Get metadata about a specific object. The response includes metadata describing fields, child relationships, record type, and theme.") # Get a Favorite Get a favorite. Resource /ui-api/favorites/${favoriteId} favoriteId—The ID of a favorite. Available Version 41.0 HTTP Method GET Response Body [Favorite](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_favorite.htm#ui_api_responses_favorite "A single favorite.") # Get a Quick Action Layout Get information about the record layout used by a Create a Record or Update a Record quick action. Resource /ui-api/actions/layout/${actionApiName} actionApiName—The API name of a quick action. Available Version 58.0 HTTP Method GET Example This example returns information about the record layout used by the Create Case quick action on the Account object. GET /services/data/v68.0/ui-api/actions/layout/Account.CreateCase Request parameters | Parameter Name | Type | Description | Required or Optional | Available Version | | --- | --- | --- | --- | --- | | objectApiName | String | API name of the object. | Optional | 60.0 | | recordTypeId | String | ID of the record type. | Optional | 60.0 | Response Body [Quick Action Layout](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_quick_action_layout.htm "The record layout used by the quick action.") # Get a Record Get a record’s data. GET /ui-api/records/{recordId} recordId—A custom object record or a [supported object](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_get_started_supported_objects.htm#ui_api_get_started_supported_objects "User Interface API supports all custom objects and external objects and many standard objects.") record. Available Version 41.0 Example for GET This example gets the data for fields in the compact layout for an opportunity record with ID 006R0000001rboIIAQ. The response includes OpportunityCompetitors and Partners child records. GET /ui-api/records/006R0000001rboIIAQ?layoutTypes=Compact&childRelationships=Opportunity.OpportunityCompetitors,Opportunity.Partners Request Parameters
Parameter Name Type Description Required or Optional Available Version
childRelationships String[] A collection of child relationship names. The records with those child relationship names are included in the response. Specify names in the format ObjectApiName.ChildRelationshipName or ObjectApiName.ChildRelationshipName.FieldApiName. For example, to specify the Contacts relationship on an Account, use Account.Contacts. You can get child relationships one level deep.

To get a relationship name, look in the Object Info response body.

Optional 41.0
includeFieldsInBody Boolean Specifies whether to return a field that’s defined in the request body but not in the layout. The default value is false. When set to true, fields that are not in the layout are also included in the response body. Optional 59.0
fields String[] Specifies the fields to return. If this property is specified, the response is a union of fields and optionalFields.

If the context user doesn’t have access to a field, or if the field doesn’t exist, an error is returned.

If you’re not sure whether the context user has access to a field and you don’t want the request to fail if they don’t, use the optionalFields parameter.

Specify names in the format ObjectApiName.FieldName. You can get any field that has a named relationship to this record. There’s no limit to the number of fields you can specify.

Child relationship records don’t have layouts. To get more fields for these records, specify them in the fields parameter.

To return a field whose type is base64, specify the field in the optionalFields parameter.

Note

Note

Polymorphic fields aren't supported. Including a polymorphic field in fields can result in an invalid field error.

In API versions 45.0 and later, either fields, optionalFields, or layoutTypes is required.

In earlier API versions, either fields or layoutTypes is required.

In all API versions, to specify both fields and layoutTypes, you must specify childRelationships.
41.0
layoutTypes String[] Specifies the fields to return. If this property is specified, the response is a union of layoutTypes, modes, and optionalFields.

A collection containing any of these values:

  • Compact—Use this value to get a layout that contains a record’s key fields.
  • Full—(Default) Use this value to get a full layout.
In API versions 45.0 and later, either fields, optionalFields, or layoutTypes is required.

In earlier API versions, either fields or layoutTypes is required.

In all API versions, to specify both fields and layoutTypes, you must specify childRelationships.
41.0
modes String[] The access mode for the record. This value determines which fields to get from a layout. Layouts have different fields for create, edit, and view modes. For example, formula fields are rendered in view mode, but not in create mode because they’re calculated at run time, like formulas in a spreadsheet. A collection containing any of these values:
  • Create—Use this mode if you intend to build UI that lets a user create a record. This mode is used by the /ui-api/record-defaults/create/{apiName} resource.
  • Edit—Use this mode if you intend to build UI that lets a user edit a record. This mode is used by the /ui-api/record-defaults/clone/{recordId} resource.
  • View—(Default) Use this mode to build UI that displays a record.
Optional if layoutTypes is specified. If layoutTypes is not specified, this parameter is ignored. 41.0
optionalFields String[] A collection of optional field names. If a field is accessible to the context user, it’s included in the response. If a field isn’t accessible to the context user, it isn’t included in the response, but it doesn’t cause an error.

Specify names in the format ObjectApiName.FieldName. You can get any field that has a named relationship to this record. There’s no limit to the number of fields you can specify.

To return a field whose type is base64, specify the field in the optionalFields parameter.

In API versions 45.0 and later, either fields, optionalFields, or layoutTypes is required.

In earlier API versions, optionalFields is optional.

41.0
pageSize Integer The maximum number of child records to return on a page. Optional 41.0
updateMru Boolean To add to the most recently used (MRU) list view, set to true. The default value is false. Optional 47.0
Response Body [Record](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record.htm#ui_api_responses_record "The field data, API name, child relationship data, and record type information for a record.") #### See Also - [Get Child Records](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_features_records_child_relationships.htm "User Interface API has several resources that include child records in their responses. If a record has many child relationships, a response can be huge and have a negative effect on performance. To get only the records you need, request records for specific child relationships and set the page size of the results.") # Get Active Theme Get a Salesforce org’s active theme. A theme uses colors, images, and banners to change the overall appearance of Salesforce. Administrators can define themes and switch themes to provide a different look. The User Interface API response matches the Admin’s selection. Resources /ui-api/themes/active Available Version 42.0 HTTP Methods GET Response Body [Theme](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_theme.htm#ui_api_responses_theme "A set of images and banners that make up a theme. Banners display across the top of a page and have a higher aspect ratio than images.") # Get All Navigation Items Gets all navigation items (tabs) that the user has access to. Resource /ui-api/nav-items Available Version 45.0 HTTP Method GET Example To get all navigation tabs for an app, make this request: GET /services/data/v68.0/ui-api/nav-items?page=3&pageSize=2 The request returns metadata for all navigation tabs associated with this app. { "currentPageUrl": "/services/data/v68.0/ui-api/nav-items?page=3&pageSize=2" "navItems": \[{ "availableInClassic": true, "availableInLightning": true, "color": "EF7EAD", "content": "home\_\_desktopDefault", "custom": false, "developerName": "standard-home", "iconUrl": "https://yourInstance.salesforce.com/img/icon/t4v35/standard/home\_120.png", "id": null, "itemType": "Standard", "label": "Home", "objectApiName": "Home", "pageReference": { "attributes": { "pageName": "home" }, "state": {}, "type": "standard\_\_namedPage" }, "standardType": "Home" }, { "availableInClassic": false, "availableInLightning": true, "color": "489DD0", "content": null, "custom": false, "developerName": "standard-Feed", "iconUrl": "https://yourInstance.salesforce.com/img/icon/t4v35/standard/feed\_120.png", "id": null, "itemType": "Standard", "label": "Chatter", "objectApiName": "Feed", "pageReference": { "attributes": { "pageName": "chatter" }, "state": {}, "type": "standard\_\_namedPage" }, "standardType": "Feed" }\], "nextPageUrl": "/services/data/v68.0/ui-api/nav-items?page=4&pageSize=2" } Request Parameters
Parameter Name Type Description Required or Optional Available Version
formFactor String The response includes navigation items that support this form factor. One of these values:
  • Large—Desktop display size.
  • Medium—Tablet display size.
  • Small—Phone display size.
Optional 45.0
navItemNames String[] A comma delimited list of TabDefinition name values to include in the response. Optional 49.0
page Int The page offset form which to begin returning nav items. The default value is 0, which returns nav items from the first page. For example, for page=2 and pageSize=10, the first nav item returned is the 21st nav item in the list. Optional 45.0
pageSize Int The maximum number of nav items to return on a page. The default value is 25. Optional 45.0
Response Body [Navigation Items](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_nav_items.htm "An ordered list of navigation items (tabs) for the current user.") # Get an App Get the metadata for an app. Resource /ui-api/apps/${appId} Available Version 43.0 HTTP Method GET Example As an example, let’s say that the user has an app with an ID of 06mRM000000AFIrYAO. To get metadata for this app, make this request: GET /services/data/v68.0/ui-api/apps/06mRM000000AFIrYAO?formFactor=Large The request returns metadata for the app and its associated navigation tabs. Request Parameters
Parameter Name Type Description Required or Optional Available Version
formFactor String The form factor for each app that the user has access to.
  • Large—App supports the desktop display size.
  • Medium—App supports the tablet display size.
  • Small—App supports the phone display size.
Required 43.0
userCustomizations Boolean If true, gets custom and standard navigation tabs. If false, gets only standard navigation tabs. Optional 43.0
Response Body [App](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_app.htm#ui_api_responses_app "The metadata for a single app.") # Get Apps Get metadata for all the apps a user has access to. Metadata for the selected app includes tabs on the app’s navigation bar. Metadata for other apps doesn’t include tabs on the navigation bar. Resource /ui-api/apps Available Version 43.0 HTTP Method GET Example As an example, let’s say that the user has access to three apps: Service, Marketing, and Bolt Solutions. To get metadata for all the apps, make this request: GET /services/data/v68.0/ui-api/apps?formFactor=Large The request returns metadata for the apps and their associated navigation tabs. Request Parameters
Parameter Name Type Description Required or Optional Available Version
formFactor String The form factor for each app that the user has access to.
  • Large—App supports the desktop display size.
  • Medium—App supports the tablet display size.
  • Small—App supports the phone display size.
Required 43.0
userCustomizations Boolean If true, gets custom and standard navigation tabs. If false, gets only standard navigation tabs. Optional 43.0
Response Body [Apps](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_apps.htm#ui_api_responses_apps "A list of apps that the current user has access to.") #### See Also - [App](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_app.htm "The metadata for a single app.") - [Apps](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_apps.htm "A list of apps that the current user has access to.") - [Manage Apps](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_features_apps.htm "An app is a collection of items that work together to serve a particular function. Salesforce apps come in two flavors: Classic apps and Lightning apps. Classic apps are created and managed in Salesforce Classic. Lightning apps are created and managed in Lightning Experience. Admins customize both types of apps to match the way users work.") # Get Child Records User Interface API has several resources that include child records in their responses. If a record has many child relationships, a response can be huge and have a negative effect on performance. To get only the records you need, request records for specific child relationships and set the page size of the results. There are multiple resources that return child records. All of them share some common functionality. Specify a Child Relationship Specify child relationships in the format ObjectApiName.ChildRelationshipName. For example, to specify the Contacts relationship on an account, use Account.Contacts. Specify spanning relationships in the format ObjectApiName.ChildRelationshipName.FieldApiName. For example, to specify the account billing address for an opportunity, use Opportunity.Account.BillingAddress. Paginated Responses The child relationships records in the response are paginated and include URLs to get the next page and previous pages of child records. Use the pageSize parameter to specify the number of records per page. The default is 5. Responses Include One Level of Child Relationships User Interface API gets the first set of child relationships that it finds, it doesn’t get the next level of child relationships. For example, this request gets the Opportunities on an Account record. If an opportunity in the response has a child relationship with another object, the API doesn’t return that information. GET /ui-api/record-ui/001R0000003IG0vIAG?childRelationships=Account.Opportunities In this shortened response body, you see the first set of child relationships on the Account record, which in this case is three Opportunity records. The records in the next level of child relationships—on the Opportunity object—don’t appear because it would make the response body too large. ...response shortened... "records" : { "001RM000003TXRbYAO" : { "apiName" : "Account", **"childRelationships" : {** "Opportunities" : { **"count" : 3,** "currentPageUrl" : "/services/data/v41.0/ui-api/records/001RM000003TXRbYAO/child-relationships/Opportunities? fields=%5BOpportunity.Name%2C%20Opportunity.Id%5D&page=1&pageSize=5", "nextPageUrl" : null, "previousPageUrl" : null, "records" : \[ { "apiName" : "Opportunity", **"childRelationships" : { },** "fields" : { "AccountId" : { "displayValue" : null, "value" : "001RM000003TXRbYAO" }, "Id" : { "displayValue" : null, "value" : "006RM000002XCGxYAO" }, "Name" : { "displayValue" : null, "value" : "Acme - 1,200 Widgets" } }, "id" : "006RM000002XCGxYAO", "recordTypeId" : "012000000000000000", "recordTypeInfo" : null }, ## Resources That Return Child Records Get Child Records for a Specific Record and Child Relationship This example returns all the Contacts related to the Account record 001R0000003I6CoIAK. /ui-api/records/001R0000003I6CoIAK/child-relationships/Contacts The response is paginated. Use the pageSize parameter to specify the number of records per page. The default is 5. { "count" : 5, "currentPageUrl" : "/services/data/v41.0/ui-api/records/001R0000003I6CoIAK/child-relationships/Contacts?page=1&pageSize=5", "nextPageUrl" : "/services/data/v41.0/ui-api/records/001R0000003I6CoIAK/child-relationships/Contacts?page=2&pageSize=5", "previousPageUrl" : null, "records" : \[ { "apiName" : "Contact", "childRelationships" : { }, "fields" : { "AccountId" : { "displayValue" : null, "value" : "001R0000003I6CoIAK" }, "Id" : { "displayValue" : null, "value" : "003R0000007qXwQIAU" }, "Name" : { "displayValue" : null, "value" : "John Smith" } }, "id" : "003R0000007qXwQIAU", "recordTypeId" : "012000000000000000", "recordTypeInfo" : null }, ... } Get a Record and Include Child Records This example gets the data for fields in the compact layout for an opportunity record with ID 006R0000001rboIIAQ. The response includes OpportunityCompetitors and Partners child records. GET /ui-api/records/006R0000001rboIIAQ?layoutTypes=Compact&childRelationships=Opportunity.OpportunityCompetitors,Opportunity.Partners Get a Batch of Records and Include Child Records This example gets the Account.Name field and Account.Contacts child records for two accounts. GET /ui-api/records/batch/001R0000003I6CeIAK,001R0000003I6CgIAK? fields=Account.Name&childRelationships=Account.Contacts Get Record Data and Metadata and Include Child Records The response for this request includes layout information, metadata, and record data. The record data includes child relationship data for Contacts and Opportunities. GET /ui-api/record-ui/001R0000003I6CoIAK?childRelationships=Account.Contacts,Account.Opportunities #### See Also - [User Interface API Sample Apps](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_get_started_sample_apps.htm "We’ve built two sample apps that use User Interface API to create, read, update, and delete records. The apps are open-source and available on GitHub.") - [Get Child Records](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_child_relationships.htm "Get child records for a specified record and child relationship name. Relationships are connections between records. On a record detail page, each record in a related list has a child relationship to the parent record.") - [Get a Record](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_record_get.htm "Get a record’s data.") - [Get a Batch of Records](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_records_batch.htm "Get data for a batch of records.") - [Get Record Data and Object Metadata](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_record_ui.htm "Get layout information, metadata, and data to build UI for a single record or for a collection of records.") # Get Child Records Get child records for a specified record and child relationship name. Relationships are connections between records. On a record detail page, each record in a related list has a child relationship to the parent record. Resource /ui-api/records/${recordId}/child-relationships/${relationshipName} recordId—The ID of the record for which you want to get child relationships. relationshipName—The name of the child relationship. This value is returned in the [Object Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_object_info.htm#ui_api_responses_object_info "The metadata for an object.") response body and is usually the plural form of the object name. Available Version 41.0 HTTP Method GET Example This example returns all the Contacts related to the Account record 001R0000003I6CoIAK. /ui-api/records/001R0000003I6CoIAK/child-relationships/Contacts The response is paginated. Use the pageSize parameter to specify the number of records per page. The default is 5. { "count" : 5, "currentPageUrl" : "/services/data/v41.0/ui-api/records/001R0000003I6CoIAK/child-relationships/Contacts?page=1&pageSize=5", "nextPageUrl" : "/services/data/v41.0/ui-api/records/001R0000003I6CoIAK/child-relationships/Contacts?page=2&pageSize=5", "previousPageUrl" : null, "records" : \[ { "apiName" : "Contact", "childRelationships" : { }, "fields" : { "AccountId" : { "displayValue" : null, "value" : "001R0000003I6CoIAK" }, "Id" : { "displayValue" : null, "value" : "003R0000007qXwQIAU" }, "Name" : { "displayValue" : null, "value" : "John Smith" } }, "id" : "003R0000007qXwQIAU", "recordTypeId" : "012000000000000000", "recordTypeInfo" : null }, ... } Request Parameters
Parameter Name Type Description Required or Optional Available Version
fields String[] Specifies the fields to return. If this property is specified, the response is a union of fields and optionalFields.

If the context user doesn’t have access to a field, or if the field doesn’t exist, an error is returned.

If you’re not sure whether the context user has access to a field and you don’t want the request to fail if they don’t, use the optionalFields parameter.

Specify names in the format ObjectApiName.FieldName. You can get any field that has a named relationship to this record. There’s no limit to the number of fields you can specify.

Optional 41.0
optionalFields String[] A collection of optional field names. If a field is accessible to the context user, it’s included in the response. If a field isn’t accessible to the context user, it isn’t included in the response, but it doesn’t cause an error.

Specify names in the format ObjectApiName.FieldName. You can get any field that has a named relationship to this record. There’s no limit to the number of fields you can specify.

Optional 41.0
page Int The page offset from which to begin returning records. The default value is 0, which returns records from the first page. For example, for page=2 and pageSize=10, the first record returned is the 21st record in the list. Optional 41.0
pageSize Int The maximum number of child records to return on a page. The default value is 5. Optional 41.0
pageToken String A token that represents the page offset. Optional 44.0
Response Body [Record Collection](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_collection.htm#ui_api_responses_record_collection "A paginated collection of Record response bodies.") #### See Also - [Get Child Records](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_features_records_child_relationships.htm "User Interface API has several resources that include child records in their responses. If a record has many child relationships, a response can be huge and have a negative effect on performance. To get only the records you need, request records for specific child relationships and set the page size of the results.") # Get Default Values to Clone a Record Get the default layout information, object information, and data for cloning a record. After getting the default values, make a request to POST /ui-api/records to create the record. The response contains the default field values for a record cloned from the record specified in {recordId}, optionally of the specified recordTypeId. It also contains the corresponding layout information for edit mode. In the Salesforce user interface, an admin with “Customize Application” permission can mark a field as required in a layout. When you’re building UI, to determine which fields to mark as required in a layout for edit mode, use the [RecordLayoutItem.required](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_layout_item.htm "An item in a record layout.") property. The response contains object metadata for the object type of the record specified in {recordId} and for any nested objects. For example, this request clones an Account record. It returns object metadata for Account and User, because the OwnerId field on the Account object contains a reference to the User object. /ui-api/record-defaults/clone/001d000000AtfRIAAZ Resource /ui-api/record-defaults/clone/{recordId} ![Note](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/images/icon_note.png) #### Note To get default values with a lightweight response, use the [/ui-api/record-defaults/template/clone/{recordId}](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_record_defaults_template_clone.htm "Get the default values for fields for cloning a record. You must specify the fields you want returned. This resource doesn’t use or return layout information. After getting the default values, make a request to POST /ui-api/records to create the record.") resource. Available Version 41.0 HTTP Method GET Request Parameters
Parameter Name Type Description Required or Optional Available Version
formFactor String The layout display size for the record. One of these values:
  • Large—(Default) Use this value to get a layout for desktop display size.
  • Medium—Use this value to get a layout for tablet display size.
  • Small—Use this value to get a layout for phone display size.
Optional 41.0
optionalFields String[] A collection of optional field names. If a field is accessible to the context user, it’s included in the response. If a field isn’t accessible to the context user, it isn’t included in the response, but it doesn’t cause an error.

Specify names in the format ObjectApiName.FieldName. You can get any field that has a named relationship to this record. There’s no limit to the number of fields you can specify.

Optional 41.0
recordTypeId Id The ID of the record type (RecordType object) for the new record. If not provided, the default record type is used. Optional 41.0
Response Body [Record Defaults](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_defaults.htm#ui_api_responses_record_defaults "The default information and data needed to create or clone a record. Use these values in a request to POST /ui-api/records.") #### See Also - [User Interface API Quick Start](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_quick_start_postman.htm "Use the Postman desktop app or web-based UI to easily explore and test the UI API and other Salesforce APIs against your orgs.") # Get Default Values to Clone a Record—Lightweight Get the default values for fields for cloning a record. You must specify the fields you want returned. This resource doesn’t use or return layout information. After getting the default values, make a request to POST /ui-api/records to create the record. The response contains the default field values for the specified fields, optionally of the specified recordTypeId. The response also contains object metadata for fields specified in the request. For example, this request clones an Account record. It returns object metadata for Account and User, because the OwnerId field on the Account object contains a reference to the User object. GET /ui-api/record-defaults/template/clone/001d000000AtfRIAAZ?optionalFields=Account.OwnerId Resource /ui-api/record-defaults/template/clone/{recordId} ![Note](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/images/icon_note.png) #### Note To get default values based on a layout, use the [/ui-api/record-defaults/clone/{recordId}](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_record_defaults_clone.htm "Get the default layout information, object information, and data for cloning a record. After getting the default values, make a request to POST /ui-api/records to create the record.") resource. Available Version 49.0 HTTP Method GET Request Parameters
Parameter Name Type Description Required or Optional Available Version
optionalFields String[] A collection of optional field names. If a field is accessible to the context user, it’s included in the response. If a field isn’t accessible to the context user, it isn’t included in the response, but it doesn’t cause an error.

Specify names in the format ObjectApiName.FieldName. You can get any field that has a named relationship to this record. There’s no limit to the number of fields you can specify.

If you don’t pass any fields, the response includes only the ID of the cloned record in a field called CloneSourceId.

Optional 49.0
recordTypeId Id The ID of the record type (RecordType object) for the new record. If not provided, the default record type is used. Optional 49.0
Response Body [Record Defaults Template Clone](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_defaults_template_clone.htm "A record template containing the default information and data needed to clone a record. Use these values in a request to POST /ui-api/records.") # Get Default Values to Create a Record Get the default values for fields for a new record of a specified object and optional record type. After getting the default values, make a request to POST /ui-api/records to create the record. The response contains the default field values for the Full layout type for a new record of the object type specified in {objectApiName}. It also contains the corresponding layout for create mode. In the Salesforce user interface, an admin with “Customize Application” permission can mark a field as required in a layout. When you’re building UI, to determine which fields to mark as required in a layout for create mode, use the [RecordLayoutItem.required](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_layout_item.htm "An item in a record layout.") property. The response contains object metadata for the object specified in {objectApiName} and for any nested objects. For example, this request returns object metadata for Account and User, because the OwnerId field on the Account object contains a reference to the User object. /ui-api/record-defaults/create/Account Resource /ui-api/record-defaults/create/{objectApiName} - objectApiName—The API name of the object type for the new record. ![Note](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/images/icon_note.png) #### Note To get default values with a more lightweight response, use the [/ui-api/record-defaults/template/create/{objectApiName}](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_record_defaults_template_create.htm "Get the default values for fields for a new record of a specified object and optional record type. You must specify the fields you want returned. This resource doesn’t use or return layout information. After getting the default values, make a request to POST /ui-api/records to create the record.") resource. Available Version 41.0 HTTP Method GET Request Parameters
Parameter Name Type Description Required or Optional Available Version
formFactor String The layout display size for the record. One of these values:
  • Large—(Default) Use this value to get a layout for desktop display size.
  • Medium—Use this value to get a layout for tablet display size.
  • Small—Use this value to get a layout for phone display size.
Optional 41.0
optionalFields String[] A collection of optional field names. If a field is accessible to the context user, it’s included in the response. If a field isn’t accessible to the context user, it isn’t included in the response, but it doesn’t cause an error.

Specify names in the format ObjectApiName.FieldName. You can get any field that has a named relationship to this record. There’s no limit to the number of fields you can specify.

Optional 41.0
recordTypeId Id The ID of the record type (RecordType object) for the new record. If not provided, the default record type is used. Optional 41.0
Response Body [Record Defaults](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_defaults.htm#ui_api_responses_record_defaults "The default information and data needed to create or clone a record. Use these values in a request to POST /ui-api/records.") #### See Also - [User Interface API Quick Start](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_quick_start_postman.htm "Use the Postman desktop app or web-based UI to easily explore and test the UI API and other Salesforce APIs against your orgs.") # Get Default Values to Create a Record—Lightweight Get the default values for fields for a new record of a specified object and optional record type. You must specify the fields you want returned. This resource doesn’t use or return layout information. After getting the default values, make a request to POST /ui-api/records to create the record. The response contains object metadata for specified fields. For example, this request returns object metadata for Account and User, because the OwnerId field on the Account object contains a reference to the User object. GET /ui-api/record-defaults/template/create/Account?optionalFields=Account.OwnerId Resource /ui-api/record-defaults/template/create/{objectApiName} ![Note](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/images/icon_note.png) #### Note To get default values based on a layout, use the [/ui-api/record-defaults/create/{objectApiName}](# "Get the default values for fields for a new record of a specified object and optional record type. You must specify the fields you want returned. This resource doesn’t use or return layout information. After getting the default values, make a request to POST /ui-api/records to create the record.") resource. - objectApiName—The API name of the object type for the new record. Available Version 49.0 HTTP Method GET Request Parameters
Parameter Name Type Description Required or Optional Available Version
optionalFields String[] A collection of optional field names. If a field is accessible to the context user, it’s included in the response. If a field isn’t accessible to the context user, it isn’t included in the response, but it doesn’t cause an error.

Specify names in the format ObjectApiName.FieldName. You can get any field that has a named relationship to this record. There’s no limit to the number of fields you can specify.

If you don’t pass any fields, the response doesn’t include any fields.

Optional 49.0
recordTypeId Id The ID of the record type (RecordType object) for the new record. If not provided, the default record type is used. Optional 49.0
Response Body [Record Defaults Template Create](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_defaults_template_create.htm "A record template containing the default information and data needed to create a record. Use these values in a request to POST /ui-api/records.") # Get Duplicate Management Configuration for a Specified Object Learn whether duplicate management is configured for the specified object. If duplicate management is configured, learn about the object's duplicate rules and matching rules. Use the information in the response to know when to check for duplicate records. Resource /ui-api/duplicates/{objectApiName} objectApiName—The API name of a [supported object](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_get_started_supported_objects.htm#ui_api_get_started_supported_objects "User Interface API supports all custom objects and external objects and many standard objects."). Available Version 50.0 HTTP Method GET Example Use the following request to learn what duplicate management is configured for the custom object Movie. /ui-api/duplicates/Movie\_\_c The response tells you that duplicate management is configured, and that the fields Name and Year are used to check for duplicates. // duplicate rules and matching rules are configured for Movie dedupeEnabled: true // these fields are used to check for duplicate records dedupeFields 0: Name 1: Year\_\_c ... From the preceding response, you know to check the Name and Year fields when adding or updating a Movie record. For example, you can check if a movie with the name "Aliens" and the release year "1986" already exists. ui-api/predupe{ "apiName" : "Movie\_\_c", "fields" : {"Name": "Aliens", "Year\_\_c": "1986" } Request Parameters | Parameter Name | Type | Description | Required or Optional | Available Version | | --- | --- | --- | --- | --- | | recordTypeId | String | The record type ID (RecordType object) used to return the correct duplicate configuration. This field is optional, except for the Person Account object. If you’re searching for duplicate Person Account records, you must specify the Person Account record type ID here. | Optional | 52.0 | Response Body [Duplicates Configuration](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_duplicates_configuration.htm "Contains information about duplicate management configuration for an object. Learn whether duplicate management is configured, which fields are used to determine whether duplicate records exist, and which duplicate rules are active.") #### See Also - [Check for Duplicate Records](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_predupe_create.htm "Before updating or creating a record, you can check whether a duplicate record exists. Use the response to learn whether to block or allow the action, and whether to warn the user.") # Get Favorites Get all of a user’s favorites. Resource /ui-api/favorites Available Version 41.0 HTTP Method GET Response Body [Favorite Collection](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_favorite_collection.htm#ui_api_responses_favorite_collection "A list of favorites.") # Get Global Actions Get the actions in the Global Actions menu. Resource /ui-api/actions/global Available Version 41.0 HTTP Method GET Example As an example, let’s say we have a **New Opportunity** global action, among other actions. To get information about global actions, make this request: GET /services/data/v68.0/ui-api/actions/global The request returns a list of global actions, including **New Opportunity**, and the URLs of the request and subrequests. { "actions" : { "001R0000003IDlwIAG" : { "actionListContext" : "Global", "actionTarget" : "/services/data/v41.0/quickActions/NewOpportunity/describe", "actionTargetType" : "Describe", "apiName" : "NewOpportunity", "externalId" : "00DR00000008n7M:Global::Global:Phone:09DR00000000Snl", "iconUrl" : "https://yourInstance.salesforce.com/img/icon/t4v35/action/new\_opportunity\_120.png", "id" : "0JVR00000000030OAA", "isMassAction" : "false", "label" : "New Opportunity", "primaryColor" : "FCB95B", "relatedListRecordId" : null, "relatedSourceObject" : null, "section" : "Page", "sourceObject" : "Global", "subtype" : "Create", "targetObject" : "Opportunity", "targetUrl" : null, "type" : "QuickAction" } ... Additional actions removed for brevity ... \], "links" : \[ \], "url" : "/services/data/v41.0/ui-api/actions/global" } }, "url" : "/services/data/v41.0/ui-api/actions/global" } Request Parameters
Parameter Name Type Description Required or Optional Available Version
actionTypes String[]

The action type. One or more of these values:

  • CustomButton—A button that opens a URL or Visualforce page or executes JavaScript.
  • ProductivityAction—A pre-defined Salesforce action, attached to a limited set of objects.
  • QuickAction—A global or object-specific action.
  • StandardButton—A pre-defined Salesforce button, such as New, Edit, and Delete.
Optional 41.0
apiNames String[] The API names of one or more actions to be retrieved. Use this parameter only when passing retrievalMode=All. Optional 49.0
formFactor String The layout display size. One of these values:
  • Large—(Default) Use this value to get a layout for desktop display size.
  • Medium—Use this value to get a layout for tablet display size.
  • Small—Use this value to get a layout for phone display size.
Optional 41.0
retrievalMode String When the action context is Record, this parameter indicates which actions to retrieve from the record page. One of these values:
  • All—Retrieves all actions specified in the apiNames parameter.
  • PageLayout—(Default) Retrieves actions from the page layout.
Optional 49.0
sections String[] The section of the user interface that the actions reside in. One or more of these values:
  • ActivityComposer
  • CollaborateComposer
  • Page
  • SingleActionLinks
Optional 41.0
Response Body [Action](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_action.htm#ui_api_responses_action "The actions for a single record or a collection of records.") # Get Last Selected App Retrieves the app the current user last selected or the app the user sees by default. Resource /ui-api/apps/selected Available Version 43.0 HTTP Method GET Example To get metadata for the last selected app, make this request: GET /services/data/v68.0/ui-api/apps/selected?formFactor=Large The request returns metadata for the app and its associated navigation items. Request Parameters
Parameter Name Type Description Required or Optional Available Version
formFactor String The form factor for each app that the user has access to.
  • Large—App supports the desktop display size.
  • Medium—App supports the tablet display size.
  • Small—App supports the phone display size.
Required 43.0
userCustomizations Boolean If true, gets custom and standard navigation tabs. If false, gets only standard navigation tabs. Optional 43.0
Response Body [App](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_app.htm "The metadata for a single app.") # Get Lightning Page Actions Get the actions on Lightning pages (FlexiPages). Resource /ui-api/actions/flexipage/${flexipageNames} flexipageNames—A Lightning page name, or a comma-delimited list of Lightning page names. Available Version 41.0 HTTP Method GET Example As an example, let’s say we have a Lightning page named MyNewLightningPage. The page has quick actions for logging a call and creating an account. To get information about all the actions on this page, make this request: GET /services/data/v68.0/ui-api/actions/flexipage/MyNewLightningPage The request returns a list of actions on the Lightning page and the URLs of the request and subrequests. { "actions" : { "MyNewLightningPage" : { "actions" : \[ { "actionListContext" : "Flexipage", "actionTarget" : "/services/data/v41.0/quickActions/LogACall/describe", "actionTargetType" : "Describe", "apiName" : "LogACall", "externalId" : "00DR00000008n7M:MyNewLightningPage::Flexipage:Desktop:09DR00000000Snt", "iconUrl" : "https://yourInstance.salesforce.com/img/icon/t4v35/action/log\_a\_call\_120.png", "id" : "0JVR00000000009OAA", "isMassAction" : "false", "label" : "Log a Call", "primaryColor" : "48C3CC", "relatedListRecordId" : null, "relatedSourceObject" : null, "section" : null, "sourceObject" : "MyNewLightningPage", "subtype" : "LogACall", "targetObject" : "Task", "targetUrl" : null, "type" : "QuickAction" }, { "actionListContext" : "Flexipage", "actionTarget" : "/services/data/v41.0/quickActions/NewAccount/describe", "actionTargetType" : "Describe", "apiName" : "NewAccount", "externalId" : "00DR00000008n7M:MyNewLightningPage::Flexipage:Desktop:09DR00000000Sni", "iconUrl" : "https://yourInstance.salesforce.com/img/icon/t4v35/action/new\_account\_120.png", "id" : "0JVR00000000010OAA", "isMassAction" : "false", "label" : "New Account", "primaryColor" : "7F8DE1", "relatedListRecordId" : null, "relatedSourceObject" : null, "section" : null, "sourceObject" : "MyNewLightningPage", "subtype" : "Create", "targetObject" : "Account", "targetUrl" : null, "type" : "QuickAction" } \], "links" : \[ \], "url" : "/services/data/v41.0/ui-api/actions/flexipage/MyNewLightningPage" } }, "url" : "/services/data/v41.0/ui-api/actions/flexipage/MyNewLightningPage" } Request Parameters
Parameter Name Type Description Required or Optional Available Version
actionTypes String[]

The action type. One or more of these values:

  • CustomButton—A button that opens a URL or Visualforce page or executes JavaScript.
  • ProductivityAction—A pre-defined Salesforce action, attached to a limited set of objects.
  • QuickAction—A global or object-specific action.
  • StandardButton—A pre-defined Salesforce button, such as New, Edit, and Delete.
Optional 41.0
apiNames String[] The API names of one or more actions to be retrieved. Use this parameter only when passing retrievalMode=All. Optional 49.0
formFactor String The layout display size. One of these values:
  • Large—(Default) Use this value to get a layout for desktop display size.
  • Medium—Use this value to get a layout for tablet display size.
  • Small—Use this value to get a layout for phone display size.
Optional 41.0
retrievalMode String When the action context is Record, this parameter indicates which actions to retrieve from the record page. One of these values:
  • All—Retrieves all actions specified in the apiNames parameter.
  • PageLayout—(Default) Retrieves actions from the page layout.
Optional 49.0
sections String[] The section of the user interface that the actions reside in. One or more of these values:
  • ActivityComposer
  • CollaborateComposer
  • Page
  • SingleActionLinks
Optional 41.0
Response Body [Action](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_action.htm#ui_api_responses_action "The actions for a single record or a collection of records.") # Get List View Chart Actions Get the chart actions on list views. Resource /ui-api/actions/list-view-chart/${objectApiName} ![Note](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/images/icon_note.png) #### Note Currently, only ListViewChartInstance is valid for ${objectApiName}. Available Version 41.0 HTTP Method GET Example This example gets the chart actions on a list view. GET /services/data/v68.0/ui-api/actions/list-view-chart/ListViewChartInstance The request returns a list of chart actions on the list view and the URLs of the request and subrequests. Request Parameters
Parameter Name Type Description Required or Optional Available Version
actionTypes String[]

The action type. One or more of these values:

  • CustomButton—A button that opens a URL or Visualforce page or executes JavaScript.
  • ProductivityAction—A pre-defined Salesforce action, attached to a limited set of objects.
  • QuickAction—A global or object-specific action.
  • StandardButton—A pre-defined Salesforce button, such as New, Edit, and Delete.
Optional 41.0
apiNames String[] The API names of one or more actions to be retrieved. Use this parameter only when passing retrievalMode=All. Optional 49.0
formFactor String The layout display size. One of these values:
  • Large—(Default) Use this value to get a layout for desktop display size.
  • Medium—Use this value to get a layout for tablet display size.
  • Small—Use this value to get a layout for phone display size.
Optional 41.0
retrievalMode String When the action context is Record, this parameter indicates which actions to retrieve from the record page. One of these values:
  • All—Retrieves all actions specified in the apiNames parameter.
  • PageLayout—(Default) Retrieves actions from the page layout.
Optional 49.0
sections String[] The section of the user interface that the actions reside in. One or more of these values:
  • ActivityComposer
  • CollaborateComposer
  • Page
  • SingleActionLinks
Optional 41.0
Response Body [Action](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_action.htm "The actions for a single record or a collection of records.") # Get List View Header Actions Get the header actions on list views. Resource /ui-api/actions/list-view/${listViewIds} listViewIds—A single list view ID, or a comma-delimited list of list view IDs. Available Version 41.0 HTTP Method GET Example As an example, let’s say we have an Accounts list view with an ID of 00BR0000000WYY9MAO. This list view has Sort and New header actions, among other actions. To get information about the header actions on this list view, make this request: GET /services/data/v68.0ui-api/actions/list-view/00BR0000000WYY9MAO The request returns a list of header actions on the list view and the URLs of the request and subrequests. Request Parameters
Parameter Name Type Description Required or Optional Available Version
actionTypes String[]

The action type. One or more of these values:

  • CustomButton—A button that opens a URL or Visualforce page or executes JavaScript.
  • ProductivityAction—A pre-defined Salesforce action, attached to a limited set of objects.
  • QuickAction—A global or object-specific action.
  • StandardButton—A pre-defined Salesforce button, such as New, Edit, and Delete.
Optional 41.0
apiNames String[] The API names of one or more actions to be retrieved. Use this parameter only when passing retrievalMode=All. Optional 49.0
formFactor String The layout display size. One of these values:
  • Large—(Default) Use this value to get a layout for desktop display size.
  • Medium—Use this value to get a layout for tablet display size.
  • Small—Use this value to get a layout for phone display size.
Optional 41.0
retrievalMode String When the action context is Record, this parameter indicates which actions to retrieve from the record page. One of these values:
  • All—Retrieves all actions specified in the apiNames parameter.
  • PageLayout—(Default) Retrieves actions from the page layout.
Optional 49.0
sections String[] The section of the user interface that the actions reside in. One or more of these values:
  • ActivityComposer
  • CollaborateComposer
  • Page
  • SingleActionLinks
Optional 41.0
Response Body [Action](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_action.htm "The actions for a single record or a collection of records.") # Get List View Metadata Get list view metadata. Resource /ui-api/list-info/${listViewId} /ui-api/list-info/${objectApiName}/${listViewApiName} - listViewId—The ID of a list view, such as 00BR0000000Wc0rMAC. - objectApiName—A [supported](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_get_started_supported_objects.htm#ui_api_get_started_supported_objects "User Interface API supports all custom objects and external objects and many standard objects.") object, such as Account. - listViewApiName—The API name of a list view, such as AllAccounts, \_\_Recent, or \_\_SearchResult. Available Version 42.0 HTTP Method GET Example As an example, let’s say we have a list view named All Accounts with a list view ID of 00BR0000000Wc0rMAC. To get information about the metadata for this list view, make this request: GET /services/data/v68.0/ui-api/list-info/00BR0000000Wc0rMAC You can also use the object API name and list view API name of the list view to make the same request: GET /services/data/v68.0/ui-api/list-info/Account/AllAccounts To get the most recently used (MRU) list view metadata for accounts, use the special \_\_Recent list view API name. GET /services/data/v68.0/ui-api/list-info/Account/\_\_Recent To get the search layout list view metadata for accounts, use the special \_\_SearchResult list view API name. GET /services/data/v68.0/ui-api/list-info/Account/\_\_SearchResult Response Body [List Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_metadata.htm "Metadata that describes a list.") # Get List View Preferences Get list view preferences. Resource /ui-api/list-preferences/${objectApiName}/${listViewApiName} - objectApiName—A [supported](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_get_started_supported_objects.htm#ui_api_get_started_supported_objects "User Interface API supports all custom objects and external objects and many standard objects.") object, such as Account. - listViewApiName—The API name of a list view, such as AllAccounts. Available version 61.0 HTTP methods GET Example This example gets list preferences for the All Accounts list view. GET /services/data/v68.0/ui-api/list-preferences/Account/AllAccounts Response body for GET [List Preferences](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_preferences.htm "List preferences.") # Get List View Record Actions Get the record actions on list views. Resource /ui-api/actions/list-view-record/${recordIds} recordIds—A single record ID, or a comma-delimited list of record IDs. Available Version 41.0 HTTP Method GET Example As an example, let’s say we have an Account lists view containing several Account records. Each Account record has an Edit and Delete record action. In Lightning, these actions display in a drop-down list for each record. To get information about the actions on a particular record with an ID of 001R0000003IDlwIAG, make this request: GET /services/data/v68.0/ui-api/actions/list-view-record/001R0000003IDlwIAG The request returns a list of the record actions for the record and the URLs of the request and subrequests. Request Parameters
Parameter Name Type Description Required or Optional Available Version
actionTypes String[]

The action type. One or more of these values:

  • CustomButton—A button that opens a URL or Visualforce page or executes JavaScript.
  • ProductivityAction—A pre-defined Salesforce action, attached to a limited set of objects.
  • QuickAction—A global or object-specific action.
  • StandardButton—A pre-defined Salesforce button, such as New, Edit, and Delete.
Optional 41.0
apiNames String[] The API names of one or more actions to be retrieved. Use this parameter only when passing retrievalMode=All. Optional 49.0
formFactor String The layout display size. One of these values:
  • Large—(Default) Use this value to get a layout for desktop display size.
  • Medium—Use this value to get a layout for tablet display size.
  • Small—Use this value to get a layout for phone display size.
Optional 41.0
retrievalMode String When the action context is Record, this parameter indicates which actions to retrieve from the record page. One of these values:
  • All—Retrieves all actions specified in the apiNames parameter.
  • PageLayout—(Default) Retrieves actions from the page layout.
Optional 49.0
sections String[] The section of the user interface that the actions reside in. One or more of these values:
  • ActivityComposer
  • CollaborateComposer
  • Page
  • SingleActionLinks
Optional 41.0
Response Body [Action](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_action.htm "The actions for a single record or a collection of records.") # Get List View Records and Metadata (Deprecated) Get record data and metadata for a list view. ![Note](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/images/icon_note.png) #### Note This resource is deprecated. To get list view records, use [Get List View Records with URL Parameters](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_list_views_records.htm "Get record data for a list view using URL parameters.") or [Get List View Records with a Request Body](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_list_view_records_post.htm "Get record data for a list view using a request body."). To get list view metadata, use [Get List View Metadata](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_list_views_md.htm "Get list view metadata."). Resources /ui-api/list-ui/${listViewId} /ui-api/list-ui/${objectApiName}/${listViewApiName} - listViewId—The ID of a list view, such as 00BR0000000Wc0rMAC. - objectApiName—A [supported](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_get_started_supported_objects.htm#ui_api_get_started_supported_objects "User Interface API supports all custom objects and external objects and many standard objects.") object, such as Account. - listViewApiName—The API name of a list view, such as AllAccounts or \_\_Recent. Available Version 42.0 HTTP Method GET Example As an example, let’s say we have a list view named All Accounts with a list view ID of 00BR0000000Wc0rMAC. To get information about all the records and metadata for this list view, make this request. /services/data/v68.0/ui-api/list-ui/00BR0000000Wc0rMAC You can also use the object API name and list view API name of the list view to make the same request. /services/data/v68.0/ui-api/list-ui/Account/AllAccounts The request returns a list of records and the metadata for the list view. Request Parameters
Parameter Name Type Description Required or Optional Available Version
fields String[] Additional fields queried for the records returned. These fields don’t create visible columns. If the field isn’t available to the user, an error occurs. Optional 42.0
optionalFields String[] Additional fields queried for the records returned. These fields don’t create visible columns. If the field isn’t available to the user, no error occurs and the field isn’t included in the records. Optional 42.0
pageSize Integer The number of list records viewed at one time. The default value is 50. Value can be 1–2000. Optional 42.0
pageToken String A token that represents the page offset. To indicate where the page starts, use this value with the pageSize parameter. The maximum offset is 2000 and the default is 0. Optional 42.0
searchTerm String Search term to filter the results. Wildcards are supported. Optional 61.0
sortBy String[] The API names of the fields the list view is sorted by. If the name is preceded with -, the sort order is descending. For example, Name sorts by name in ascending order. -CreatedDate sorts by created date in descending order.

In API version 63.0 and later, you can sort by up to five fields.

Optional 42.0
where String The filter applied to returned records, in GraphQL syntax. For example, { and: [ { StageName: { eq: "Prospecting" } }, { Account: { Name: { eq: "Dickenson plc" } } } ] } filters an Opportunity related list to show only opportunities in the Prospecting stage that are linked to the “Dickenson plc” account. Optional 61.0
Response Body [List UI](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_ui.htm "The record data and metadata for a list view.") # Get List View Records with a Request Body Get record data for a list view using a request body. Resource /ui-api/list-records/${objectApiName}/${listViewApiName} - objectApiName—A [supported](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_get_started_supported_objects.htm#ui_api_get_started_supported_objects "User Interface API supports all custom objects and external objects and many standard objects.") object, such as Account. - listViewApiName—The API name of a list view, such as AllAccounts. Available version 61.0 HTTP methods POST Example This example uses a request body to query a list view named All Accounts. POST /services/data/v68.0/ui-api/list-records/Account/AllAccounts { "fields": \["Name", "Type", "AnnualRevenue", "CreatedDate"\], "pageSize" : 10, "sortBy": \["CreatedDate"\], "searchTerm" : "United", "where": "{AnnualRevenue: { gt: 1000000}}" } This example uses the special \_\_Recent list view API name to get the record data for the most recently used (MRU) list view for accounts. POST /services/data/v68.0/ui-api/list-records/Account/\_\_Recent Request parameters for POST | Parameter Name | Type | Description | Required or Optional | Available Version | | --- | --- | --- | --- | --- | | listRecordsQuery | [List Records Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_list_records_input.htm "Record data to query for a list view.") | Record data to query for a list view. | Required | 61.0 | Response body for POST [List Record Collection](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_record_collection.htm "A collection of list view records.") # Get List View Records with URL Parameters Get record data for a list view using URL parameters. Resource /ui-api/list-records/${listViewId} /ui-api/list-records/${objectApiName}/${listViewApiName} - listViewId—The ID of a list view, such as 00BR0000000Wc0rMAC. - objectApiName—A [supported](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_get_started_supported_objects.htm#ui_api_get_started_supported_objects "User Interface API supports all custom objects and external objects and many standard objects.") object, such as Account. - listViewApiName—The API name of a list view, such as AllAccounts or \_\_Recent. Available Version 42.0 HTTP Method GET Example As an example, let’s say we have a list view named All Accounts with a list view ID of 00BR0000000Wc0rMAC. To get information about all the records on this list view, make this request. GET /services/data/v68.0/ui-api/list-records/00BR0000000Wc0rMAC You can also use the object API name and list view API name of the list view to make the same request. GET /services/data/v68.0/ui-api/list-records/Account/AllAccounts To get record data for the most recently used (MRU) list view for accounts, use the special \_\_Recent list view API name. GET /services/data/v68.0/ui-api/list-records/Account/\_\_Recent Request Parameters
Parameter Name Type Description Required or Optional Available Version
fields String[] Additional fields queried for the records returned. These fields don’t create visible columns. If the field isn’t available to the user, an error occurs. Optional 42.0
optionalFields String[] Additional fields queried for the records returned. These fields don’t create visible columns. If the field isn’t available to the user, no error occurs and the field isn’t included in the records. Optional 42.0
pageSize Integer The number of list records viewed at one time. The default value is 50. Value can be 1–2000. Optional 42.0
pageToken String A token that represents the page offset. To indicate where the page starts, use this value with the pageSize parameter. The maximum offset is 2000 and the default is 0. Optional 42.0
searchTerm String Search term to filter the results. Wildcards are supported. Optional 61.0
sortBy String[] The API names of the fields the list view is sorted by. If the name is preceded with -, the sort order is descending. For example, Name sorts by name in ascending order. -CreatedDate sorts by created date in descending order.

In API version 63.0 and later, you can sort by up to five fields.

Optional 42.0
where String The filter applied to returned records, in GraphQL syntax. For example, { and: [ { StageName: { eq: "Prospecting" } }, { Account: { Name: { eq: "Dickenson plc" } } } ] } filters an Opportunity related list to show only opportunities in the Prospecting stage that are linked to the “Dickenson plc” account. Optional 61.0
Response Body [List Record Collection](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_record_collection.htm "A collection of list view records.") # Get List Views for an Object Get list views associated with an object. Resource /ui-api/list-info/${objectApiName} - objectApiName—A [supported](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_get_started_supported_objects.htm#ui_api_get_started_supported_objects "User Interface API supports all custom objects and external objects and many standard objects.") object, such as Account. Available version 61.0 HTTP methods GET Example This example gets all the list views associated with accounts. GET /services/data/v68.0/ui-api/list-info/Account This example gets the most recently used list views associated with accounts using the recentListsOnly request parameter. GET /services/data/v68.0/ui-api/list-info/Account?recentListsOnly=true Request parameters for GET | Parameter Name | Type | Description | Required or Optional | Available Version | | --- | --- | --- | --- | --- | | pageSize | Integer | Number of list records viewed at one time. The default value is 20. Value can be 1–2000. | Optional | 61.0 | | pageToken | String | Token that represents the page offset. To indicate where the page starts, use this value with the pageSize parameter. The maximum offset is 2000 and the default is 0. | Optional | 61.0 | | q | String | Search term to filter the results. Wildcards are supported. | Optional | 61.0 | | recentListsOnly | Boolean | Indicates whether to get recent lists only (true) or not (false). Default is false. | Optional | 61.0 | Response body for GET [List Info Summary Collection](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_info_summary_collection.htm "List info summary collection.") # Get List Views for an Object (Deprecated) Get a collection of list views associated with an object. ![Note](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/images/icon_note.png) #### Note This resource is deprecated. To get list views for an object, use [Get List Views for an Object](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_lists_object_get.htm "Get list views associated with an object."). Resource /ui-api/list-ui/${objectApiName} - objectApiName—A [supported](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_get_started_supported_objects.htm#ui_api_get_started_supported_objects "User Interface API supports all custom objects and external objects and many standard objects.") object, such as Account. Available Version 43.0 HTTP Method GET Example To retrieve all list views associated with accounts, make this request: GET /services/data/v68.0/ui-api/list-ui/Account The request returns a list of all list views for the given object. Request Parameters | Parameter Name | Type | Description | Required or Optional | Available Version | | --- | --- | --- | --- | --- | | pageSize | Integer | The number of list records viewed at one time. The default value is 20. Value can be 1–2000. | Optional | 43.0 | | pageToken | String | A token that represents the page offset. To indicate where the page starts, use this value with the pageSize parameter. The maximum offset is 2000 and the default is 0. | Optional | 43.0 | | q | String | Query list views that contain certain key words. | Optional | 43.0 | | recentListsOnly | Boolean | Show only recently viewed lists. | Optional | 43.0 | Response Body [List View Summary Collection](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_view_summary_collection.htm#ui_api_responses_list_view_summary_collection "A collection of list views for a given object.") # Get Lookup Field Actions Get the actions on lookup fields. Resource /ui-api/actions/lookup/${objectApiNames} objectApiNames—A lookup field name, or a comma-delimited list of lookup field names. Available Version 41.0 HTTP Method GET Example As an example, let’s say we have a lookup field on a New Account dialog box. To get information about the actions on this lookup field, make this request: GET /services/data/v68.0/ui-api/actions/lookup/Account The request returns a list of actions on the lookup field and the URLs of the request and subrequests. { "actions" : { "Account" : { "actions" : \[ { "actionListContext" : "Lookup", "actionTarget" : null, "actionTargetType" : "Invoke", "apiName" : "CreateFromLookup", "externalId" : "00DR00000008n7M:Account::Lookup:Phone:StandardButton:CreateFromLookup", "iconUrl" : "https://yourInstance.salesforce.com/img/icon/t4v35/action/new\_120.png", "id" : "0JVR00000000004OAA", "isMassAction" : "false", "label" : "New", "primaryColor" : "33BCE7", "relatedListRecordId" : null, "relatedSourceObject" : null, "section" : "Page", "sourceObject" : "Account", "subtype" : null, "targetObject" : "Account", "targetUrl" : null, "type" : "StandardButton" } \], "links" : \[ \], "url" : "/services/data/v41.0/ui-api/actions/lookup/Account" } }, "url" : "/services/data/v41.0/ui-api/actions/lookup/Account" } Request Parameters
Parameter Name Type Description Required or Optional Available Version
actionTypes String[]

The action type. One or more of these values:

  • CustomButton—A button that opens a URL or Visualforce page or executes JavaScript.
  • ProductivityAction—A pre-defined Salesforce action, attached to a limited set of objects.
  • QuickAction—A global or object-specific action.
  • StandardButton—A pre-defined Salesforce button, such as New, Edit, and Delete.
Optional 41.0
apiNames String[] The API names of one or more actions to be retrieved. Use this parameter only when passing retrievalMode=All. Optional 49.0
formFactor String The layout display size. One of these values:
  • Large—(Default) Use this value to get a layout for desktop display size.
  • Medium—Use this value to get a layout for tablet display size.
  • Small—Use this value to get a layout for phone display size.
Optional 41.0
retrievalMode String When the action context is Record, this parameter indicates which actions to retrieve from the record page. One of these values:
  • All—Retrieves all actions specified in the apiNames parameter.
  • PageLayout—(Default) Retrieves actions from the page layout.
Optional 49.0
sections String[] The section of the user interface that the actions reside in. One or more of these values:
  • ActivityComposer
  • CollaborateComposer
  • Page
  • SingleActionLinks
Optional 41.0
Response Body [Action](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_action.htm#ui_api_responses_action "The actions for a single record or a collection of records.") #### See Also - [Get Lookup Field Suggestions](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_lookup_get.htm "When a user edits a lookup field, use this resource to search for and display suggestions. You can search for most recently used matches, for matching names, or for any match in a searchable field. You can also specify lookup filter bindings for dependent lookups.") - [Get Lookup Field Suggestions for a Specified Object](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_lookup_object_get.htm "When a user edits a lookup field, use this resource to search for and display suggestions for a specified object. You can search for most recently used matches, for matching names, or for any match in a searchable field. You can also specify lookup filter bindings for dependent lookups.") # Get Lookup Field Suggestions When a user edits a lookup field, use this resource to search for and display suggestions. You can search for most recently used matches, for matching names, or for any match in a searchable field. You can also specify lookup filter bindings for dependent lookups. ![Note](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/images/icon_note.png) #### Note In version 60.0 and later, use the [POST method](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_lookup_post.htm "When a user edits a lookup field, use this resource to search for and display suggestions. You can search for most recently used matches, for matching names, or for any match in a searchable field. You must specify dependent lookup field values used by lookup filters in the `sourceRecord` request body parameter.") for lookup field suggestions. The POST method is a more secure way of transferring data where the parameters are sent in the message body. Resource /ui-api/lookups/{objectApiName}/{fieldApiName} - objectApiName—The API name of a source object. - fieldApiName—The API name of a lookup field on the source object. Available Version 41.0–62.0 HTTP Method GET Example: Get Most Recently Used Records A lookup relationship field links a source object to a target object. To edit a lookup field, users click a lookup icon to search for and select a value from a popup list. The target object provides the values in the list. For example, the Opportunity object has an AccountId lookup field. When a user edits an Opportunity record, the user selects an Account to associate with the Opportunity. To build a UI that suggests the most recently used Account records to the user, use this resource. The default value of the searchType parameter is Recent, so the request doesn’t specify it. GET /ui-api/lookups/Opportunity/AccountId Example: Search for Suggestions To search all searchable fields for suggestions, set searchType=Search. This example searches for strings that start with the characters ca (a wildcard is implied). GET /ui-api/lookups/Opportunity/AccountId?searchType=Search&q=ca Example: Search Record Names for Suggestions To search record name fields for suggestions, set searchType=TypeAhead. This example searches record names for strings that start with the characters ta (a wildcard is implied). GET /ui-api/lookups/Opportunity/AccountId?searchType=TypeAhead&q=ta Example: Search Dependent Lookups for Suggestions Some lookup fields have lookup filters that restrict their valid values by referencing fields on the source object. These fields are called dependent lookups. For example, you can filter the Case Contact field to show only contacts that are associated with the account selected in the Case Account Name field. In the Salesforce UI, this lookup filter is Contact Name: Account Name ID EQUALS Case: Account Name ID. In the User Interface API, lookup filter information appears in the filteredLookupInfo property of the [Object Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_object_info.htm#ui_api_responses_object_info "The metadata for an object.") response body, which is returned from several resources, including [/ui-api/record-ui/{recordIds}](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_record_ui.htm#ui_api_resources_record_ui "Get layout information, metadata, and data to build UI for a single record or for a collection of records."). If the filteredLookupInfo property is non-null, the field it describes is a dependent lookup. In this example, the Case object’s ContactId field has a filteredLookupInfo property containing a controllingFields property. The controlling field is AccountId. To restrict the lookup search, you must pass all controlling fields and their values to the lookups resource in the dependentFieldBindings parameter. **"objectInfos" : {** ... **"Case" : { ** "apiName" : "Case", ... **"fields" : {** ... **"ContactId" : {** "apiName" : "ContactId", ...properties removed for space... **"filteredLookupInfo" : { "controllingFields" : \[ "AccountId" \],** "dependent" : true, "optionalFilter" : false }, ... "sortable" : true, "unique" : false, "updateable" : true }, ... To get the value for AccountId, look in the [Record](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record.htm#ui_api_responses_record "The field data, API name, child relationship data, and record type information for a record.") response body, which is returned from several resources, including [/ui-api/record-ui/{recordIds}](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_record_ui.htm#ui_api_resources_record_ui "Get layout information, metadata, and data to build UI for a single record or for a collection of records."). **"records" : {** "500R0000000bKpBIAU" : { **"apiName" : "Case",** "childRelationships" : { }, "fields" : { ...Some properties removed for space... **"AccountId" : { ** "displayValue" : null, **"value" : "001R0000003IG0MIAW" ** }, "CaseNumber" : { "displayValue" : null, "value" : "00001005" }, ... To filter the suggestions for a dependent lookup, specify the names and values of the controlling fields in the dependentFieldBindings query parameter. (This example has one controlling field). /ui-api/lookups/case/ContactId?dependentFieldBindings=AccountId=001R0000003IG0MIAW Request Parameters
Parameter Name Type Description Required or Optional Available Version
targetApiName String[] The API name of the object that you want results for. The name must correspond to one of the target objects of the lookup field. If not provided, by default, results for all target objects of the lookup field are returned. If targetApiName isn’t specified, then the field configuration is used. If the field is polymorphic, several queries are considered and you receive results for every target that can lead to performance issues. Optional 59.0
dependent​FieldBindings String[] The dependent field bindings for dependent lookups. These field bindings represent the lookup filter that restricts the valid values for the field.

Specify field bindings in a comma-separated list in the format dependentFieldBindings={fieldApiName}​={fieldValue},{field2ApiName}={field2Value}.

To know whether a field is a dependent lookup, check the Object Info response body for a non-null filteredLookupInfo property. Specify the name and a value for each field in the controllingFields property. Get the field values from the Record response body. Both responses are returned from the /ui-api/record-ui/{recordIds} resource.

Optional 41.0
page Integer The page number. The default value is 1. Optional 41.0
pageSize Integer The number of items per page. The default value is 25. Optional 41.0
q String The term the user is searching for.

When searchType=Search, specify at least 2 characters. A wildcard at the end of the search term is implied. For example, q=ca returns Cat and Cats.

When searchType=TypeAhead, specify at least 3 characters. A wildcard at the end of the search term is implied. You can’t use a ?.

Required if searchType is TypeAhead. 41.0
searchType String The type of search to perform. One of these values:
  • Recent—Return most recently used matches.
  • Search—Search for records with searchable fields that match the query term.
  • TypeAhead—Search for records whose names start with the query term.

The default value is Recent.

Optional 41.0
Response Body [Lookup Values](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_lookup_values.htm#ui_api_responses_lookup_values "Records, organized by object type, and metadata in a lookup relationship.") # Get Lookup Field Suggestions for a Specified Object When a user edits a lookup field, use this resource to search for and display suggestions for a specified object. You can search for most recently used matches, for matching names, or for any match in a searchable field. You can also specify lookup filter bindings for dependent lookups. ![Note](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/images/icon_note.png) #### Note In version 60.0 and later, use the [POST method](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_lookup_post.htm "When a user edits a lookup field, use this resource to search for and display suggestions. You can search for most recently used matches, for matching names, or for any match in a searchable field. You must specify dependent lookup field values used by lookup filters in the `sourceRecord` request body parameter.") for lookup field suggestions. The POST method is a more secure way of transferring data where the parameters are sent in the message body. Resource /ui-api/lookups/{objectApiName}/{fieldApiName}/{targetApiName} - objectApiName—The API name of a source object. - fieldApiName—The API name of a lookup field on the source object. - targetApiName—The API name of the target (lookup) object. Available Version 41.0–62.0 HTTP Method GET Example See [Get Lookup Field Suggestions](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_lookup_get.htm#ui_api_resources_lookup_get "When a user edits a lookup field, use this resource to search for and display suggestions. You can search for most recently used matches, for matching names, or for any match in a searchable field. You can also specify lookup filter bindings for dependent lookups."). Request Parameters
Parameter Name Type Description Required or Optional Available Version
dependent​FieldBindings String[] The dependent field bindings for dependent lookups. These field bindings represent the lookup filter that restricts the valid values for the field.

Specify field bindings in a comma-separated list in the format dependentFieldBindings={fieldApiName}​={fieldValue},{field2ApiName}={field2Value}.

To know whether a field is a dependent lookup, check the Object Info response body for a non-null filteredLookupInfo property. Specify the name and a value for each field in the controllingFields property. Get the field values from the Record response body. Both responses are returned from the /ui-api/record-ui/{recordIds} resource.

Optional 41.0
page Integer The page number. The default value is 1. Optional 41.0
pageSize Integer The number of items per page. The default value is 25. Optional 41.0
q String The term the user is searching for.

When searchType=Search, specify at least 2 characters. A wildcard at the end of the search term is implied. For example, q=ca returns Cat and Cats.

When searchType=TypeAhead, specify at least 3 characters. A wildcard at the end of the search term is implied. You can’t use a ?.

Required if searchType is TypeAhead. 41.0
searchType String The type of search to perform. One of these values:
  • Recent—Return most recently used matches.
  • Search—Search for records with searchable fields that match the query term.
  • TypeAhead—Search for records whose names start with the query term.

The default value is Recent.

Optional 41.0
Response Body [Record Collection](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_collection.htm#ui_api_responses_record_collection "A paginated collection of Record response bodies.") # Get Lookup Field Suggestions With POST When a user edits a lookup field, use this resource to search for and display suggestions. You can search for most recently used matches, for matching names, or for any match in a searchable field. You must specify dependent lookup field values used by lookup filters in the \`sourceRecord\` request body parameter. Resource /ui-api/lookups/{objectApiName}/{fieldApiName} - objectApiName—The API name of a source object. - fieldApiName—The API name of a lookup field on the source object. Available Version 60.0 HTTP Method POST Example: Get Most Recently Used Records A lookup relationship field links a source object to a target object. To edit a lookup field, users click on a lookup field to search for and select a value from a popup list. The target object provides the values in the list. For example, the Opportunity object has an AccountId lookup field. When a user edits an Opportunity record, the user selects an Account to associate with the Opportunity. To build a UI that suggests the most recently used Account records to the user, use this resource. The default value of the searchType parameter is Recent, so the request doesn’t specify it. POST /ui-api/lookups/Opportunity/AccountId Example: Search for Suggestions using request parameters To search all searchable fields for suggestions, set searchType=Search. This example searches for strings that start with the characters ca (a wildcard is implied). POST /ui-api/lookups/Opportunity/AccountId?searchType=Search&q=ca Example: Search Record Names for Suggestions using request parameters To search record name fields for suggestions, set searchType=TypeAhead. This example searches record names for strings that start with the characters ta (a wildcard is implied). POST /ui-api/lookups/Opportunity/AccountId?searchType=TypeAhead&q=ta Request Parameters for POST
Parameter Name Type Description Required or Optional Available Version
page Integer The page number. The default value is 1. Optional 60.0
pageSize Integer The number of items per page. The default value is 25. Optional 60.0
q String The term the user is searching for.

When searchType=Search, specify at least 2 characters. A wildcard at the end of the search term is implied. For example, q=ca returns Cat and Cats.

When searchType=TypeAhead, specify at least 3 characters. A wildcard at the end of the search term is implied. You can’t use a ?.

Required if searchType is TypeAhead. 60.0
searchType String The type of search to perform. One of these values:
  • Recent—Return most recently used matches.
  • Search—Search for records with searchable fields that match the query term.
  • TypeAhead—Search for records whose names start with the query term.

The default value is Recent.

Optional 60.0
targetApiName String[] The API name of the object that you want results for. The name must correspond to one of the target objects of the lookup field. If not provided, by default, results for all target objects of the lookup field are returned. If targetApiName isn’t specified, then the field configuration is used. If the field is polymorphic, several queries are considered and you receive results for every target that can lead to performance issues. Optional 60.0
Request Body for POST Example: Search Dependent Lookups for Suggestions using the request body Some lookup fields have lookup filters that restrict their valid values by referencing fields on the source object. These fields are called dependent lookups. For example, you can filter the Case Contact field to show only contacts that are associated with the account selected in the Case Account Name field. In the Salesforce UI, this lookup filter is Contact Name: Account Name ID EQUALS Case: Account Name ID. In the User Interface API, lookup filter information appears in the filteredLookupInfo property of the [Object Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_object_info.htm#ui_api_responses_object_info "The metadata for an object.") response body, which is returned from several resources, including [/ui-api/record-ui/{recordIds}](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_record_ui.htm#ui_api_resources_record_ui "Get layout information, metadata, and data to build UI for a single record or for a collection of records."). If the filteredLookupInfo property is non-null, the field it describes is a dependent lookup. In this example, the Case object’s ContactId field has a filteredLookupInfo property containing a controllingFields property. The controlling field is AccountId. To restrict the lookup search, you must pass all controlling fields and their values to the lookups resource in the sourceRecord request body property. **"objectInfos" : {** ... **"Case" : { ** "apiName" : "Case", ... **"fields" : {** ... **"ContactId" : {** "apiName" : "ContactId", ...properties removed for space... **"filteredLookupInfo" : { "controllingFields" : \[ "AccountId" \],** "dependent" : true, "optionalFilter" : false }, ... "sortable" : true, "unique" : false, "updateable" : true }, ... To get the value for AccountId, look in the [Record](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record.htm#ui_api_responses_record "The field data, API name, child relationship data, and record type information for a record.") response body, which is returned from several resources, including [/ui-api/record-ui/{recordIds}](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_record_ui.htm#ui_api_resources_record_ui "Get layout information, metadata, and data to build UI for a single record or for a collection of records."). For example, to retrieve the value of the AccountId field present on the Case 500R0000000bKpBIAU: GET /ui-api/records/500R0000000bKpBIAU?fields=Case.AccountId { "apiName": "Case", "id": "500Z7000000bhdFIAQ", "fields": { "AccountId": { "displayValue": null, "value": "001R0000003IG0MIAW" } }, ...Some properties removed for space... } To filter the suggestions for a dependent lookup, specify the names and values of the controlling fields in the sourceRecord request body property. (This example has one controlling field). Request body: POST /ui-api/lookups/case/ContactId { "sourceRecord": { "fields": { "Id": "500Z7000000bhdFIAQ", "AccountId": "001R0000003IG0MIAW" } }, "orderBy": \[ { "fieldApiName": "Name", "isAscending":true } \] } Properties
Name Type Description Required or Optional Available Version
orderBy List Order By Input[] Information describing how to order the results. Optional 63.0
sourceRecord Record Input The source record in which the lookup relationship field is being edited.

The presence of the source record “Id” is required within the “fields” property. Accepted values are “null” when creating a new record and a valid record ID when updating an existing record.

Some lookup fields have lookup filters that restrict the values they can accept by referencing fields on the source object. These fields are called dependent lookup fields or controlling fields. You must pass all controlling fields and their values to the lookups resource within the “fields” property.

To know whether a field is a lookup controlling field, check the Object Info response body for a non-null filteredLookupInfo property. Get the field values from the Record response body. Both responses are returned from the /ui-api/record-ui/{recordIds} resource.

Properties “allowSaveOnDuplicate” and “apiName” are not used.
Required 60.0
Response Body [Lookup Values](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_lookup_values.htm#ui_api_responses_lookup_values "Records, organized by object type, and metadata in a lookup relationship.") #### See Also - [Get Lookup Field Suggestions](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_lookup_get.htm "When a user edits a lookup field, use this resource to search for and display suggestions. You can search for most recently used matches, for matching names, or for any match in a searchable field. You can also specify lookup filter bindings for dependent lookups.") - [Get Lookup Field Suggestions for a Specified Object](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_lookup_object_get.htm "When a user edits a lookup field, use this resource to search for and display suggestions for a specified object. You can search for most recently used matches, for matching names, or for any match in a searchable field. You can also specify lookup filter bindings for dependent lookups.") # Get Metadata for a List View Object Get metadata for a list view object. Resource /ui-api/list-object-info/${objectApiName} - objectApiName—A [supported](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_get_started_supported_objects.htm#ui_api_get_started_supported_objects "User Interface API supports all custom objects and external objects and many standard objects.") object, such as Account. Available version 61.0 HTTP methods GET Example Get metadata for a list object, such as account. GET /services/data/v68.0/ui-api/list-object-info/Account Response body for GET [List Object Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_object_info.htm "List object info.") # Get Most Recently Used List View Metadata (Deprecated) Get metadata for an object’s most recently viewed (MRU) list view. ![Note](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/images/icon_note.png) #### Note This resource is deprecated. To get most recently used list view metadata for an object, use [Get List View Metadata](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_list_views_md.htm "Get list view metadata."). Resource /ui-api/mru-list-info/${objectApiName} - objectApiName—A [supported](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_get_started_supported_objects.htm#ui_api_get_started_supported_objects "User Interface API supports all custom objects and external objects and many standard objects.") object, such as Account. Available Version 43.0 HTTP Method GET Example This example gets information about the metadata for the most recently used account list view. GET /services/data/v68.0/ui-api/mru-list-info/Account Response Body [List Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_metadata.htm "Metadata that describes a list.") # Get Most Recently Used List View Records (Deprecated) Get record data for an object’s most recently used (MRU) list view. ![Note](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/images/icon_note.png) #### Note This resource is deprecated. To get most recently used list view records, use [Get List View Records with URL Parameters](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_list_views_records.htm "Get record data for a list view using URL parameters.") or [Get List View Records with a Request Body](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_list_view_records_post.htm "Get record data for a list view using a request body."). Resource /ui-api/mru-list-records/${objectApiName} - objectApiName—A [supported](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_get_started_supported_objects.htm#ui_api_get_started_supported_objects "User Interface API supports all custom objects and external objects and many standard objects.") object, such as Account. Available Version 43.0 HTTP Method GET Example To get information about the records in the most recently used account list views, make this request: GET /services/data/v68.0/ui-api/mru-list-records/Account The request returns a list of records in the most recently used account list view. Request Parameters | Parameter Name | Type | Description | Required or Optional | Available Version | | --- | --- | --- | --- | --- | | fields | String\[\] | Additional fields queried for the records returned. These fields don’t create visible columns. If the field is not available to the user, an error occurs. | Optional | 43.0 | | optionalFields | String\[\] | Additional fields queried for the records returned. These fields don’t create visible columns. If the field is not available to the user, no error occurs and the field isn’t included in the records. | Optional | 43.0 | | pageSize | Integer | The number of list records viewed at one time. The default value is 50. Value can be 1–2000. | Optional | 43.0 | | pageToken | String | A token that represents the page offset. To indicate where the page starts, use this value with the pageSize parameter. The maximum offset is 2000 and the default is 0. | Optional | 43.0 | | sortBy | String\[\] | The API name of the field the list view is sorted by. If the name is preceded with “-”, the sort order is descending. For example, "Name" sorts by name in ascending order. "-CreatedDate" sorts by created date in descending order. | Optional | 43.0 | Response Body [List Record Collection](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_record_collection.htm "A collection of list view records.") # Get Most Recently Used List View Records and Metadata (Deprecated) Get record data and metadata for an object’s most recently used (MRU) list view. ![Note](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/images/icon_note.png) #### Note This resource is deprecated. To get most recently used list view records, use [Get List View Records with URL Parameters](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_list_views_records.htm "Get record data for a list view using URL parameters.") or [Get List View Records with a Request Body](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_list_view_records_post.htm "Get record data for a list view using a request body."). To get most recently used list view metadata, use [Get List View Metadata](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_list_views_md.htm "Get list view metadata."). Resource /ui-api/mru-list-ui/${objectApiName} - objectApiName—A [supported](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_get_started_supported_objects.htm#ui_api_get_started_supported_objects "User Interface API supports all custom objects and external objects and many standard objects.") object, such as Account. Available Version 43.0 HTTP Method GET Example To get information about the record data and metadata for the most recently used account list views, make this request. GET /services/data/v68.0/ui-api/mru-list-ui/Account The request returns the record data and metadata for the most recently used account list view. Request Parameters | Parameter Name | Type | Description | Required or Optional | Available Version | | --- | --- | --- | --- | --- | | fields | String\[\] | Additional fields queried for the records returned. These fields don’t create visible columns. If the field is not available to the user, an error occurs. | Optional | 43.0 | | optionalFields | String\[\] | Additional fields queried for the records returned. These fields don’t create visible columns. If the field is not available to the user, no error occurs and the field isn’t included in the records. | Optional | 43.0 | | pageSize | Integer | The number of list records viewed at one time. The default value is 50. Value can be 1–2000. | Optional | 43.0 | | pageToken | String | A token that represents the page offset. To indicate where the page starts, use this value with the pageSize parameter. The maximum offset is 2000 and the default is 0. | Optional | 43.0 | | sortBy | String\[\] | The API name of the field the list view is sorted by. If the name is preceded with “-”, the sort order is descending. For example, "Name" sorts by name in ascending order. "-CreatedDate" sorts by created date in descending order. | Optional | 43.0 | Response Body [List UI](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_ui.htm "The record data and metadata for a list view.") # Get MRU List View Actions Get the header actions on the most recently used (MRU) list view for objects. Resource /ui-api/actions/mru-list/${objectApiNames} objectApiNames—An object name, or a comma-delimited list of object names. Available Version 41.0 HTTP Method GET Example As an example, let’s say we have a most recently used Accounts list view. To get information about the header actions on this list view, make this request: GET /services/data/v68.0/ui-api/actions/mru-list/Account The request returns a list of header actions on the list view and the URLs of the request and subrequests. Request Parameters
Parameter Name Type Description Required or Optional Available Version
actionTypes String[]

The action type. One or more of these values:

  • CustomButton—A button that opens a URL or Visualforce page or executes JavaScript.
  • ProductivityAction—A pre-defined Salesforce action, attached to a limited set of objects.
  • QuickAction—A global or object-specific action.
  • StandardButton—A pre-defined Salesforce button, such as New, Edit, and Delete.
Optional 41.0
apiNames String[] The API names of one or more actions to be retrieved. Use this parameter only when passing retrievalMode=All. Optional 49.0
formFactor String The layout display size. One of these values:
  • Large—(Default) Use this value to get a layout for desktop display size.
  • Medium—Use this value to get a layout for tablet display size.
  • Small—Use this value to get a layout for phone display size.
Optional 41.0
retrievalMode String When the action context is Record, this parameter indicates which actions to retrieve from the record page. One of these values:
  • All—Retrieves all actions specified in the apiNames parameter.
  • PageLayout—(Default) Retrieves actions from the page layout.
Optional 49.0
sections String[] The section of the user interface that the actions reside in. One or more of these values:
  • ActivityComposer
  • CollaborateComposer
  • Page
  • SingleActionLinks
Optional 41.0
Response Body [Action](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_action.htm "The actions for a single record or a collection of records.") # Get Object Metadata Get metadata about a specific object. The response includes metadata describing fields, child relationships, record type, and theme. Resource /ui-api/object-info/{objectApiName} objectApiName—A [supported](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_get_started_supported_objects.htm#ui_api_get_started_supported_objects "User Interface API supports all custom objects and external objects and many standard objects.") object. Available Version 41.0 HTTP Method GET Response Body [Object Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_object_info.htm#ui_api_responses_object_info "The metadata for an object.") #### See Also - [User Interface API Quick Start](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_quick_start_postman.htm "Use the Postman desktop app or web-based UI to easily explore and test the UI API and other Salesforce APIs against your orgs.") - [Get a Directory of Supported Objects](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_object_info_directory.htm "Get a directory of objects that are supported by User Interface API and accessible to the context user. The directory includes a /ui-api/object-info/{objectApiName} resource for each supported object.") # Get Personalized Navigation Items Get a user’s personalized navigation items (tabs). Resource /ui-api/apps/${appId}/user-nav-items Available Version 43.0 HTTP Method GET Example To get a user’s personalized navigation tabs for an app, make this request using the app ID: GET /services/data/v68.0/ui-api/apps/06mRM000000AFIrYAO/user-nav-items The request returns metadata for the personalized navigation tabs associated with this app. { "navItems" : \[ { "availableInClassic" : true, "availableInLightning" : true, "color" : "50E3C2", "content" : "https://yourInstance.salesforce.com/0WO/o", "custom" : false, "developerName" : "standard-WorkOrder", "iconUrl" : "https://yourInstance.salesforce.com/img/icon/t4v35/standard/work\_order\_120.png", "id" : "0QkR00000004CvtKAE", "itemType" : "Entity", "label" : "Work Orders", "objectApiName" : "WorkOrder", "pageReference" : { "attributes" : { "objectApiName" : "WorkOrder", "actionName" : "home" }, "state" : { }, "type" : "standard\_\_objectPage" }, "standardType" : null }, { "availableInClassic" : true, "availableInLightning" : true, "color" : "83B6FF", "content" : "https://yourInstance.salesforce.com/\_ui/core/chatter/groups/GroupListPage", "custom" : false, "developerName" : "standard-CollaborationGroup", "iconUrl" : "https://yourInstance.salesforce.com/img/icon/t4v35/standard/groups\_120.png", "id" : "0QkR000000002R3KAI", "itemType" : "Standard", "label" : "Groups", "objectApiName" : "CollaborationGroup", "pageReference" : { "attributes" : { "objectApiName" : "CollaborationGroup", "actionName" : "home" }, "state" : { }, "type" : "standard\_\_objectPage" }, "standardType" : "Groups" }, { "availableInClassic" : true, "availableInLightning" : true, "color" : "2ECBBE", "content" : "https://yourInstance.salesforce.com/00O/o", "custom" : false, "developerName" : "standard-report", "iconUrl" : "https://yourInstance.salesforce.com/img/icon/t4v35/standard/report\_120.png", "id" : "0QkR000000007UxKAI", "itemType" : "Standard", "label" : "Reports", "objectApiName" : "Report", "pageReference" : { "attributes" : { "objectApiName" : "Report", "actionName" : "home" }, "state" : { }, "type" : "standard\_\_objectPage" }, "standardType" : "Reports" } \] } Request Parameters
Parameter Name Type Description Required or Optional Available Version
formFactor String The form factor for each app that the user has access to.
  • Large—App supports the desktop display size.
  • Medium—App supports the tablet display size.
  • Small—App supports the phone display size.
Optional 43.0
Response Body [Navigation Items](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_nav_items.htm "An ordered list of navigation items (tabs) for the current user.") # Get Photo Actions Get the photo actions for pages. Currently, only group and user pages support photo actions. Resource /ui-api/actions/photo/${recordIds} recordIds—A single record ID, or a comma-delimited list of record IDs. Available Version 41.0 HTTP Method GET Example As an example, let’s say we have a Group tab with a record ID of 0F9R00000000182KAA . To get information about the photo actions on the tab, make this request: GET /services/data/v68.0/ui-api/actions/photo/0F9R00000000182KAA The request returns a list of photo actions on the tab and the URLs of the request and subrequests. { "actions" : { "0F9R00000000182KAA" : { "actions" : \[ { "actionListContext" : "Photo", "actionTarget" : null, "actionTargetType" : "Invoke", "apiName" : "ViewPhotoAction", "externalId" : "00DR00000008n7M:0F9R00000000182KAA::Photo:Phone:StandardButton:ViewPhotoAction", "iconUrl" : "https://yourInstance.salesforce.com/img/icon/t4v35/action/email\_120.png", "id" : "0JVR00000000035OAA", "isMassAction" : "false", "label" : "View Photo", "primaryColor" : "95AEC5", "relatedListRecordId" : null, "relatedSourceObject" : null, "section" : "Page", "sourceObject" : "0F9R00000000182KAA", "subtype" : null, "targetObject" : null, "targetUrl" : null, "type" : "StandardButton" } ... Additional actions removed for brevity ... \], "links" : \[ \], "url" : "/services/data/v41.0/ui-api/actions/photo/0F9R00000000182KAA" } }, "url" : "/services/data/v41.0/ui-api/actions/photo/0F9R00000000182KAA" } Request Parameters
Parameter Name Type Description Required or Optional Available Version
actionTypes String[]

The action type. One or more of these values:

  • CustomButton—A button that opens a URL or Visualforce page or executes JavaScript.
  • ProductivityAction—A pre-defined Salesforce action, attached to a limited set of objects.
  • QuickAction—A global or object-specific action.
  • StandardButton—A pre-defined Salesforce button, such as New, Edit, and Delete.
Optional 41.0
apiNames String[] The API names of one or more actions to be retrieved. Use this parameter only when passing retrievalMode=All. Optional 49.0
formFactor String The layout display size. One of these values:
  • Large—(Default) Use this value to get a layout for desktop display size.
  • Medium—Use this value to get a layout for tablet display size.
  • Small—Use this value to get a layout for phone display size.
Optional 41.0
retrievalMode String When the action context is Record, this parameter indicates which actions to retrieve from the record page. One of these values:
  • All—Retrieves all actions specified in the apiNames parameter.
  • PageLayout—(Default) Retrieves actions from the page layout.
Optional 49.0
sections String[] The section of the user interface that the actions reside in. One or more of these values:
  • ActivityComposer
  • CollaborateComposer
  • Page
  • SingleActionLinks
Optional 41.0
Response Body [Action](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_action.htm#ui_api_responses_action "The actions for a single record or a collection of records.") # Get Record Data and Object Metadata Get layout information, metadata, and data to build UI for a single record or for a collection of records. The response contains layout information for whichever layout types are specified in the layoutTypes parameter. It contains data for the records specified in the recordIds parameter. The response contains object metadata for the object types of the records specified in the recordIds parameter, and for any nested objects. For example, a request to /ui-api/record-ui/001RM000003RsOHYA0, which is an Account, returns object metadata for Account and User, because the OwnerId field on the Account object contains a reference to the User object. Resource /ui-api/record-ui/{recordIds} recordIds—A comma-delimited list of custom object records and [supported object](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_get_started_supported_objects.htm#ui_api_get_started_supported_objects "User Interface API supports all custom objects and external objects and many standard objects.") records. Available Version 41.0 HTTP Method GET Example The response for this request includes layout information, metadata, and record data. The record data includes child relationship data for Contacts and Opportunities. GET /ui-api/record-ui/001R0000003I6CoIAK?childRelationships=Account.Contacts,Account.Opportunities Request Parameters
Parameter Name Type Description Required or Optional Available Version
childRelationships String[] A collection of child relationship names. The records with those child relationship names are included in the response. Specify names in the format ObjectApiName.ChildRelationshipName or ObjectApiName.ChildRelationshipName.FieldApiName. For example, to specify the Contacts relationship on an Account, use Account.Contacts. You can get child relationships one level deep.

To get a relationship name, look in the Object Info response body.

Optional 41.0
formFactor String The layout display size for the record. One of these values:
  • Large—(Default) Use this value to get a layout for desktop display size.
  • Medium—Use this value to get a layout for tablet display size.
  • Small—Use this value to get a layout for phone display size.
Optional 41.0
layoutTypes String[] The layout type for the record. A collection of any of these values:
  • Compact—Use this value to get a layout that contains a record’s key fields.
  • Full—(Default) Use this value to get a full layout.
Optional 41.0
modes String[] The access mode for the record. This value determines which fields to get from a layout. Layouts have different fields for create, edit, and view modes. For example, formula fields are rendered in view mode, but not in create mode because they’re calculated at run time, like formulas in a spreadsheet. A collection of any of these values:
  • Create—Use this mode if you intend to build UI that lets a user create a record. This mode is used by the /ui-api/record-defaults/create/{apiName} resource.
  • Edit—Use this mode if you intend to build UI that lets a user edit a record. This mode is used by the /ui-api/record-defaults/clone/{recordId} resource.
  • View—(Default) Use this mode to build UI that displays a record.
Optional 41.0
optionalFields String[] A collection of optional field names. If a field is accessible to the context user, it’s included in the response. If a field isn’t accessible to the context user, it isn’t included in the response, but it doesn’t cause an error.

Specify names in the format ObjectApiName.FieldName. You can get any field that has a named relationship to this record. There’s no limit to the number of fields you can specify.

Optional 41.0
pageSize Integer The maximum number of child records to return on a page. Optional 41.0
updateMru Boolean To add to the most recently used (MRU) list view, set to true. The default value is false. Optional 47.0
Response Body [Record UI](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_ui.htm#ui_api_responses_record_ui "The layout information, field information, and data for a record.") #### See Also - [User Interface API Quick Start](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_quick_start_postman.htm "Use the Postman desktop app or web-based UI to easily explore and test the UI API and other Salesforce APIs against your orgs.") - [Object Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_object_info.htm "The metadata for an object.") - [Get Child Records](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_features_records_child_relationships.htm "User Interface API has several resources that include child records in their responses. If a record has many child relationships, a response can be huge and have a negative effect on performance. To get only the records you need, request records for specific child relationships and set the page size of the results.") # Get Record Detail Actions Get the actions on record detail pages. Resource /ui-api/actions/record/${recordIds} recordIds—A single record ID, or a comma-delimited list of record IDs. Available Version 41.0 HTTP Method GET Example As an example, let’s say we have an Account record detail page with a record ID of 001R0000003IDlwIAG. The page has some standard buttons and quick actions. To get information about all the actions on this page, make this request: GET /services/data/v68.0/ui-api/actions/record/001R0000003IDlwIAG The request returns a list of actions on the page and the URLs of the request and subrequests. Request Parameters
Parameter Name Type Description Required or Optional Available Version
actionTypes String[]

The action type. One or more of these values:

  • CustomButton—A button that opens a URL or Visualforce page or executes JavaScript.
  • ProductivityAction—A pre-defined Salesforce action, attached to a limited set of objects.
  • QuickAction—A global or object-specific action.
  • StandardButton—A pre-defined Salesforce button, such as New, Edit, and Delete.
Optional 41.0
apiNames String[] The API names of one or more actions to be retrieved. Use this parameter only when passing retrievalMode=All. Optional 49.0
formFactor String The layout display size. One of these values:
  • Large—(Default) Use this value to get a layout for desktop display size.
  • Medium—Use this value to get a layout for tablet display size.
  • Small—Use this value to get a layout for phone display size.
Optional 41.0
retrievalMode String When the action context is Record, this parameter indicates which actions to retrieve from the record page. One of these values:
  • All—Retrieves all actions specified in the apiNames parameter.
  • PageLayout—(Default) Retrieves actions from the page layout.
Optional 49.0
sections String[] The section of the user interface that the actions reside in. One or more of these values:
  • ActivityComposer
  • CollaborateComposer
  • Page
  • SingleActionLinks
Optional 41.0
Response Body [Action](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_action.htm#ui_api_responses_action "The actions for a single record or a collection of records.") # Get Record Edit Actions Get the actions on a record edit page. Resource /ui-api/actions/record/${recordId}/record-edit Available Version 41.0 HTTP Method GET Example As an example, let’s say we have an Account page with a record ID of 001R0000003IDlwIAG. To get information about all the actions on the edit page for this record, make this request: GET /services/data/v68.0/ui-api/actions/record/001R0000003IDlwIAG/record-edit The request returns a list of actions on the edit page and the URLs of the request and subrequests. { "actions" : { "001R0000003IDlwIAG" : { "actions" : \[ { "actionListContext" : "RecordEdit", "actionTarget" : null, "actionTargetType" : "Invoke", "apiName" : "SaveEdit", "externalId" : "00DR00000008n7M:001R0000003IDlwIAG::RecordEdit:Phone:StandardButton:SaveEdit", "iconUrl" : "https://yourInstance.salesforce.com/img/icon/t4v35/action/new\_custom19\_120.png", "id" : "0JVR00000000001OAA", "isMassAction" : "false", "label" : "Save", "primaryColor" : null, "relatedListRecordId" : null, "relatedSourceObject" : null, "section" : "Page", "sourceObject" : "001R0000003IDlwIAG", "subtype" : null, "targetObject" : "Account", "targetUrl" : null, "type" : "StandardButton" } ... Additional actions removed for brevity ... \], "links" : \[ \], "url" : "/services/data/v41.0/ui-api/actions/record/001R0000003IDlwIAG/record-edit" } }, "url" : "/services/data/v41.0/ui-api/actions/record/001R0000003IDlwIAG/record-edit" } Request Parameters
Parameter Name Type Description Required or Optional Available Version
actionTypes String[]

The action type. One or more of these values:

  • CustomButton—A button that opens a URL or Visualforce page or executes JavaScript.
  • ProductivityAction—A pre-defined Salesforce action, attached to a limited set of objects.
  • QuickAction—A global or object-specific action.
  • StandardButton—A pre-defined Salesforce button, such as New, Edit, and Delete.
Optional 41.0
apiNames String[] The API names of one or more actions to be retrieved. Use this parameter only when passing retrievalMode=All. Optional 49.0
formFactor String The layout display size. One of these values:
  • Large—(Default) Use this value to get a layout for desktop display size.
  • Medium—Use this value to get a layout for tablet display size.
  • Small—Use this value to get a layout for phone display size.
Optional 41.0
retrievalMode String When the action context is Record, this parameter indicates which actions to retrieve from the record page. One of these values:
  • All—Retrieves all actions specified in the apiNames parameter.
  • PageLayout—(Default) Retrieves actions from the page layout.
Optional 49.0
sections String[] The section of the user interface that the actions reside in. One or more of these values:
  • ActivityComposer
  • CollaborateComposer
  • Page
  • SingleActionLinks
Optional 41.0
Response Body [Action](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_action.htm#ui_api_responses_action "The actions for a single record or a collection of records.") # Get Record Layout Metadata Get metadata about page layouts for the specified object type. Resource /ui-api/layout/{objectApiName} objectApiName—A [supported](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_get_started_supported_objects.htm#ui_api_get_started_supported_objects "User Interface API supports all custom objects and external objects and many standard objects.") object. Available Version 41.0 HTTP Method GET Request Parameters
Parameter Name Type Description Required or Optional Available Version
formFactor String The layout display size for the record. One of these values:
  • Large—(Default) Use this value to get a layout for desktop display size.
  • Medium—Use this value to get a layout for tablet display size.
  • Small—Use this value to get a layout for phone display size.
Optional 41.0
layoutType String The layout type for the record. One of these values:
  • Compact—Use this value to get a layout that contains a record’s key fields.
  • Full—(Default) Use this value to get a full layout.
Optional 41.0
mode String The access mode for the record. This value determines which fields to get from a layout. Layouts have different fields for create, edit, and view modes. For example, formula fields are rendered in view mode, but not in create mode because they’re calculated at run time, like formulas in a spreadsheet. One of these values:
  • Create—Use this mode if you intend to build UI that lets a user create a record. This mode is used by the /ui-api/record-defaults/create/{apiName} resource.
  • Edit—Use this mode if you intend to build UI that lets a user edit a record. This mode is used by the /ui-api/record-defaults/clone/{recordId} resource.
  • View—(Default) Use this mode to build UI that displays a record.
Optional 41.0
recordTypeId Id The ID of the record type (RecordType object) for the new record. If not provided, the default record type is used. Optional 41.0
Response Body [Record Layout](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_layout.htm#ui_api_responses_record_layout "The layout information for a record.") #### See Also - [User Interface API Quick Start](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_quick_start_postman.htm "Use the Postman desktop app or web-based UI to easily explore and test the UI API and other Salesforce APIs against your orgs.") # Get Related List Actions with a Request Body Get the actions on related lists for a record detail page. This resource uses the POST method so you can enter request parameters in the request body instead using complex URL parameters. Resources /ui-api/actions/record/${recordIds}/related-list/${relatedListId} - recordIds—The 15 or 18 character ID of a record. - relatedListId—(Optional) A related list ID. If this parameter isn’t specified, the request returns all related list actions for the specified record. To get actions for a batch of related lists, see [Get a Batch of Related List Actions with a Request Body](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_related_list_actions_batch_get.htm "Get the actions on a batch of related lists for a record. This resource uses the POST method so you can enter request parameters in the request body instead using complex URL parameters."). Available Version 57.0 HTTP Method POST Example To get information about related list actions on a record detail page, use this request with a request body. POST /services/data/v68.0/ui-api/actions/record/001R0000003IDlwIAG/related-list { "apiNames": \["New"\], "retrievalMode": "All" } Request Parameters | Parameter Name | Type | Description | Required or Optional | Available Version | | --- | --- | --- | --- | --- | | listRecordActionsQuery | [Action Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_action_input.htm "Get the actions on related lists on a record detail page.") | The data for related list actions. | Optional | 57.0 | Response Body [Action](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_action.htm#ui_api_responses_action "The actions for a single record or a collection of records.") # Get Related List Actions with URL Parameters Get the actions on related lists on a record detail page via URL parameters. Resources /ui-api/actions/record/${recordIds}/related-list/${relatedListId} - recordIds—The 15 or 18 character ID of a record. - relatedListId—(Optional) A related list ID. If this parameter isn’t specified, the request returns all related list actions for the specified record. To get actions for a batch of related lists, see [Get a Batch of Related List Actions with URL Parameters](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_related_lists_batch.htm "Get the actions on a batch of related lists for a record via URL parameters."). Available Version 41.0 HTTP Method GET Example As an example, let’s say we have an Account record detail page with a record ID of 001R0000003IDlwIAG. The page has some related lists, including tasks and events. To get information about all the related list actions on this page, make this request. GET /services/data/v68.0/ui-api/actions/record/001R0000003IDlwIAG/related-list The request returns a list of related list actions on the page and the URLs of the request and subrequests. { "actions" : { "001R0000003IDlwIAG" : { "actions" : \[ { "actionListContext" : "RelatedList", "actionTarget" : null, "actionTargetType" : "Invoke", "apiName" : "NewTask", "externalId" : "00DR00000008n7M:001R0000003IDlwIAG::RelatedList:Phone:StandardButton:NewTask", "iconUrl" : "https://yourInstance.salesforce.com/img/icon/t4v35/action/new\_task\_120.png", "id" : "0JVR00000000036OAA", "isMassAction" : "false", "label" : "New Task", "primaryColor" : "4BC076", "relatedListRecordId" : null, "relatedSourceObject" : "OpenActivities", "section" : "Page", "sourceObject" : "001R0000003IDlwIAG", "subtype" : null, "targetObject" : "Task", "targetUrl" : null, "type" : "StandardButton" }, { "actionListContext" : "RelatedList", "actionTarget" : null, "actionTargetType" : "Invoke", "apiName" : "NewEvent", "externalId" : "00DR00000008n7M:001R0000003IDlwIAG::RelatedList:Phone:StandardButton:NewEvent", "iconUrl" : "https://yourInstance.salesforce.com/img/icon/t4v35/action/new\_event\_120.png", "id" : "0JVR00000000037OAA", "isMassAction" : "false", "label" : "New Event", "primaryColor" : "EB7092", "relatedListRecordId" : null, "relatedSourceObject" : "OpenActivities", "section" : "Page", "sourceObject" : "001R0000003IDlwIAG", "subtype" : null, "targetObject" : "Event", "targetUrl" : null, "type" : "StandardButton" } ... Additional actions removed for brevity ... \], "links" : \[ \], "url" : "/services/data/v68.0/ui-api/actions/record/001R0000003IDlwIAG/related-list" } }, "url" : "/services/data/v68.0/ui-api/actions/record/001R0000003IDlwIAG/related-list" } Request Parameters
Parameter Name Type Description Required or Optional Available Version
actionTypes String[]

The action type. One or more of these values:

  • CustomButton—A button that opens a URL or Visualforce page or executes JavaScript.
  • ProductivityAction—A pre-defined Salesforce action, attached to a limited set of objects.
  • QuickAction—A global or object-specific action.
  • StandardButton—A pre-defined Salesforce button, such as New, Edit, and Delete.
Optional 41.0
apiNames String[] The API names of one or more actions to be retrieved. Use this parameter only when passing retrievalMode=All. Optional 49.0
formFactor String The layout display size. One of these values:
  • Large—(Default) Use this value to get a layout for desktop display size.
  • Medium—Use this value to get a layout for tablet display size.
  • Small—Use this value to get a layout for phone display size.
Optional 41.0
retrievalMode String When the action context is Record, this parameter indicates which actions to retrieve from the record page. One of these values:
  • All—Retrieves all actions specified in the apiNames parameter.
  • PageLayout—(Default) Retrieves actions from the page layout.
Optional 49.0
sections String[] The section of the user interface that the actions reside in. One or more of these values:
  • ActivityComposer
  • CollaborateComposer
  • Page
  • SingleActionLinks
Optional 41.0
Response Body [Action](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_action.htm#ui_api_responses_action "The actions for a single record or a collection of records.") # Get Related List Metadata Returns metadata for a related list in a page layout. Resource /ui-api/related-list-info/${parentObjectApiName}/${relatedListId} - parentObjectApiName—A [supported](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_get_started_supported_objects.htm#ui_api_get_started_supported_objects "User Interface API supports all custom objects and external objects and many standard objects.") object, such as Account. - relatedListId—The ID of a supported related list for that object, such as Contracts. Available Version 50.0 HTTP Method GET Example To get metadata for the Contracts related list in the Account object, make this request. GET /services/data/v68.0/ui-api/related-list-info/Account/Contracts Request Parameters | Parameter Name | Type | Description | Required or Optional | Available Version | | --- | --- | --- | --- | --- | | fields | String\[\] | Fields in the related list to query. If a field is specified and the user doesn’t have access to it or it doesn’t exist, an error occurs. | Optional | 57.0 | | optionalFields | String\[\] | Additional fields in the related list to query. If a field is specified and the user doesn’t have access to it, no error occurs. | Optional | 57.0 | | recordTypeId | Id | The ID of the record type (RecordType object) for the record. If unspecified, the default record type for the context user is used. If there is no default record type for the context user, the Salesforce default record type is used. | Optional | 50.0 | | restrictColumns​ToLayout | Boolean | Indicates whether to retrieve metadata for only the list columns in the page layout (true) or all columns (false). The default value is true. To further filter columns, also use fields and optionalFields. | Optional | 57.0 | Response Body [Related List Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_related_list_metadata.htm "Metadata that describes a related list.") # Get Related List Record Actions Get the actions on records in related lists. Resource /ui-api/actions/record/${recordId}/related-list-record/${relatedListRecordIds} relatedListRecordIds—A related list record ID, or a comma-delimited list of related list record IDs. Available Version 41.0 HTTP Method GET Example As an example, let’s say we have an Account record detail page with a record ID of 001R0000003IDlwIAG. The page has a Contacts related list, and one of the Contacts has a record ID of 003R0000007qfC7. To get information about the actions for this contact, make this request: GET /services/data/v68.0/ui-api/actions/record/001R0000003IDlwIAG/related-list-record/003R0000007qfC7 The request returns a list of actions for the contact and the URLs of the request and subrequests. { "actionListContext" : "RelatedListRecord", "actionTarget" : null, "actionTargetType" : "Invoke", "apiName" : "Delete", "externalId" : "00DR00000008n7M:001R0000003IDlwIAG::RelatedListRecord:Phone:StandardButton:Delete", "iconUrl" : "https://yourInstance.salesforce.com/img/icon/t4v35/action/delete\_120.png", "id" : "0JVR00000000014OAA", "isMassAction" : "false", "label" : "Delete", "primaryColor" : "E6717C", "relatedListRecordId" : "003R0000007qfC7", "relatedSourceObject" : "Contacts", "section" : "Page", "sourceObject" : "001R0000003IDlwIAG", "subtype" : null, "targetObject" : "Contact", "targetUrl" : null, "type" : "StandardButton" } ... Additional actions removed for brevity ... \], "links" : \[ \], "url" : "/services/data/v41.0/ui-api/actions/record/001R0000003IDlwIAG/related-list-record/003R0000007qfC7" } }, "url" : "/services/data/v41.0/ui-api/actions/record/001R0000003IDlwIAG/related-list-record/003R0000007qfC7" } Request Parameters
Parameter Name Type Description Required or Optional Available Version
actionTypes String[]

The action type. One or more of these values:

  • CustomButton—A button that opens a URL or Visualforce page or executes JavaScript.
  • ProductivityAction—A pre-defined Salesforce action, attached to a limited set of objects.
  • QuickAction—A global or object-specific action.
  • StandardButton—A pre-defined Salesforce button, such as New, Edit, and Delete.
Optional 41.0
apiNames String[] The API names of one or more actions to be retrieved. Use this parameter only when passing retrievalMode=All. Optional 49.0
formFactor String The layout display size. One of these values:
  • Large—(Default) Use this value to get a layout for desktop display size.
  • Medium—Use this value to get a layout for tablet display size.
  • Small—Use this value to get a layout for phone display size.
Optional 41.0
retrievalMode String When the action context is Record, this parameter indicates which actions to retrieve from the record page. One of these values:
  • All—Retrieves all actions specified in the apiNames parameter.
  • PageLayout—(Default) Retrieves actions from the page layout.
Optional 49.0
sections String[] The section of the user interface that the actions reside in. One or more of these values:
  • ActivityComposer
  • CollaborateComposer
  • Page
  • SingleActionLinks
Optional 41.0
Response Body [Action](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_action.htm#ui_api_responses_action "The actions for a single record or a collection of records.") # Get Related List Record Count Returns the record count for a related list. Resource /ui-api/related-list-count/${parentRecordId}/${relatedListId} - parentRecordId—The ID of the record you want to get related lists for. - relatedListId—The ID of a supported related list for that object. Available Version 50.0 HTTP Method GET Example To get the number of records in the Contracts related list for the account 001RM000003UNu6YAG, make this request. /services/data/v68.0/ui-api/related-list-count/001RM000003UNu6YAG/Contracts Request Parameters | Parameter Name | Type | Description | Required or Optional | Available Version | | --- | --- | --- | --- | --- | | maxCount | Integer | The maximum number of records to return. The default value is 20. | Optional | 50.0 | Response Body [Related List Record Count](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_related_list_record_count.htm "The number of records in a given related list.") # Get Related List Records with a Request Body Returns record data for up to 1,999 records in a related list. This resource uses the POST method to let you enter request parameters in the request body instead of the URL. Resources /ui-api/related-list-records/${parentRecordId}/${relatedListId} - parentRecordId—The ID of the record you want to get related lists for. - relatedListId—The API name of a supported related list for that object, such as Contacts. In API version 62.0 and later, relatedListId supports the API name of a child relationship. Available Version 55.0 HTTP Method POST Example To get record data for the Contacts related list for the account record 001xx000003GYOpAAO, use this request. POST /ui-api/related-list-records/001xx000003GYOpAAO/Contacts { "fields": \["Name", "Id", "Birthdate"\], "optionalFields": \["Email"\], "sortBy": \["CreatedDate"\], "pageSize": 10, "where": "{ Account: { AnnualRevenue: { gt: 10000000 } }}" } Request Parameters | Parameter Name | Type | Description | Required or Optional | Available Version | | --- | --- | --- | --- | --- | | listRecordsQuery | [Related List Records Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_related_list_record_input.htm "Get record data for up to 1,999 records in a related list.") | The record data for the related list. | Required | 55.0 | Response Body [Related List Record Collection](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_related_list_record_collection.htm "A collection of related list records.") # Get Related List Records with URL Parameters Returns record data for up to 1,999 records in a related list via URL parameters. Resources /ui-api/related-list-records/${parentRecordId}/${relatedListId} - parentRecordId—The ID of the record you want to get related lists for. - relatedListId—The API name of a supported related list for that object, such as Contracts. In API version 62.0 and later, relatedListId supports the API name of a child relationship. Available Version 50.0 HTTP Method GET Example To get metadata for the Contracts related list for the account record 001RM000003UNu6YAG, make this request. /services/data/v68.0/ui-api/related-list-records/001RM000003UNu6YAG/Contracts To get metadata for the Contracts related list for the account record 001RM000003UNu6YAG, and also retrieve the ContractNumber field, make this request. /services/data/v68.0/ui-api/related-list-records/001RM000003UNu6YAG/Contracts?fields=Contract.ContractNumber Request Parameters ![Note](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/images/icon_note.png) #### Note To get record data for a related list without complex URL parameters, you can use the POST method and enter request parameters in the request body. See [Get a Related List Records with a Request Body](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_related_list_records_get.htm "Returns record data for up to 1,999 records in a related list. This resource uses the POST method to let you enter request parameters in the request body instead of the URL.").
Parameter Name Type Description Required or Optional Available Version
fields String[] Fields queried for the records returned. These fields are included in the response body and don’t create visible columns. If the field isn’t available to the user, an error occurs. Optional 50.0
optionalFields String[] Additional fields queried for the records returned. These fields are included in the response body and don’t create visible columns. If the field isn’t available to the user, no error occurs and the field isn’t included in the records. Optional 50.0
pageSize Integer The number of list records viewed at one time. The default value is 50. Value can be 1–1999. Optional 50.0
pageToken String The token for additional pages of records beyond the first page. To fetch another page, use the value returned by nextPageTokenfrom the previous page. Optional 50.0
sortBy String[] The API names of the fields that the related list is sorted by. If the name is preceded with -, the sort order is descending. For example, Name sorts by name in ascending order. -CreatedDate sorts by created date in descending order.

In API version 63.0 and later, you can sort by up to five fields. If a field is invalid or isn’t accessible to the context user, this parameter is ignored, but no error occurs.

Optional 50.0
where String
Note

Note

The where parameter isn’t supported for GET requests.

Optional 55.0
Response Body [Related List Record Collection](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_related_list_record_collection.htm "A collection of related list records.") # Get Related List User Preferences Returns user preferences for a related list. Resource /ui-api/related-list-preferences/${preferencesId} - preferencesId—The ID of user preferences for a related list, for example, Account.RelatedContactList. Available Version 57.0 HTTP Method GET Example To get information about user preferences for a Contact related list on an Account, make this request. GET /services/data/v68.0/ui-api/related-list-preferences/Account.RelatedContactList Response Body [Related List User Preferences](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_related_list_user_preferences.htm "User preferences for a related list.") # Get Related Lists for an Object Returns the related lists in an object’s default layout. Resource /ui-api/related-list-info/${parentObjectApiName} - parentObjectApiName—A [supported](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_get_started_supported_objects.htm#ui_api_get_started_supported_objects "User Interface API supports all custom objects and external objects and many standard objects.") object, such as Account. Available Version 50.0 HTTP Method GET Example To get information about related lists for the Account object, make this request: GET /services/data/v68.0/ui-api/related-list-info/Account Request Parameters | Parameter Name | Type | Description | Required or Optional | Available Version | | --- | --- | --- | --- | --- | | recordTypeId | Id | The ID of the record type (RecordType object) for the record. If not provided, the default record type is used. | Optional | 50.0 | Response Body [Related List Summary Collection](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_related_list_summary_collection.htm "A collection of related lists for a given object.") # Get Started with User Interface API Build Salesforce UI for native mobile apps and custom web apps using the same API that Salesforce uses to build Lightning Experience and Salesforce for Android, iOS, and mobile web. Build user interfaces that let users work with records, list views, actions, favorites, and more. Not only do you get data and metadata in a single response, but the response matches metadata changes made to the org by Salesforce admins. You don’t have to worry about layouts, picklists, field-level security, or sharing—all you have to do is build an app that users love. The User Interface API base URL is https://{your\_instance}.salesforce.com/services/data/v{api\_version}/ui-api. The Record UI resource shows the power of User Interface API. To display a record, your code makes this simple request: GET /ui-api/record-ui/001R0000003GeJ1IAK Behind the scenes, Salesforce does the heavy lifting. - Checks field-level security settings, sharing settings, and perms. - Makes SOQL queries to get record data. - Gets object metadata and theme information. - Gets layout information. You’re one happy developer, because Salesforce transforms the results into an easy-to-consume JSON response with all the metadata and data necessary to display the record. ![Note](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/images/icon_note.png) #### Note Most User Interface API resource actions aren’t exposed as static methods in Apex. In addition to building UI for Salesforce records, you can also use User Interface API to build UI for Salesforce actions, favorites, and list views. - **[User Interface API Release Notes](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_get_started_release_notes.htm)** The API release notes include updates to the request bodies, response bodies, and resources. - **[User Interface API Quick Start](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_quick_start_postman.htm)** Use the Postman desktop app or web-based UI to easily explore and test the UI API and other Salesforce APIs against your orgs. - **[User Interface API Sample Apps](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_get_started_sample_apps.htm)** We’ve built two sample apps that use User Interface API to create, read, update, and delete records. The apps are open-source and available on GitHub. - **[Authentication, Versioning, Limits, ETag, and More](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_get_started_intro.htm)** Learn the high-level facts about how to use User Interface API. How do you authenticate? How is the API versioned? What are the rate limits? All the information you need, available at a glance. - **[Status Codes and Error Responses](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_errors.htm)** The response header contains an HTTP status code. If the response isn’t successful, the response body contains an error message, and if appropriate, information about the field or object where the error occurred. - **[API End-of-Life Policy](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/api_ui_eol.htm)** Salesforce is committed to supporting each API version for a minimum of three years from the date of first release. To mature and improve the quality and performance of the API, versions that are more than three years old sometimes are no longer supported. # Get Values for a Picklist Field If a field’s dataType property is equal to Picklist or MultiPicklist, use this resource to get its values. Resource /ui-api/object-info/{objectApiName}/picklist-values/{recordTypeId}/{fieldApiName} - objectApiName—The API name of a [supported](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_get_started_supported_objects.htm#ui_api_get_started_supported_objects "User Interface API supports all custom objects and external objects and many standard objects.") object. - recordTypeId—The ID of the record type. - fieldApiName—The API name of the picklist field on the object. Available Version 41.0 HTTP Method GET Response Body [Picklist Values](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_picklist_values.htm#ui_api_responses_picklist_values "The picklist values for a field, scoped to a record type. If a picklist is dependent, this response includes the values of its immediate controlling field and how they map to the picklist.") #### See Also - [Build UI for Picklists](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_features_records_dependent_picklist.htm "User Interface API exposes properties and resources that make it easy for a client to build picklists and dependent picklists.") - [Get Values for All Picklist Fields of a Record Type](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_picklist_values_collection.htm "Use this resource to get the values for all the picklist fields of a specific record type. This resource is especially useful for getting dependent picklist values. For example, if an object has a tree of dependent picklists (Continents__c, Countries__c, Cities__c), use this resource to get all the values for each picklist in one request.") - [Get Record Data and Object Metadata](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_record_ui.htm "Get layout information, metadata, and data to build UI for a single record or for a collection of records.") - [Get Object Metadata](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_object_info.htm "Get metadata about a specific object. The response includes metadata describing fields, child relationships, record type, and theme.") - [User Interface API Quick Start](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_quick_start_postman.htm "Use the Postman desktop app or web-based UI to easily explore and test the UI API and other Salesforce APIs against your orgs.") # Get Values for All Picklist Fields of a Record Type Use this resource to get the values for all the picklist fields of a specific record type. This resource is especially useful for getting dependent picklist values. For example, if an object has a tree of dependent picklists (Continents\_\_c, Countries\_\_c, Cities\_\_c), use this resource to get all the values for each picklist in one request. This resource is available as a static method in Apex in API version 66.0 and later. See [getPicklistValuesByRecordType(objectApiName, recordTypeId)](https://developer.salesforce.com/docs/atlas.en-us.264.0.apexref.meta/apexref/apex_ConnectAPI_RecordUi_static_methods.htm#apex_ConnectAPI_RecordUi_getPicklistValuesByRecordType_1) in the Apex Reference Guide. Resource /ui-api/object-info/{objectApiName}/picklist-values/{recordTypeId} - objectApiName—The API name of a [supported](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_get_started_supported_objects.htm#ui_api_get_started_supported_objects "User Interface API supports all custom objects and external objects and many standard objects.") object. - recordTypeId—The ID of the record type. Available Version 42.0 HTTP Method GET Response Body [Picklist Values Collection](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_picklist_values_collection.htm#ui_api_responses_picklist_values_collection "A collection of picklist values for all the picklists of a specified record type.") #### See Also - [Build UI for Picklists](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_features_records_dependent_picklist.htm "User Interface API exposes properties and resources that make it easy for a client to build picklists and dependent picklists.") - [Get Values for a Picklist Field](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_picklist_values.htm "If a field’s dataType property is equal to Picklist or MultiPicklist, use this resource to get its values.") # Lead Status Picklist Value Attributes Additional picklist value attributes for lead statuses.
Property Name Type Description Filter Group and Version Available Version
converted Boolean If this status indicates the lead has been converted, the value is true, otherwise false. Small, 41.0 41.0
picklistAtrributes​ValueType String The value is LeadStatus. Indicates that these value attributes are associated with the status of a lead.

For more information, see the LeadStatus object documentation.

The property picklistAtrributes​ValueType contains a typographical error.

Small, 41.0 41.0
#### See Also - [Picklist Value](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_picklist_value.htm "A single picklist value.") # List Column A column in a list. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | fieldApiName | String | The API name for the field. | Small, 42.0 | 42.0 | | inlineEditAttributes | Map | Map of record type ID to inline edit attributes for the column. | Small, 61.0 | 61.0 | | label | String | The label of the field. | Small, 42.0 | 42.0 | | lookupId | String | The ID of the field if the field is a reference. If the field isn’t a reference, the value can be null. | Small, 58.0 | 58.0 | | searchable | Boolean | Indicates whether the list column is searchable. | Small, 61.0 | 61.0 | | sortable | Boolean | Indicates whether the list column is sortable. | Small, 42.0 | 42.0 | #### See Also - [Get List View Records and Metadata (Deprecated)](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_list_views_records_md.htm "Get record data and metadata for a list view.") - [List Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_metadata.htm "Metadata that describes a list.") # List Column Inline Edit Attributes List column inline edit attributes. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | editable | Boolean | Indicates whether the column can be edited inline. | Small, 61.0 | 61.0 | | required | Boolean | Indicates whether the column is required to be populated when inline editing. | Small, 61.0 | 61.0 | #### See Also - [List Column](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_column.htm "A column in a list.") # List Filter by Info Information used to filter a list.
Property Name Type Description Filter Group and Version Available Version
fieldApiName String The API name for the field used to filter the list. Small, 42.0 42.0
label String The label for the field used to filter the list. Small, 42.0 42.0
operandLabels String[] The values (or label if one exists) used to filter the list. Small, 42.0 42.0
operator String The filter operator. One of these values:
  • Contains
  • Equals
  • Excludes
  • GreaterOrEqual
  • GreaterThan
  • Includes
  • LessOrEqual
  • LessThan
  • NotContain
  • NotEqual
  • StartsWith
  • Within
Small, 42.0 42.0
#### See Also - [Get List View Records and Metadata (Deprecated)](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_list_views_records_md.htm "Get record data and metadata for a list view.") - [List Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_metadata.htm "Metadata that describes a list.") - [Related List Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_related_list_metadata.htm "Metadata that describes a related list.") # List Filter By Info Input List filter by info to update or create. JSON example { "fieldApiName": "Name", "operandLabels": \[ "This", "That"\], "operator": "Equals" } Properties
Name Type Description Required or Optional Available Version
fieldApiName String API name for the field used to filter the list. Optional 61.0
operandLabels String[] Values (or label if one exists) used to filter the list. Optional 61.0
operator String Filter operator. Values are:
  • Contains
  • Equals
  • Excludes
  • GreaterOrEqual
  • GreaterThan
  • Includes
  • LessOrEqual
  • LessThan
  • NotContain
  • NotEqual
  • StartsWith
  • Within
Optional 61.0
#### See Also - [List Info Post Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_list_info_post_input.htm "Info to create a list.") - [List Info Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_list_info_input.htm "Info to update a list.") # List Info Metadata that describes a list.
Property Name Type Description Filter Group and Version Available Version
cloneable Boolean Indicates whether the list can be cloned. Small, 42.0 42.0
createable Boolean Indicates whether a list for the object can be created. Small, 42.0 42.0
deletable Boolean Indicates whether the list can be deleted. Small, 42.0 42.0
displayColumns List Column[] All display columns for the list. Small, 42.0 42.0
filterLogicString String The filter logic string, such as (1 OR 2) and 3. Indexes start with 1. Small, 42.0 42.0
filteredByInfo List Filter by Info[] Filtering information for the list. Small, 42.0 42.0
hasMassActions Boolean Indicates whether the list has mass actions. Small, 62.0 62.0
id List Reference Identity information for the list. Small, 42.0 42.0 only
inlineEditDetails List Inline Edit Details Inline edit details for the list. Small, 61.0 61.0
label String The list’s display label. For example, All Accounts. Small, 42.0 42.0
listReference List Reference Object representing the list. Small, 43.0 43.0
listShares List Info Share Category Items that the list is shared with. Small, 61.0 61.0
listViewApiName String The list’s API name. For example, AllAccounts or __Recent, for the most recently used (MRU) list view for the object. Small, 42.0 42.0 only
objectApiNames String[] API names of objects that are returned by the list. Small, 61.0 61.0
orderedByInfo List Order By Info[] Ordering information for the list. Small, 42.0 42.0
scope List Scope Scope information for the list. Small, 61.0 61.0
searchable Boolean Indicates whether the list can be searched. Small, 61.0 61.0
updateable Boolean Indicates whether the list can be updated. Small, 42.0 42.0
userPreferences List User Preference User preferences for the list. Small, 42.0 42.0
visibility String Visibility of the list. One of these values:
  • Private
  • Public
  • Shared
Small, 42.0 42.0
visibilityEditable Boolean Indicates whether the visibility of the list can be edited. Small, 42.0 42.0
#### See Also - [Get Most Recently Used List View Metadata (Deprecated)](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_mru_list_views_md.htm "Get metadata for an object’s most recently viewed (MRU) list view.") - [List UI](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_ui.htm "The record data and metadata for a list view.") - [Get List View Records and Metadata (Deprecated)](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_list_views_records_md.htm "Get record data and metadata for a list view.") - [Update List View Metadata](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_list_views_md_patch.htm "Update list view metadata.") - [Create a List View for an Object](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_lists_object_post.htm "Create a list view associated with an object.") - [Get List View Metadata](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_list_views_md.htm "Get list view metadata.") # List Info Input Info to update a list. Example This example uses a request body to update the metadata for a list view. The object API name is Account and the list view API name is AllAccounts. PATCH /services/data/v68.0/ui-api/list-info/Account/AllAccounts { "filteredByInfo": \[ { "fieldApiName": "Name", "operandLabels": \[ "This", "That"\], "operator": "Equals" }, { "fieldApiName": "Phone", "operandLabels": \[ "919"\], "operator": "StartsWith" }, { "fieldApiName": "AnnualRevenue", "operandLabels": \[ "1000000"\], "operator": "GreaterThan" } \], "filterLogicString" : "(1 OR 2) AND 3", "label": "Accounts opened this year", "scope": { "apiName": "entity", "entityId": "00Gxx000000sjI8", "relatedEntityId": "701xx000003HZ7X" }, "visibility": "Public" } Properties
Name Type Description Required or Optional Available Version
displayColumns String[] Display columns (field API names) for the list. Optional 61.0
filterLogicString String Filter logic string, such as (1 OR 2) and 3. Indexes start with 1. Optional 61.0
filteredByInfo List Filter By Info Input[] Filtering information for the list. Optional 61.0
label String List’s display label, for example, All Accounts. Optional 61.0
listShares String[] Objects the list is shared with, if visibility is shared. Optional 61.0
scope List Scope Input Scope information for the list. Optional 61.0
visibility String List’s visibility. One of these values:
  • Private
  • Public
  • Shared
Optional 61.0
#### See Also - [Update List View Metadata](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_list_views_md_patch.htm "Update list view metadata.") # List Info Post Input Info to create a list. Example This example uses a request body to create the metadata for an account list view. POST /services/data/v68.0/ui-api/list-info/Account { "listViewApiName": "MyAccountListView", "filteredByInfo": \[ { "fieldApiName": "Name", "operandLabels": \[ "This", "That"\], "operator": "Equals" }, { "fieldApiName": "Phone", "operandLabels": \[ "919"\], "operator": "StartsWith" }, { "fieldApiName": "AnnualRevenue", "operandLabels": \[ "1000000"\], "operator": "GreaterThan" } \], "filterLogicString" : "(1 OR 2) AND 3", "label": "Accounts opened this year", "scope": { "apiName": "entity", "entityId": "00Gxx000000sjI8", "relatedEntityId": "701xx000003HZ7X" }, "visibility": "Public" } Properties
Name Type Description Required or Optional Available Version
displayColumns String[] Display columns (field API names) for the list. Optional 61.0
filterLogicString String Filter logic string, such as (1 OR 2) and 3. Indexes start with 1. Optional 61.0
filteredByInfo List Filter By Info Input[] Filtering information for the list. Optional 61.0
label String List’s display label, for example, All Accounts. Optional 61.0
listShares String[] Objects the list is shared with, if visibility is shared.

For role sharing, use Role.RoleAPIName. For group sharing, use groupType.GroupApiName, where groupType is one of the type values for the Group object.

Optional 61.0
listViewApiName String API name for the list. This property is optional but strongly recommended. If unspecified, a default API name is generated. Optional 61.0
scope List Scope Input Scope information for the list. Optional 61.0
visibility String List’s visibility. One of these values:
  • Private
  • Public
  • Shared
Optional 61.0
#### See Also - [Create a List View for an Object](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_lists_object_post.htm "Create a list view associated with an object.") # List Info Share List info share. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | label | String | Label for the shared item. | Small, 61.0 | 61.0 | | shareApiName | String | API name for the shared item. | Small, 61.0 | 61.0 | #### See Also - [List Info Share Category](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_info_share_category.htm "List info share category.") # List Info Share Category List info share category.
Property Name Type Description Filter Group and Version Available Version
shareType String Share type for the category. Values are:
  • ChannelProgramGroup
  • Regular
  • Role
  • RoleAndSubordinates
  • RoleAndSubordinatesInternal
  • Territory
  • TerritoryAndSubordinates
Small, 61.0 61.0
shares List Info Share[] Shares in the category. Small, 61.0 61.0
#### See Also - [List Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_metadata.htm "Metadata that describes a list.") # List Info Summary List info summary. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | apiName | String | API name of the list. | Small, 61.0 | 61.0 | | id | String | ID of the list. | Small, 61.0 | 61.0 | | label | String | List's label. | Small, 61.0 | 61.0 | | url | String | List’s UI URL. | Small, 61.0 | 61.0 | #### See Also - [List Info Summary Collection](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_info_summary_collection.htm "List info summary collection.") # List Info Summary Collection List info summary collection. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | count | Integer | Total count of lists returned. | Small, 61.0 | 61.0 | | currentPageToken | String | Page token of the current page of lists. | Small, 61.0 | 61.0 | | currentPageUrl | String | URL of the current page of lists. | Small, 61.0 | 61.0 | | lists | [List Info Summary](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_info_summary.htm "List info summary.")\[\] | Collection of list summaries. | Small, 61.0 | 61.0 | | nextPageToken | String | Page token of the next page of lists. | Small, 61.0 | 61.0 | | nextPageUrl | String | URL of the next page of lists. | Small, 61.0 | 61.0 | | objectApiName | String | API name of the object in the URL. | Small, 61.0 | 61.0 | | pageSize | Integer | Page size specified in the query parameter or the default value. | Small, 61.0 | 61.0 | | previousPageToken | String | Page token of the previous page of lists. | Small, 61.0 | 61.0 | | previousPageUrl | String | URL of the previous page of lists. | Small, 61.0 | 61.0 | | queryString | String | Query string specified in the query parameter or null. | Small, 61.0 | 61.0 | | recentListsOnly | Boolean | Indicates whether recent lists only were returned (true) or not (false). | Small, 61.0 | 61.0 | #### See Also - [Get List Views for an Object](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_lists_object_get.htm "Get list views associated with an object.") # List Inline Edit Details List inline edit details.
Property Name Type Description Filter Group and Version Available Version
message String Message describing why inline edit is off. Small, 61.0 61.0
state String State of inline edit for the list. Values are:
  • Disabled
  • Enabled
  • Off
Small, 61.0 61.0
#### See Also - [List Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_metadata.htm "Metadata that describes a list.") # List Object Column List object column.
Property Name Type Description Filter Group and Version Available Version
alias String Alias for the column. Small, 61.0 61.0
dataType String Data type for the column. Values are:
  • Address
  • Anytype
  • Base64
  • Boolean
  • ComboBox
  • ComplexValue
  • Currency
  • Date
  • DateTime
  • Double
  • Email
  • EncryptedString
  • Int
  • JunctionIdList
  • Location
  • Long
  • MultiPicklist
  • Percent
  • Phone
  • Picklist
  • Reference
  • String
  • TextArea
  • Time
  • Url
Small, 61.0 61.0
defaultFilter​Operator String Default filter operator for the column. Small, 61.0 61.0
displayable Boolean Indicates whether the column is displayable (true) or not (false). Small, 61.0 61.0
fieldApiName String Field API name for the column. Small, 61.0 61.0
filterable Boolean Indicates whether the column is filterable (true) or not (false). Small, 61.0 61.0
label String Label for the column. Small, 61.0 61.0
picklistValues List Object Picklist Value[] List of allowed picklist values for the column. Small, 61.0 61.0
quickFilter​Operator String Operator to use for quick filters on the column. Small, 64.0 64.0
quickFilter​Overrides List Object Quick Filter Overrides Optional overrides to use for quick filters on the column. Small, 64.0 64.0
quickFilterable Boolean Indicates whether the column can have quick filters (true) or not (false). Small, 64.0 64.0
sortable Boolean Indicates whether the column is sortable (true) or not (false). Small, 61.0 61.0
supportedFilter​Operators String[] Supported filter operators for the column. Values are:
  • Contains
  • Equals
  • Excludes
  • GreaterOrEqual
  • GreaterThan
  • Includes
  • LessOrEqual
  • LessThan
  • NotContain
  • NotEqual
  • StartsWith
  • Within
Small, 61.0 61.0
#### See Also - [List Object Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_object_info.htm "List object info.") # List Object Info List object info.
Property Name Type Description Filter Group and Version Available Version
availableScopes List Object Scope[] Information about available scopes for the object. Small, 61.0 61.0
columns List Object Column[] Information about available columns for the object. Small, 61.0 61.0
createable Boolean Indicates whether a new list for the object can be created (true) or not (false). Small, 61.0 61.0
objectApiName String Object API name. Small, 61.0 61.0
public​Createable Boolean Indicates whether the context user can create a public list view for the object (true) or not (false).

If publicCreateable is true, sharedCreateable is also true.

Small, 67.0 67.0
publicOrShared​Createable Boolean Indicates whether the context user can create a public list view for the object (true) or not (false).

This property is deprecated in version 67.0 In version 67.0 and later, we recommend using publicCreateable or shared​Createable for this information.

Small, 61.0 61.0
relatedEntity​ApiName String API name of the related object to which this list can be scoped, or null. Small, 61.0 61.0
shared​Createable Boolean Indicates whether the context user can create a shared list view for the object (true) or not (false). Small, 67.0 67.0
#### See Also - [Get Metadata for a List View Object](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_lists_object_md_get.htm "Get metadata for a list view object.") # List Object Picklist Value List object picklist value. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | apiName | String | API name for the picklist value. | Small, 61.0 | 61.0 | | label | String | Label for the picklist value. | Small, 61.0 | 61.0 | #### See Also - [List Object Column](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_object_column.htm "List object column.") # List Object Quick Filter Overrides List object column quick filter overrides. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | dataType | String | Data type to use for quick filters for the column. | Small, 64.0 | 64.0 | | picklistValues | Map\[\] | Picklist values to use for quick filters for the column. | Small, 64.0 | 64.0 | #### See Also - [List Object Column](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_object_column.htm "List object column.") # List Object Scope List object scope. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | apiName | String | API name for the scope. | Small, 61.0 | 61.0 | | availableEntities | [List Object Scope Available Entity](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_object_scope_available_entity.htm "List object scope available entity, such as a group or queue.")\[\] | Available entities, such as groups or queues, for the scope. | Small, 61.0 | 61.0 | | label | String | Label for the scope. | Small, 61.0 | 61.0 | #### See Also - [List Object Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_object_info.htm "List object info.") # List Object Scope Available Entity List object scope available entity, such as a group or queue. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | id | String | ID for the available entity. | Small, 61.0 | 61.0 | | label | String | Label for the available entity. | Small, 61.0 | 61.0 | #### See Also - [List Object Scope](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_object_scope.htm "List object scope.") # List Order By Info Ordering information for a list. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | fieldApiName | String | The API name for the field. | Small, 42.0 | 42.0 | | isAscending | Boolean | Indicates whether the list column is ascending or descending. | Small, 42.0 | 42.0 | | label | String | The localized label of the field. | Small, 42.0 | 42.0 | #### See Also - [Get List View Records and Metadata (Deprecated)](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_list_views_records_md.htm "Get record data and metadata for a list view.") - [List Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_metadata.htm "Metadata that describes a list.") - [Related List Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_related_list_metadata.htm "Metadata that describes a related list.") - [Related List User Preferences](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_related_list_user_preferences.htm "User preferences for a related list.") - [List Preferences](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_preferences.htm "List preferences.") # List Order By Input Information describing how to order a related list. This request body supports sorting related lists only by one field. Use this request body to update a related list. Example This example uses a request body to update the metadata for the Contracts related list for the Account object: PATCH /services/data/v68.0/ui-api/related-list-info/Account/Contracts { "orderedByInfo" : \[{ "fieldApiName": "Name", "isAscending" : true }\], "userPreferences" : { "columnWidths" : { "Name" : -1 }, "columnWrap" : { "Name" : false } } } Properties | Name | Type | Description | Required or Optional | Available Version | | --- | --- | --- | --- | --- | | fieldApiName | String | The API name for the field. | Optional | 50.0 | | isAscending | Boolean | Indicates whether the list column is ascending or descending. | Optional | 50.0 | #### See Also - [Related List Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_related_list_input.htm "A related list to update.") - [Related List User Preferences Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_related_list_user_preferences_input.htm "User preferences to update for a related list.") - [List Preferences Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_list_preferences_input.htm "List preferences to update.") - [Lookup Post Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_lookup_post_input.htm "Get lookup field suggestions.") # List Preferences List preferences. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | columnWidths | Map | Column width preferences for the list. | Small, 61.0 | 61.0 | | columnWrap | Map | Column wrapping preferences for the list. | Small, 61.0 | 61.0 | | listReference | [List Reference](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_reference.htm "The list view referenced by the collection or metadata.") | Reference information for the list. | Small, 61.0 | 61.0 | | orderedBy | [List Order By Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_order_by_info.htm "Ordering information for a list.")\[\] | Ordering preference for the list. | Small, 61.0 | 61.0 | #### See Also - [Get List View Preferences](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_list_preferences_get.htm "Get list view preferences.") - [Update List View Preferences](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_list_preferences_update.htm "Update list view preferences.") # List Preferences Input List preferences to update. Example This example updates list preferences for the All Accounts list view. PATCH /services/data/v68.0/ui-api/list-preferences/Account/AllAccounts { "columnWidths" : { "Name" : 200 }, "columnWrap" : { "Name" : false }, "orderedBy" : \[{ "fieldApiName": "Name", "isAscending" : true }\] } Properties
Name Type Description Required or Optional Available Version
columnWidths Map<String, Integer> Column width preferences to update. If you pass a null value, preferences reset to the default. Optional 61.0
columnWrap Map<String, Boolean> Column wrap preferences to update. If you pass a null value, preferences reset to the default. Optional 61.0
orderedBy List Order By Input[] Ordering preferences to update. If you pass a null value, preferences reset to the default.

In API version 63.0 and later, you can sort by up to five columns. In earlier versions, results are sorted by the first column.

Optional 61.0
#### See Also - [Update List View Preferences](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_list_preferences_update.htm "Update list view preferences.") # List Record Collection A collection of list view records. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | count | Integer | The total count of records returned. | Small, 43.0 | 43.0 | | currentPageToken | String | The token for the current page of records. | Small, 43.0 | 43.0 | | currentPageUrl | String | The URL of the current page of records. | Small, 43.0 | 43.0 | | fields | String\[\] | List of fields specified in the request. If a field isn’t available to the user, an error occurs. | Small, 48.0 | 48.0 | | listInfoETag | String | An [ETag](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_get_started_intro.htm#ui_api_get_started_intro "Learn the high-level facts about how to use User Interface API. How do you authenticate? How is the API versioned? What are the rate limits? All the information you need, available at a glance.") that indicates whether the metadata has changed. | Small, 42.0 | 42.0 | | listReference | [List Reference](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_reference.htm "The list view referenced by the collection or metadata.") | The list the records belong to. | Small, 48.0 | 48.0 | | nextPageToken | String | The token for the next page of records. | Small, 43.0 | 43.0 | | nextPageUrl | String | The URL of the next page of records. | Small, 43.0 | 43.0 | | optionalFields | String\[\] | Optional fields specified in the request. If a field isn’t available to the user, no error occurs and the field isn’t included in the response. | Small, 48.0 | 48.0 | | pageSize | Integer | The number of list records viewed at one time. The default value is 50. | Small, 48.0 | 48.0 | | previousPageToken | String | The token for the previous page of records. | Small, 43.0 | 43.0 | | previousPageUrl | String | The URL of the previous page of records. | Small, 43.0 | 43.0 | | records | [Record](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record.htm#ui_api_responses_record "The field data, API name, child relationship data, and record type information for a record.")\[\] | A collection of records. | Small, 43.0 | 43.0 | | searchTerm | String | Search term specified in the request. | Small, 61.0 | 61.0 | | sortBy | String | The API name of the field the list view is sorted by. If the name is preceded with \-, the sort order is descending. | Small, 48.0 | 48.0 | | where | String | Where string specified in the request. | Small, 61.0 | 61.0 | #### See Also - [Get Most Recently Used List View Records (Deprecated)](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_mru_list_views_records.htm "Get record data for an object’s most recently used (MRU) list view.") - [Get List View Records with URL Parameters](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_list_views_records.htm "Get record data for a list view using URL parameters.") - [Get List View Records with a Request Body](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_list_view_records_post.htm "Get record data for a list view using a request body.") - [List UI](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_ui.htm "The record data and metadata for a list view.") # List Records Input Record data to query for a list view. Example This example uses a request body to query a list view named All Accounts. POST /services/data/v68.0/ui-api/list-records/Account/AllAccounts { "fields": \["Name", "Type", "AnnualRevenue", "CreatedDate"\], "pageSize" : 10, "sortBy": \["CreatedDate"\], "searchTerm" : "United", "where": "{AnnualRevenue: { gt: 1000000}}" } This example uses the special \_\_Recent list view API name to get the record data for the most recently used (MRU) list view for accounts. POST /services/data/v68.0/ui-api/list-records/Account/\_\_Recent Properties
Name Type Description Required or Optional Available Version
fields String[] Additional fields queried for the records returned. These fields don’t create visible columns. If the field isn’t available to the user, an error occurs. Optional 61.0
optionalFields String[] Additional fields queried for the records returned. These fields don’t create visible columns. If the field isn’t available to the user, no error occurs and the field isn’t included in the records. Optional 61.0
pageSize Integer The number of list records viewed at one time. The default value is 50. Value can be 1–2000. Optional 61.0
pageToken String A token that represents the page offset. To indicate where the page starts, use this value with the pageSize parameter. The maximum offset is 2000 and the default is 0. Optional 61.0
searchTerm String Search term to filter the results. Wildcards are supported. Optional 61.0
sortBy String[] The API names of the fields the list view is sorted by. If the name is preceded with -, the sort order is descending. For example, Name sorts by name in ascending order. -CreatedDate sorts by created date in descending order.

In API version 63.0 and later, you can sort by up to five fields.

Optional 61.0
where String The filter applied to returned records, in GraphQL syntax. For example, { and: [ { StageName: { eq: "Prospecting" } }, { Account: { Name: { eq: "Dickenson plc" } } } ] } filters an Opportunity related list to show only opportunities in the Prospecting stage that are linked to the “Dickenson plc” account. Optional 61.0
#### See Also - [Get List View Records with a Request Body](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_list_view_records_post.htm "Get record data for a list view using a request body.") # List Reference The list view referenced by the collection or metadata. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | id | String | The list view ID. | Small, 42.0 | 42.0 | | listViewApiName | String | The list view's API name, for example, AllAccounts | Small, 43.0 | 43.0 | | objectApiName | String | A [supported](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_get_started_supported_objects.htm#ui_api_get_started_supported_objects "User Interface API supports all custom objects and external objects and many standard objects.") object, such as Account. | Small, 42.0 | 42.0 | | type | String | The list view type. | Small, 42.0 | 42.0 | #### See Also - [List Record Collection](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_record_collection.htm "A collection of list view records.") - [List Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_metadata.htm "Metadata that describes a list.") - [List Preferences](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_preferences.htm "List preferences.") # List Scope List scope. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | apiName | String | API name for the scope. | Small, 61.0 | 61.0 | | entity | [List Scope Entity](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_scope_entity.htm "List scope entity.") | Entity for the scope. | Small, 61.0 | 61.0 | | label | String | Label for the scope. | Small, 61.0 | 61.0 | | relatedEntity | [List Scope Related Entity](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_scope_related_entity.htm "List scope related entity.") | Related entity for the scope. | Small, 61.0 | 61.0 | #### See Also - [List Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_metadata.htm "Metadata that describes a list.") # List Scope Entity List scope entity. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | id | String | ID of the scope entity. | Small, 61.0 | 61.0 | | label | String | Label for the scope entity. | Small, 61.0 | 61.0 | #### See Also - [List Scope](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_scope.htm "List scope.") # List Scope Input List scope to update or create. JSON example { "apiName": "entity", "entityId": "00Gxx000000sjI8", "relatedEntityId": "701xx000003HZ7X" } Properties | Name | Type | Description | Required or Optional | Available Version | | --- | --- | --- | --- | --- | | apiName | String | API name of the list’s scope. | Optional | 61.0 | | entityId | String | ID of the scope’s entity. | Optional | 61.0 | | relatedEntityId | String | ID of the related entity for the scope. | Optional | 61.0 | #### See Also - [List Info Post Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_list_info_post_input.htm "Info to create a list.") - [List Info Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_list_info_input.htm "Info to update a list.") # List Scope Related Entity List scope related entity. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | id | String | ID of the scope entity. | Small, 61.0 | 61.0 | | label | String | Label for the scope entity. | Small, 61.0 | 61.0 | | type | String | Type of scope entity. | Small, 61.0 | 61.0 | #### See Also - [List Scope](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_scope.htm "List scope.") # List UI The record data and metadata for a list view. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | info | [List Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_metadata.htm#ui_api_responses_list_metadata "Metadata that describes a list.") | The metadata for the list view. | Small, 42.0 | 42.0 | | records | [List Record Collection](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_record_collection.htm#ui_api_responses_list_record_collection "A collection of list view records.") | The record data for the list view. | Small, 42.0 | 42.0 | #### See Also - [Get Most Recently Used List View Records and Metadata (Deprecated)](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_mru_list_views_records_md.htm "Get record data and metadata for an object’s most recently used (MRU) list view.") - [Get List View Records and Metadata (Deprecated)](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_list_views_records_md.htm "Get record data and metadata for a list view.") # List User Preference User preferences for the list view. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | columnWidths | Map | Column width preferences for the list view. Maps a column name to a width. | Small, 42.0 | 42.0 | | columnWrap | Map | Column wrapping preferences for the list view. Maps a column name to a boolean that indicates whether the column text wraps. | Small, 42.0 | 42.0 | #### See Also - [Get List View Records and Metadata (Deprecated)](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_list_views_records_md.htm "Get record data and metadata for a list view.") - [List Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_metadata.htm "Metadata that describes a list.") - [Related List Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_related_list_metadata.htm "Metadata that describes a related list.") # List User Preference Input A related list user preferences to update. Example This example uses a request body to update the metadata for the Contracts related list for the Account object: PATCH /services/data/v68.0/ui-api/related-list-info/Account/Contracts { "orderedByInfo" : \[{ "fieldApiName": "Name", "isAscending" : true }\], "userPreferences" : { "columnWidths" : { "Name" : -1 }, "columnWrap" : { "Name" : false } } } Properties | Name | Type | Description | Required or Optional | Available Version | | --- | --- | --- | --- | --- | | columnWidths | Map | Column width preferences.\-1 indicates default width. | Optional | 50.0 | | columnWrap | Map | Indicates whether the column text wraps. | Optional | 50.0 | #### See Also - [Related List Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_related_list_input.htm "A related list to update.") # List View Summary A summary of list views for an object. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | apiName | String | The list view's object API name. | Small, 43.0 | 43.0 | | id | String | ID of the list view. | Small, 43.0 | 43.0 | | label | String | The list view's label. | Small, 43.0 | 43.0 | | listUiUrl | String | The list view’s UI URL. | Small, 43.0 | 43.0 | #### See Also - [List View Summary Collection](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_view_summary_collection.htm "A collection of list views for a given object.") # List View Summary Collection A collection of list views for a given object. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | count | Integer | The total number of list views returned. | Small, 43.0 | 43.0 | | currentPageToken | String | The pageToken of the current page of list views. | Small, 43.0 | 43.0 | | currentPageUrl | String | The URL of the current page of list views. | Small, 43.0 | 43.0 | | lists | [List View Summary](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_view_summary.htm "A summary of list views for an object.") | Collection of list views for the given object | Small, 43.0 | 43.0 | | nextPageToken | String | The pageToken of the next page of list views. | Small, 43.0 | 43.0 | | nextPageUrl | String | The URL of the next page of list views | Small, 43.0 | 43.0 | | objectApiName | String | A [supported](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_get_started_supported_objects.htm#ui_api_get_started_supported_objects "User Interface API supports all custom objects and external objects and many standard objects.") object, such as Account. | Small, 48.0 | 48.0 | | pageSize | Integer | The number of list records viewed at one time. The default value is 20. | Small, 48.0 | 48.0 | | previousPageToken | String | The pageToken of the previous page of list views. | Small, 43.0 | 43.0 | | previousPageUrl | String | The URL of the previous page of list views. | Small, 43.0 | 43.0 | | queryString | String | The query string used in the query parameter. | Small, 48.0 | 48.0 | | recentListsOnly | Boolean | Show only recently viewed lists. The default value is false. | Small, 48.0 | 48.0 | #### See Also - [Get List Views for an Object (Deprecated)](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_list_views_object.htm "Get a collection of list views associated with an object.") # List View Supported Objects List views support a subset of the standard objects that User Interface API supports. For general information about supported objects, see [Supported Objects](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_get_started_supported_objects.htm "User Interface API supports all custom objects and external objects and many standard objects."). This list includes the standard objects supported for list views. As of Summer ’23, all new standard objects are auto-enabled for UI API usage. This list might not reflect the latest object support. To check if list views are supported for a specific object in UI API, use the [/ui-api/list-info/{objectApiName} resource](https://developer.salesforce.com/docs/atlas.en-us.264.0.uiapi.meta/uiapi/ui_api_resources_lists_object_get.htm). - AcademicSession - AcademicTerm - AcademicTermEnrollment - AcademicYear - Account - AccountAccountRelation - AccountBrand - AccountForecast - AccountParticipant - Accreditation - AcctMgrTarget - ActionableList - ActionCadence - ActionPlan - ActionPlanBaseTemplateAsgn - ActionPlanItem - ActionPlanTemplate - ActionPlanTemplateAssignment - ActionPlanTemplateItem - ActionPlanTemplateItemValue - ActionPlanTemplateVersion - ActionPlnTmplItmDependency - ActionVisibility - ActivityTiming - AdBuyServerAccount - AdCreativeSizeType - AddOnDefinition - Address - AdOpportunity - AdOrderItem - AdOrderItemCreativeSizeType - AdOrderItemPrintIssue - AdOrderItemUnitsSplit - AdOrderLineAdTarget - AdPageLayoutType - AdProductDefaultTargetCategory - AdProductTargetCategory - AdQuote - AdQuoteLineCreativeSizeType - AdQuoteLinePrintIssue - AdQuoteLineUnitsSplit - AdServer - AdServerUser - AdSpaceSpecification - AdTargetCategory - AdTargetCategorySegment - AdUsage - AdUsageSummary - AdvAccountForecastFact - AdvAcctForecastSetPartner - AdvAcctForecastSetUse - AffinityScore - AiDataset - AirTravelEmssnFctr - AirTravelEnrgyUse - AISentimentResult - AiVisionModel - AiVisionModelMetric - AiVisionModelObjectMetric - AiVisitRecommendation - AiVisitRecommendRequest - AiVisitSummary - AiVisitTaskRcmd - AiVisitTaskRcmdRequest - AltenativePaymentMethod - AnnualEmssnInventory - AnnualEmssnRdctnTarget - AntiCorruptionInitSum - ApiAnomalyEventStore - ApplicationCase - ApplicationDecision - ApplicationFormTemplate - ApplicationRecommendation - ApplicationRecommender - ApplicationReview - ApplicationTimeline - AppointmentInvitation - AppointmentInvitee - AppointmentTopicTimeSlot - ApptBundleAggrDurDnscale - ApptBundleAggrPolicy - ApptBundleConfig - ApptBundlePolicy - ApptBundlePolicySvcTerr - ApptBundlePropagatePolicy - ApptBundleRestrictPolicy - ApptBundleSortPolicy - ApptReasonEngmtChannelType - AsmtQstnRespRecommendation - Assessment - AssessmentEnvelope - AssessmentEnvelopeItem - AssessmentIndicatorDefinition - AssessmentQuestion - AssessmentQuestionAssignment - AssessmentQuestionResponse - AssessmentQuestionSet - AssessmentQuestionVersion - AssessmentSignature - AssessmentTask - AssessmentTaskDefinition - AssessmentTaskOrder - Asset - AssetAccountParticipant - AssetContactParticipant - AssetDowntimePeriod - AssetMilestone - AssetStatePeriod - AssetWarranty - AssignedResource - AssociatedLocation - AssortmentProduct - AsyncOperationLog - AttributeCategory - AttributePicklist - AttributePicklistValue - AuthApplicationAsset - AuthApplicationPlace - AuthorizationFormConsent - AuthorizedInsuranceLine - AuthorNote - AuthProvider - Award - BackgroundOperation - BatchJob - BatchJobDefinition - BatchJobPart - BatchJobPartFailedRecord - BenefitAssignment - BenefitAssignmentAdjustment - BenefitDisbursement - BenefitDisbursementAdj - BenefitSchedule - BenefitSession - BenefitType - BillingBatchFilterCriteria - BillingBatchScheduler - BillingTreatmentItem - BldgEnrgyIntensity - BldgEnrgyIntensityVal - BldgSizeCategory - BoardCertification - BroadcastCommAudience - BroadcastCommunication - BroadcastTopic - Budget - BudgetAllocation - BudgetCategory - BudgetCategoryValue - BudgetPeriod - BundledCareFeeAgreement - BusinessAlert - BusinessAlertStatus - BusinessBrand - BusinessLicense - BusinessLicenseApplication - BusinessMilestone - BusinessProfile - BusinessType - BusRegAuthorizationType - BuyerGroupPricebook - Campaign - CapitationCareFeeAgreement - CardPaymentMethod - CareBarrier - CareBarrierType - CareBenefitVerifyRequest - CareDeterminant - CareDeterminantType - CareDiagnosis - CareEpisode - CareEpisodeDetail - CareFeeScheduleItem - CareInterventionType - CareMetricTarget - CarePgmEnrolleeWkOrdStep - CarePgmEnrolleeWorkOrderv - CarePgmProvHealthcareProvider - CarePlan - CarePlanActivity - CarePlanActivityDetail - CarePlanDetail - CarePlanTemplate - CarePlanTemplateBenefit - CarePlanTemplateGoal - CarePlanTemplateProblem - CarePreauth - CarePreauthItem - CareProgram - CareProgramCampaign - CareProgramEligibilityRule - CareProgramEnrollee - CareProgramEnrolleeProduct - CareProgramEnrollmentCard - CareProgramGoal - CareProgramProduct - CareProgramProvider - CareProgramTeamMember - CareProviderAdverseAction - CareProviderFacilitySpecialty - CareProviderSearchableField - CareRegisteredDevice - CareRequest - CareRequestDrug - CareRequestExtension - CareRequestItem - CareRequestReviewer - CareSpecialty - CareSpecialtyTaxonomy - CareTaxonomy - CartDeliveryGroup - CartItem - CartTax - Case - CaseComment - CaseParticipant - CaseProgram - CaseRelatedFile - CaseRelatedIssue - CategorizedCareFeeAgreement - ChangeRequest - ChangeRequestRelatedIssue - ChannelProgram - ChannelProgramLevel - Claim - ClaimCase - ClaimCoverage - ClaimCoveragePaymentDetail - ClaimCoverageReserveDetail - ClaimCovPaymentAdjustment - ClaimCovReserveAdjustment - ClaimItem - ClaimParticipant - ClaimPaymentSummary - ClaimPayoutPlan - ClaimRecovery - ClaimTeamMember - ClinicalDetectedIssue - ClinicalDetectedIssueDetail - ClinicalEncounter - ClinicalEncounterDiagnosis - ClinicalEncounterFacility - ClinicalEncounterProvider - ClinicalEncounterReason - CloudServiceProvider - CodeSet - CodeSetBundle - CodeSetRelationship - CollaborationRoom - CommissionSchedule - CommissionScheduleAssignment - CommsRegionDiscount - CommsVolumeDiscount - ComplaintCase - ComplaintParticipant - ConstituentRole - Contact - ContactContactRelation - ContactEncounter - ContactEncounterParticipant - ContactPointAddress - ContactProfile - ContactRequest - ContentDocument - ContentNote - ContentVersion - Contract - ContractDocumentVersion - ContractDocVerContentDoc - ContractDocVersionSection - ContractGroupPlan - ContractGroupPlanGroupClass - ContractLineItem - ContractPaymentAgreement - ConversationBroadcastEntry - Coupon - CourseOffering - CourseOfferingParticipant - CourseOfferingPtcpResult - CourseOfferingSchedule - CourseOfferingScheduleTmpl - CourtAction - CourtActionOutcome - CoverageBenefit - CoverageBenefitItem - CoverageType - CrbnCreditAlloc - CrbnCreditAllocItem - CrbnCreditDistribution - CrbnCreditProject - CrbnEmssnScopeAlloc - CrbnEmssnScopeAllocVal - CredentialStuffingEventStore - CreditMemo - CreditMemoAddressGroup - CreditMemoInvApplication - CreditMemoLine - Crisis - CryptoTransEnvelopeChgLog - Customer - CustomerProperty - CustomObjectParticipant - DataLakeObjectInstance - DelegatedAccount - DeleteEvent - DeliveryTask - DiagnosticSummaryDetail - DigitalSignature - DigitalWallet - Disclosure - DisclsReportingPeriod - DistributorAuthorization - DivrsEquityInclSum - DocumentChecklistItem - DocumentClause - DocumentClauseSet - DocumentEnvelope - DocumentTemplate - DuplicateRecordItem - DuplicateRecordSet - DynamicDataCapture - EconomicPerformanceSum - EditionDefinition - EducationalInfoRequest - ElectricityEmssnFctrSet - EmailContent - EmailTemplate - EmissionsActivity - EmissionsForecastFact - EmpBenefitSummary - Employee - EmployeeCrisisAssessment - EmployeeDemographicSum - EmployeeDevelopmentSum - EmpUserProvisioningProcess - EmpUserProvisionProcessErr - EmssnRdctnCommitment - EmssnReductionTarget - EnablementProgram - EngagementAttendee - EngagementChannelWorkType - EngagementInteraction - EngagementTopic - Entitlement - EntityMilestone - EnvironmentalRisk - EnvironmentHubMember - Examination - Expense - ExpenseReport - ExpenseReportEntry - ExpressionSetView - ExtDataShare - ExtDataShareTarget - FeeScheduleDefinition - FieldPermissions - FinanceTransactionErrorLog - FinancialDeal - FinancialDealAsset - FinancialDealBid - FinancialDealInteraction - FinancialDealParticipant - FinancialDealParty - FinancialDealProduct - FinclDealInteractionSummary - FlowOrchestrationInstance - FlowOrchestrationLog - FlowOrchestrationWorkItem - FrgtHaulingEmssnFctr - FrgtHaulingEnrgyUse - FulfillmentOrder - FulfillmentOrderLineItem - FundingAward - FundingAwardAmendment - FundingAwardRequirement - FundingDisbursement - FundingOpportunity - GeneratedDocument - GeneratedWaste - GenericVisitTask - GenericVisitTaskContext - GeoCountry - GeoState - GnrcVstKeyPerformanceInd - GnrcVstTaskContextRelation - GoalAssignment - GoalAssignmentDetail - GoalDefinition - GovtFinancialAsstSum - GroundTravelEmssnFctr - GroundTravelEnrgyUse - GroupCensus - GroupCensusMember - GroupCensusMemberPlan - GroupClass - GroupClassContribution - HealthCareDiagnosis - HealthcareFacilityNetwork - HealthcarePayerNetwork - HealthcarePractitionerFacility - HealthCareProcedure - HealthcareProvider - HealthcareProviderNpi - HealthcareProviderSpecialty - HealthcareProviderTaxonomy - HealthCondition - HealthConditionDetail - HealthScore - HealthScoreActionLog - HotelStayEmssnFctr - HotelStayEnrgyUse - IdentityDocument - Image - Incident - IncludedLicenseDefinition - Individual - IndividualApplication - IndividualApplicationItem - InflationRate - InspectionAssessmentInd - InsPolicyTransactionDetail - InStoreLocation - InsuranceClaimAsset - InsuranceContract - InsurancePolicy - InsurancePolicyAsset - InsurancePolicyCoverage - InsurancePolicyMemberAsset - InsurancePolicyParticipant - InsurancePolicySurcharge - InsurancePolicyTransaction - InsuranceProfile - IntegrationProviderDef - Interaction - InteractionAttendee - InteractionParticipant - InteractionRelatedAccount - InteractionSumDiscussedAccount - InteractionSummary - InteractionSummaryParticipant - InterestTag - InventoryItemReservation - InventoryReservation - Invoice - InvoiceAddressGroup - InvoiceBatchRun - InvoiceBatchRunCriteria - InvoiceBatchRunRecovery - InvoiceLine - JobProfile - JournalReason - JournalSubType - JournalType - KnowledgeArticleVersion—See [Salesforce Knowledge Developer Guide](https://developer.salesforce.com/docs/atlas.en-us.264.0.knowledge_dev.meta/knowledge_dev/knowledge_development_uiapi_limitations.htm) for UI API limitations. - Lead - LearnerProgram - LearnerProgramRequirement - LearnerProgramRqmtProgress - Learning - LearningAchievement - LearningCourse - LearningFoundationItem - LearningOutcomeItem - LearningProgram - LearningProgramPlan - LearningProgramPlanRqmt - LegalEntity - LicensingSnapshotRequest - ListEmail - Location - LocationGroup - LocationWaitlist - LocationWaitlistedParty - LoyaltyAggrPointExprtLedger - LoyaltyLedger - LoyaltyMemberCurrency - LoyaltyMembershipLifecycle - LoyaltyMemberTier - LoyaltyPartnerProduct - LoyaltyPgmEngmtAttribute - LoyaltyPgmEngmtAttrProm - LoyaltyPgmGroupMbrRlnsp - LoyaltyPgmMbrAttributeVal - LoyaltyPgmPartnerCurrency - LoyaltyPgmPartnerPromotion - LoyaltyPgmPtnrLdgrSummary - LoyaltyPgmPtnrPrepaidPack - LoyaltyProgram - LoyaltyProgramBadge - LoyaltyProgramCurrency - LoyaltyProgramMbrPromotion - LoyaltyProgramMember - LoyaltyProgramMemberBadge - LoyaltyProgramMemberCase - LoyaltyProgramMemberMerge - LoyaltyProgramPartner - LoyaltyProgramPartnerLedger - LoyaltyProgramProcess - LoyaltyProgramWidget - LoyaltyTier - LoyaltyTierBenefit - LoyaltyTierGroup - Macro - MaintenancePlan - MaintenanceWorkRule - ManufacturingProgram - MarketingForm - MarketingLink - MarketingLinkContent - MarketSegment - MediaChannel - MediaContentTitle - MediaPrintIssue - MediaTitleAvailability - MediaTitleReleaseDate - MediaTitleRevenue - MedicationDispense - MedicationReconciliation - MedicationStatementDetail - MedicationTherapyReview - MedicationTherapyStmtReview - MedicinalIngredient - MedReconRecommendation - MedReconStmtRecommendation - MedTherapyStmtReviewIssue - MemberBenefit - MemberPlan - MerchantAccount - MessagingChannel - MessagingSession - MfgProgramCpntFrcstFact - MfgProgramForecastFact - MfgProgramVariantFrcstFact - MktAiPredictiveInsight - MktDataTransform - Network - NetworkReferencedObject - ObjectPermissions - ObjectStateActionDefinition - ObjectStateTransitionAction - OcrDocumentScanResult - OmniAssessmentTask - OmniDataTransform - OmniDataTransformItem - OmniESignatureTemplate - OmniInteractionConfig - OmniProcess - OmniProcessAsmtQuestionVer - OmniProcessCompilation - OmniProcessElement - OmniScriptSavedSession - OmniUiCard - OperatingHours - OperatingHoursHoliday - Opportunity - OpportunityParticipant - OpportunityPreferredSeller - Order - OrderChangeLog - OrderItemRelationship - OrderPaymentSummary - OrderSummary - OrgIncidentSummary - OtherEmssnFctrSet - OtherEmssnFctrSetItem - PartnerFundAllocation - PartnerFundClaim - PartnerFundRequest - PartnerMarketingBudget - PartyCertifiedCapacity - PartyIdentityVerification - PartyIdentityVerificationStep - PartyIncome - PartyProfile - PartyProfileAddress - PartyProfileRisk - PartyRelationshipGroup - PartyRoleRelation - PartyScreeningStep - PartyScreeningSummary - PatientImmunization - Payment - PaymentAuthorization - PaymentBatchRun - PaymentBatchRunCriteria - PaymentGateway - PaymentGatewayProvider - PaymentIntent - PaymentLineInvoice - PaymentRequest - PaymentRequestLine - PaymentSchedule - PaymentScheduleItem - PaymentSchedulePolicy - PaymentScheduleTreatment - PaymentScheduleTreatmentDtl - PaymentTerm - PaymentTermItem - PcmtEmssnFctrSet - PcmtEmssnFctrSetItem - PercentileBsdCareFeeAgreement - PermissionSet - PermissionSetGroup - PermissionSetLicense - PersonDisability - PersonEducation - PersonEmployment - PersonExamination - PersonLanguage - PersonLifeEvent - PersonName - PgmRebateTypBnftMapping - PickTicket - PickTicketAssignment - PickTicketProduct - PlanBenefit - PlanBenefitItem - PlatformLicenseDefinition - PreliminaryApplicationRef - PreventiveCareAgreement - PriceAdjustmentSchedule - Pricebook2 - PricebookEntry - PriceList - PricingHeader - PricingLineItem - PricingProduct - PrivacyHold - PrivacyHoldReason - PrivacyJobSession - PrivacyPolicy - PrivacyRequest - Problem - ProblemDefinition - ProblemGoalDefinition - ProblemIncident - ProcessException - Producer - ProducerCommission - ProducerPolicyAssignment - Product2 - ProductAttributeDefinition - ProductCatalog - ProductCategory - ProductCategoryAttribute - ProductCategoryServiceProcess - ProductComponentGroup - ProductConsumed - ProductConsumedState - ProductCoverage - ProductEmissionsFactor - ProductFaultCode - ProductItem - ProductItemTransaction - ProductLaborCode - ProductLicenseMap - ProductOverridePathItem - ProductQuantityRule - ProductRelatedMaterial - ProductRelationshipType - ProductRelComponentOverride - ProductRequest - ProductRequestLineItem - ProductRequired - ProductSellingModelOption - ProductServiceCampaign - ProductServiceCampaignItem - ProductTransfer - ProductTransferState - ProductWarrantyTerm - Program - ProgramEnrollment - ProgramProduct - ProgramRebateType - ProgramRebateTypeBenefit - ProgramRebateTypeFilter - ProgramRebateTypePayout - ProgramRebateTypeProduct - ProgramRebateTypeReference - ProgramRebateTypPayoutSrc - ProgramTermApplnTimeline - Promotion - PromotionChannel - PromotionLoyaltyPtnrProdt - PromotionMarketSegment - PromotionProduct - PromotionProductCategory - PromotionQualifier - PromotionSegment - PromotionSegmentBuyerGroup - PromotionSegmentSalesStore - PromotionTarget - PromotionTier - ProrationPolicy - ProviderNetworkContract - ProviderNetworkTier - ProviderSearchSyncLog - PublicApplicationParticipant - PublicProgram - PurchaserPlan - PurchaserPlanAssn - PurchaseQuantityRule - PymtSchdDistributionMethod - Quote - QuoteDocument - QuoteLineItemAttribute - RebateClaim - RebateMemberAggregateItem - RebateMemberProductAggregate - RebatePayment - RebatePayoutAdjustment - RebateProgram - RebateProgramMember - RebateProgramMemberPayout - RebateProgramPayoutPeriod - ReceivedDocument - ReceivedDocumentType - Recommendation - RecordAlert - RecordsetFilterCriteria - RecordsetFilterCriteriaRule - RecordsetFltrCritMonitor - ReferencedDashboard - Referral - RefrigerantEmssnFctr - RefundLinePayment - RegionStatusDiscount - RegulatoryAuthority - RegulatoryAuthorizationType - RegulatoryCode - RegulatoryCodeAssessmentInd - RegulatoryCodeUse - RegulatoryCodeViolation - RegulatoryTrxnFee - RegulatoryTrxnFeeItem - ReinsAgreementLineItem - ReinsPolicyBordereauFact - ReinsProtocolProdtComponent - ReinsuranceAgreement - ReinsuranceProtocol - ReinsuranceProtocolAgreement - RentalCarEmssnFctr - RentalCarEnrgyUse - ReplyText - Report - ReportAnomalyEventStore - ReportedConsumption - ResourceAbsence - ResourcePreference - RetailLocationGroup - RetailStore - RetailVisitKpi - ReturnOrder - ReturnOrderItemAdjustment - ReturnOrderLineItem - RevRecogTreatmentItemGroup - RevenueDistributionMethod - RevenueElement - RevenueElementDistribution - RevenueRecogTreatmentItem - RevenueRecognitionPolicy - RevenueRecognitionTreatment - RightsQuote - RightsQuoteLineItem - RightsQuoteLineMediaTitle - SalesAgreement - SalesChannel - SalesContractLine - SalesforceContract - SalesforceInvoice - SalesforceQuote - Scope3CrbnFtprnt - Scope3EmssnSrc - Scope3PcmtItem - Scope3PcmtSummary - Scorecard - ScorecardAssociation - SecuritiesHolding - Seller - SerializedProductTransaction - ServiceAppointment - ServiceAppointmentGroup - ServiceContract - ServiceCrew - ServiceCrewMember - ServiceReport - ServiceResource - ServiceResourceSkill - ServiceTerritory - ServiceTerritoryMember - ServiceTerritoryRelationship - SessionHijackingEventStore - SettingUsageDefinition - SettingUsageMap - SharedSavingPaymentAgreement - SharingRecordCollection - SharingRecordCollectionItem - Shift - ShiftEngagementChannel - ShiftPattern - ShiftPatternEntry - ShiftSegmentType - ShiftTemplate - ShiftWorkTopic - Shipment - SignatureTask - SignatureTaskLineItem - SkillLevelDefinition - SkillRequirement - Snippet - SocialContributionSum - SocialPersona - SocialPost - StandardCareFeeAgreement - StnryAssetAnnualFact - StnryAssetCrbnFtprnt - StnryAssetCrbnFtprntItm - StnryAssetEnrgyUse - StnryAssetEnvrSrc - StnryAssetWaterActvty - StnryAssetWaterFtprnt - StnryAssetWtrFtprntItm - StoreActionPlanTemplate - StoreAssortment - StoreIntegratedService - StoreProduct - SuccessTeam - Supplier - SupplierProduct - Survey - SurveyEmailBranding - SurveyInvitation - SurveyQuestion - SurveyQuestionChoice - SurveyResponse - SurveySubject - SustainabilityCntrLine - SustainabilityCredit - SustainabilityPurchase - SustainabilityScorecard - SvcCatalogItemDef - SvcCatalogReqRelatedItem - SvcCatalogRequest - Swarm - SwarmMember - TagCategory - TagCategoryAssignment - TaxDisclosureSummary - TaxEngine - TaxEngineInteractionLog - TaxEngineProvider - TaxRate - Tenant - TenantSecurityNotificationRule - ThreatDetectionFeedback - TimeSheet - TimeSheetEntry - TimeSlot - Topic - TrackedCommunication - TrackedCommunicationDetail - TrainingCourseParticipant - TransactionJournal - TravelMode - TrnCourse - UnitOfMeasure - UnitOfMeasureConversion - UsageFactor - UsageImpactFactor - UsageImpactGroup - UsageImpactGroupFactor - UsageImpactGroupPgmMeasure - UsageImpactGroupVersion - User - UserAccessPolicy - UserAppMenuItem - UserDefinedLabel - UserDefinedLabelAssignment - UserEsignVendorIdentifier - UserFinancialAuthority - UserLicenseDefinition - UserLocationAssignment - UserRole - UserTerritory2AssocLog - Vehicle - VehicleAssetCrbnFtprnt - VehicleAssetEmssnSrc - VehicleAssetEnrgyUse - VehicleDefinition - VehicleUserAssignment - VideoCall - VideoCallParticipant - VideoRecording - ViolationEnforcementAction - ViolationType - ViolationTypeUse - Visit - Visitor - VoiceCall - VolumeDiscount - VolunteerProject - Voucher - VoucherDefinition - WarrantyTerm - WarrantyTermCoverage - WasteFootprint - WasteFootprintItem - WebCart - WebStoreInventorySource - WebStorePricebook - WorkCapacityLimit - WorkCapacityUsage - WorkerCompCoverageClass - WorkOrder - WorkOrderLineItem - WorkPlan - WorkPlanSelectionRule - WorkPlanTemplate - WorkPlanTemplateEntry - WorkProcedure - WorkProcedureStep - WorkStep - WorkStepTemplate - WorkType - WorkTypeCareSpecialty - WorkTypeExtension - WorkTypeGroup - WorkTypeGroupMember - WorkTypeGroupRole - WstDispoEmssnFctrSet - WstDispoEmssnFctrSetItm # Lists Use these resources to get data and metadata about list views and related lists displayed in the Salesforce UI. - **[Get List View Metadata](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_list_views_md.htm)** Get list view metadata. - **[Get a Batch of List View Metadata](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_list_views_md_batch.htm)** Get metadata for a batch of list views. - **[Update List View Metadata](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_list_views_md_patch.htm)** Update list view metadata. - **[Delete List View Metadata](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_list_views_md_delete.htm)** Delete list view metadata. - **[Get List Views for an Object](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_lists_object_get.htm)** Get list views associated with an object. - **[Create a List View for an Object](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_lists_object_post.htm)** Create a list view associated with an object. - **[Get Metadata for a List View Object](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_lists_object_md_get.htm)** Get metadata for a list view object. - **[Get List View Records with URL Parameters](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_list_views_records.htm)** Get record data for a list view using URL parameters. - **[Get List View Records with a Request Body](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_list_view_records_post.htm)** Get record data for a list view using a request body. - **[Get List View Preferences](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_list_preferences_get.htm)** Get list view preferences. - **[Update List View Preferences](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_list_preferences_update.htm)** Update list view preferences. - **[Get Related Lists for an Object](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_related_list_object.htm)** Returns the related lists in an object’s default layout. - **[Get Related List Records with URL Parameters](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_related_list_records.htm)** Returns record data for up to 1,999 records in a related list via URL parameters. - **[Get Related List Records with a Request Body](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_related_list_records_get.htm)** Returns record data for up to 1,999 records in a related list. This resource uses the POST method to let you enter request parameters in the request body instead of the URL. - **[Get Related List Metadata](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_related_list_info_md.htm)** Returns metadata for a related list in a page layout. - **[Get Related List Record Count](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_related_list_count.htm)** Returns the record count for a related list. - **[Get a Batch of Related List Metadata](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_related_list_info_batch.htm)** Returns metadata for a batch of related lists in a page layout. - **[Get a Batch of Related List Records with URL Parameters](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_related_list_records_batch.htm)** Returns record data for a batch of related lists via URL parameters. - **[Get a Batch of Related List Records with a Request Body](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_related_list_records_batch_get.htm)** Returns record data for a batch of related lists. This resource uses the POST method to let you enter request parameters in the request body instead of the URL. - **[Get a Batch of Related List Record Counts](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_related_list_count_batch.htm)** Returns the record count for a batch of related lists. - **[Update Related List Metadata](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_related_list_info_md_patch.htm)** Update metadata for a related list in a page layout. - **[Get Related List User Preferences](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_related_list_preferences_get.htm)** Returns user preferences for a related list. - **[Get a Batch of Related List User Preferences](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_related_list_preferences_batch_get.htm)** Returns a batch of user preferences for a related list. - **[Update Related List User Preferences](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_related_list_preferences_patch.htm)** Updates user preferences for a related list. # Location Field A complex location value for a record field. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | latitude | Double | Gets the latitude of the location. This value maybe null if both latitude and longitude are null. | Small, 41.0 | 41.0 | | longitude | Double | Gets the longitude of the location. This value maybe null if both latitude and longitude are null. | Small, 41.0 | 41.0 | # Lookup Metadata Search lookups metadata. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | fieldApiName | String | API name of the lookup field. | Small, 57.0 | 57.0 | | objectApiName | String | API name of the lookup field source object. | Small, 57.0 | 57.0 | | secondaryField | String | API name of the field used as a secondary display field. | Small, 55.0 | 55.0 | | targetInfo | Map | Map of lookup metadata target information. | Small, 57.0 | 57.0 | # Lookup Metadata Target Info Search lookups target metadata. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | advancedLookupInfo | [Advanced Lookup Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_advanced_lookup_info.htm "Advanced search lookup information.") | Advanced lookup information. | Small, 61.0 | 61.0 | | errorMessages | String\[\] | Error messages. | Small, 66.0 | 66.0 | | fullSearchInfo | [Display Layout and Matching Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_display_layout_and_matching_info.htm "Search lookups target display layout and matching information.") | Full search display layout and matching information. | Small, 57.0 | 57.0–60.0 | | objectApiName | String | Object API name. | Small, 57.0 | 57.0 | | suggestionsInfo | [Display Layout and Matching Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_display_layout_and_matching_info.htm "Search lookups target display layout and matching information.") | Suggestions display layout and matching information. | Small, 57.0 | 57.0 | # Lookup Post Input Get lookup field suggestions. Example: Search Dependent Lookups for Suggestions using the request body Some lookup fields have lookup filters that restrict their valid values by referencing fields on the source object. These fields are called dependent lookups. For example, you can filter the Case Contact field to show only contacts that are associated with the account selected in the Case Account Name field. In the Salesforce UI, this lookup filter is Contact Name: Account Name ID EQUALS Case: Account Name ID. In the User Interface API, lookup filter information appears in the filteredLookupInfo property of the [Object Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_object_info.htm#ui_api_responses_object_info "The metadata for an object.") response body, which is returned from several resources, including [/ui-api/record-ui/{recordIds}](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_record_ui.htm#ui_api_resources_record_ui "Get layout information, metadata, and data to build UI for a single record or for a collection of records."). If the filteredLookupInfo property is non-null, the field it describes is a dependent lookup. In this example, the Case object’s ContactId field has a filteredLookupInfo property containing a controllingFields property. The controlling field is AccountId. To restrict the lookup search, you must pass all controlling fields and their values to the lookups resource in the sourceRecord request body property. **"objectInfos" : {** ... **"Case" : { ** "apiName" : "Case", ... **"fields" : {** ... **"ContactId" : {** "apiName" : "ContactId", ...properties removed for space... **"filteredLookupInfo" : { "controllingFields" : \[ "AccountId" \],** "dependent" : true, "optionalFilter" : false }, ... "sortable" : true, "unique" : false, "updateable" : true }, ... To get the value for AccountId, look in the [Record](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record.htm#ui_api_responses_record "The field data, API name, child relationship data, and record type information for a record.") response body, which is returned from several resources, including [/ui-api/record-ui/{recordIds}](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_record_ui.htm#ui_api_resources_record_ui "Get layout information, metadata, and data to build UI for a single record or for a collection of records."). For example, to retrieve the value of the AccountId field present on the Case 500R0000000bKpBIAU: GET /ui-api/records/500R0000000bKpBIAU?fields=Case.AccountId { "apiName": "Case", "id": "500Z7000000bhdFIAQ", "fields": { "AccountId": { "displayValue": null, "value": "001R0000003IG0MIAW" } }, ...Some properties removed for space... } To filter the suggestions for a dependent lookup, specify the names and values of the controlling fields in the sourceRecord request body property. (This example has one controlling field). Request body: POST /ui-api/lookups/case/ContactId { "sourceRecord": { "fields": { "Id": "500Z7000000bhdFIAQ", "AccountId": "001R0000003IG0MIAW" } }, "orderBy": \[ { "fieldApiName": "Name", "isAscending":true } \] } Properties
Name Type Description Required or Optional Available Version
orderBy List Order By Input[] Information describing how to order the results. Optional 63.0
sourceRecord Record Input The source record in which the lookup relationship field is being edited.

The presence of the source record “Id” is required within the “fields” property. Accepted values are “null” when creating a new record and a valid record ID when updating an existing record.

Some lookup fields have lookup filters that restrict the values they can accept by referencing fields on the source object. These fields are called dependent lookup fields or controlling fields. You must pass all controlling fields and their values to the lookups resource within the “fields” property.

To know whether a field is a lookup controlling field, check the Object Info response body for a non-null filteredLookupInfo property. Get the field values from the Record response body. Both responses are returned from the /ui-api/record-ui/{recordIds} resource.

Properties “allowSaveOnDuplicate” and “apiName” are not used.
Required 60.0
#### See Also - [Get Lookup Field Suggestions With POST](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_lookup_post.htm "When a user edits a lookup field, use this resource to search for and display suggestions. You can search for most recently used matches, for matching names, or for any match in a searchable field. You must specify dependent lookup field values used by lookup filters in the `sourceRecord` request body parameter.") # Lookup Values Records, organized by object type, and metadata in a lookup relationship. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | lookupResults | Map | A map of object API names to Record Collection response bodies containing the lookup results for that object type. | Small, 41.0 | 41.0 | | metadata | Map | A map of object API names to Lookup Metadata response bodies containing the metadata results. | Small, 55.0 | 55.0 | #### See Also - [Get Lookup Field Suggestions](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_lookup_get.htm "When a user edits a lookup field, use this resource to search for and display suggestions. You can search for most recently used matches, for matching names, or for any match in a searchable field. You can also specify lookup filter bindings for dependent lookups.") - [Get Lookup Field Suggestions With POST](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_lookup_post.htm "When a user edits a lookup field, use this resource to search for and display suggestions. You can search for most recently used matches, for matching names, or for any match in a searchable field. You must specify dependent lookup field values used by lookup filters in the `sourceRecord` request body parameter.") # Manage Apps An app is a collection of items that work together to serve a particular function. Salesforce apps come in two flavors: Classic apps and Lightning apps. Classic apps are created and managed in Salesforce Classic. Lightning apps are created and managed in Lightning Experience. Admins customize both types of apps to match the way users work. Classic apps are a collection of standard and custom tabs, including most standard objects, custom objects, Visualforce tabs, Lightning component tabs, Canvas apps via Visualforce tabs, and web tabs. In Salesforce Classic, users use tabs to access objects, like accounts and leads. Tabs also serve up other features, such as the Home page or Chatter. Lightning apps are a collection of items that include everything from the Classic apps list, plus Lightning page tabs, and utilities like Sales Dialer. In Lightning apps, admins customize the app’s logo and enhance branding by customizing the color of the navigation bar. Navigation in Lightning Experience is similar to navigation in Salesforce Classic, but with some improvements. In Lightning Experience, users can complete actions and access recent records and lists directly from the navigation bar. Users can also switch between apps that have custom colors and branding. Users can also personalize which items appear in their navigation bar in Lightning Experience or tabs in Salesforce Classic. Although users can’t completely override the navigation created by admins, they can add and reorder items or tabs from their view. In addition, in Lightning Experience, users can add Favorite items directly to their navigation bar. Using these App resources, you can get a list of apps, items from an app, and the presentation data for a user’s navigation. To return metadata for a list of all apps for the current user, use this [resource](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_apps.htm "Get metadata for all the apps a user has access to. Metadata for the selected app includes tabs on the app’s navigation bar. Metadata for other apps doesn’t include tabs on the navigation bar."). GET /ui-api/apps To return metadata about a specific app, use this [resource](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_apps_id.htm "Get the metadata for an app."). GET /ui-api/apps/${appId} To return metadata about a specific app, and save the app as the last accessed app for the user, use this [resource](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_apps_id_update.htm "Returns metadata for an app, and saves an app as the last selected for a user."). PATCH /ui-api/apps/${appId} To return metadata about the app the current user last selected, or sees by default, use this [resource](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_apps_selected.htm "Retrieves the app the current user last selected or the app the user sees by default."). GET /ui-api/apps/selected To return metadata about a user’s personalized navigation, use this [resource](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_apps_user_nav_items.htm "Get a user’s personalized navigation items (tabs)."). GET /ui-api/apps/${appId}/user-nav-items To return metadata for a list of all navigation tabs for the current user, use this [resource](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_all_nav_items.htm "Gets all navigation items (tabs) that the user has access to."). GET /ui-api/nav-items # Manage Favorites Favorites let users access frequently used pages in Salesforce. Use User Interface API Favorites resources to manage favorites. You can create, get, delete, and update favorites, update all favorites at once, and update favorite usage information, for example, the number of times a favorite was clicked. Responses return all fields required to render favorites. This request returns all the favorites of the context user. GET /ui-api/favorites { "favorites" : \[ { "accessCount" : 1, "iconColor" : "FCB95B", "iconUrl" : "https://.../img/icon/t4v35/standard/opportunity\_120.png", "id" : "0MVR00000004GGlOAM", "lastAccessDate" : "2017-08-07T18:51:54.000Z", "name" : "My Best Opportunities", "objectType" : "Opportunity", "sortOrder" : 1, "subtitle" : "Opportunities", "target" : "00BR0000000tTTwMAM", "targetType" : "ListView" }, { "accessCount" : 1, "iconColor" : "A094ED", "iconUrl" : "https://.../img/icon/t4v35/standard/contact\_120.png", "id" : "0MVR00000004FOPOA2", "lastAccessDate" : "2017-07-21T21:35:27.000Z", "name" : "John Doe", "objectType" : "Contact", "sortOrder" : 2, "subtitle" : "Contact", "target" : "003R0000001bivAIAQ", "targetType" : "Record" }, { "accessCount" : 1, "iconColor" : "f6707b", "iconUrl" : "https://.../img/icon/t4v35/custom/custom84\_120.png", "id" : "0MVR000000004D5OAI", "lastAccessDate" : "2017-08-11T17:24:01.000Z", "name" : "Trend Board", "objectType" : "TabDefinition", "sortOrder" : 3, "subtitle" : "Tab", "target" : "Trend\_Board", "targetType" : "Tab" }, { "accessCount" : 1, "iconColor" : "F88962", "iconUrl" : "https://.../img/icon/t4v35/standard/lead\_120.png", "id" : "0MVR00000004GOpOAM", "lastAccessDate" : "2017-08-11T17:24:24.000Z", "name" : "Leads to Follow Up on", "objectType" : "Lead", "sortOrder" : 4, "subtitle" : "Leads", "target" : "Lead", "targetType" : "ListView" } \] } Adding a favorite to the top of the list is as easy as knowing what type of favorite it is and how to identify it. For example, to add an Account as a favorite, add it as a Record favorite using its ID. To insert it at the beginning of the list, explicitly set the sortOrder to 1, otherwise it’s inserted at the end of the list. POST /ui-api/favorites?target=001R0000002LBXUIA4&targetType=Record&sortOrder=1 { "accessCount" : 1, "iconColor" : "7F8DE1", "iconUrl" : "https://.../img/icon/t4v35/standard/account\_120.png", "id" : "0MVR000000004DFOAY", "lastAccessDate" : "2017-08-11T19:26:04.000Z", "name" : "Global Media", "objectType" : "Account", "sortOrder" : 1, "subtitle" : "Account", "target" : "001R0000002LBXUIA4", "targetType" : "Record" } To track how often a user accesses a particular favorite, make a patch request using the favorite's ID and see the accessCount increment and the lastAccessDate update. PATCH /ui-api/favorites/0MVR000000004DFOAY/usage { "accessCount" : 2, "iconColor" : "7F8DE1", "iconUrl" : "https://.../img/icon/t4v35/standard/account\_120.png", "id" : "0MVR000000004DFOAY", "lastAccessDate" : "2017-08-11T19:31:17.416Z", "name" : "Global Media", "objectType" : "Account", "sortOrder" : 1, "subtitle" : "Account", "target" : "001R0000002LBXUIA4", "targetType" : "Record" } Removing a favorite is as easy and requires using the favorite's ID again. DELETE /ui-api/favorites/0MVR000000004DFOAY To reorder or rename your favorites, you have some options. The first option is to individually update each favorite one by one. When reordering this way, the server automatically updates the sort order of affected favorites in the list so the sort order stays consistent. The second and more useful option is to reorder, rename, and delete favorites in a single request. This option is useful for building an edit dialog where the user can rename some favorites, delete others, and reorder whichever they choose. All these changes can then be made in a single request. PUT /ui-api/favorites/batch Here’s the input for the PUT request: { "favorites" : \[ { "id": "0MVR00000004GOpOAM" }, { "id": "0MVR00000004GGlOAM", "name": "Top Opportunities" }, { "id": "0MVR000000004D5OAI" } \] } Here’s the response for the PUT request: { "favorites" : \[ { "accessCount" : 1, "iconColor" : "F88962", "iconUrl" : "https://.../img/icon/t4v35/standard/lead\_120.png", "id" : "0MVR00000004GOpOAM", "lastAccessDate" : "2017-08-11T17:24:24.000Z", "name" : "Leads to Follow Up", "objectType" : "Lead", "sortOrder" : 1, "subtitle" : "Leads", "target" : "Lead", "targetType" : "ListView" }, { "accessCount" : 1, "iconColor" : "FCB95B", "iconUrl" : "https://.../img/icon/t4v35/standard/opportunity\_120.png", "id" : "0MVR00000004GGlOAM", "lastAccessDate" : "2017-08-07T18:51:54.000Z", "name" : "Top Opportunities", "objectType" : "Opportunity", "sortOrder" : 2, "subtitle" : "Opportunities", "target" : "00BR0000000tTTwMAM", "targetType" : "ListView" }, { "accessCount" : 1, "iconColor" : "f6707b", "iconUrl" : "https://.../img/icon/t4v35/custom/custom84\_120.png", "id" : "0MVR000000004D5OAI", "lastAccessDate" : "2017-08-11T17:24:01.000Z", "name" : "Trend Board", "objectType" : "TabDefinition", "sortOrder" : 3, "subtitle" : "Tab", "target" : "Trend\_Board", "targetType" : "Tab" } \] } In this single request, we deleted our contact John Doe, moved Leads to Follow Up to the top of the list, and we renamed My Best Opportunities to Top Opportunities. #### See Also - [Favorites](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_favorites.htm "Use these resources to create and update a single favorite or a collection of favorites, and to get favorites usage information. These resources make it easy to build UI for favorites.") # Match A group of records that match the duplicate rules. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | duplicateResultInfos | Map | A map of the duplicate rules and the information about the duplicate match. | Small, 50.0 | 50.0 | | objectApiName | String | The object's API name. | Small, 50.0 | 50.0 | | recordIds | String\[\] | A list of IDs of the matching records. | Small, 50.0 | 50.0 | # Match Result A duplicate rule match. Duplicate rules are used to control whether and when you can save duplicate records within Salesforce. Duplicate rules tell Salesforce what action to take when you attempt to create a duplicate record. Each duplicate rule requires at least one matching rule to identify which existing records are possible duplicates. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | apiName | String | The API name of the object. | Small, 41.0 | 41.0 | | isAllowSave | Boolean | Indicates whether the rule allows a duplicate to be saved. | Big, 41.0 | 41.0 | | matchRecordIds | String\[\] | The IDs of the matching records. | Small, 41.0 | 41.0 | | matchRule | String | The developer name of the matching duplicate rule. | Big, 41.0 | 41.0 | | objectLabel | String | The object’s label. | Small, 41.0 | 41.0 | | objectLabelPlural | String | The object’s label in plural form. | Small, 41.0 | 41.0 | | themeInfo | [Theme Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_theme_info.htm#ui_api_responses_theme_info "Color and icon information for a theme.") | Information about the object’s color and icon. | Small, 41.0 | 41.0 | #### See Also - [Duplicate Record Error](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_duplicate_record_error.htm "Information about duplicate record errors. Duplicate rules are used to control whether and when you can save duplicate records within Salesforce. Duplicate rules tell Salesforce what action to take when you attempt to create a duplicate record.") # Match Result Info Information about the results of a match. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | recordIds | String\[\] | A list of IDs of the matching records. | Small, 50.0 | 50.0 | | rule | String | The name of the match rule used to match the records. | Small, 50.0 | 50.0 | # Match Rule A match rule defines how duplicate records are identified in duplicate rules and duplicate jobs. Learn about one of the match rules for the specified object, including the match rule's name and the fields that the match rule checks.
Property Name Type Description Filter Group and Version Available Version
matchEngine String The type of matching used by the match rule. Possible values are:
  • ExactMatchEngine—use exact matching rules to decide if the field values match.
  • FuzzyMatchEngine—use fuzzy matching rules to decide if the field values match.
Small, 50.0 50.0
matchFields String[] Fields that the match rule uses when checking for matching records. Small, 50.0 50.0
name String The name of the match rule. Small, 50.0 50.0
objectApiName String The API name of the object to which the match rule belongs. Small, 50.0 50.0
# Matching Info Search lookups target matching information. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | matchingFields | String\[\] | Ordered list of fields to match on. | Small, 57.0 | 57.0 | # Most Recently Used List View Supported Objects Most recently used (MRU) list views support a subset of the standard objects that User Interface API supports. For general information about supported objects, see [Supported Objects](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_get_started_supported_objects.htm "User Interface API supports all custom objects and external objects and many standard objects."). This list includes the standard objects supported for MRU list views. As of Summer ’23, all new standard objects are auto-enabled for UI API usage. This list might not reflect the latest object support. To check if most recently used list views are supported for a specific object in UI API, use the [/ui-api/list-info/{objectApiName} resource](https://developer.salesforce.com/docs/atlas.en-us.264.0.uiapi.meta/uiapi/ui_api_resources_lists_object_get.htm) and check results for the list view named \_\_Recent. - AISentimentResult - AcademicSession - AcademicTerm - AcademicTermEnrollment - AcademicYear - Account - AccountAccountRelation - AccountBrand - AccountForecast - AccountParticipant - Accreditation - AcctMgrTarget - ActionCadence - ActionPlan - ActionPlanBaseTemplateAsgn - ActionPlanItem - ActionPlanTemplate - ActionPlanTemplateAssignment - ActionPlanTemplateItem - ActionPlanTemplateItemValue - ActionPlanTemplateVersion - ActionPlnTmplItmDependency - ActionVisibility - ActionableList - ActivityTiming - AdBuyServerAccount - AdCreativeSizeType - AdOpportunity - AdOrderItem - AdOrderItemCreativeSizeType - AdOrderItemPrintIssue - AdOrderItemUnitsSplit - AdOrderLineAdTarget - AdPageLayoutType - AdProductDefaultTargetCategory - AdProductTargetCategory - AdQuote - AdQuoteLineCreativeSizeType - AdQuoteLinePrintIssue - AdQuoteLineUnitsSplit - AdServer - AdServerUser - AdSpaceSpecification - AdTargetCategory - AdTargetCategorySegment - AdUsage - AdUsageSummary - AddOnDefinition - Address - AdvAccountForecastFact - AdvAcctForecastSetPartner - AdvAcctForecastSetUse - AffinityScore - AiDataset - AiVisionModel - AiVisionModelMetric - AiVisionModelObjectMetric - AiVisitRecommendRequest - AiVisitRecommendation - AiVisitSummary - AiVisitTaskRcmd - AiVisitTaskRcmdRequest - AirTravelEmssnFctr - AirTravelEnrgyUse - AltenativePaymentMethod - AnnualEmssnInventory - AnnualEmssnRdctnTarget - AntiCorruptionInitSum - ApiAnomalyEventStore - ApplicationCase - ApplicationDecision - ApplicationFormTemplate - ApplicationRecommendation - ApplicationRecommender - ApplicationReview - ApplicationTimeline - AppointmentInvitation - AppointmentInvitee - AppointmentTopicTimeSlot - ApptBundleAggrDurDnscale - ApptBundleAggrPolicy - ApptBundleConfig - ApptBundlePolicy - ApptBundlePolicySvcTerr - ApptBundlePropagatePolicy - ApptBundleRestrictPolicy - ApptBundleSortPolicy - ApptReasonEngmtChannelType - AsmtQstnRespRecommendation - Assessment - AssessmentEnvelope - AssessmentEnvelopeItem - AssessmentIndicatorDefinition - AssessmentQuestion - AssessmentQuestionAssignment - AssessmentQuestionResponse - AssessmentQuestionSet - AssessmentQuestionVersion - AssessmentSignature - AssessmentTask - AssessmentTaskContentDocument - AssessmentTaskDefinition - AssessmentTaskOrder - Asset - AssetAccountParticipant - AssetContactParticipant - AssetDowntimePeriod - AssetMilestone - AssetWarranty - AssignedResource - AssociatedLocation - AssortmentProduct - AsyncOperationLog - AttributeCategory - AttributePicklist - AttributePicklistValue - AuthApplicationAsset - AuthApplicationPlace - AuthorNote - AuthorizationFormConsent - AuthorizedInsuranceLine - Award - BackgroundOperation - BatchJob - BatchJobDefinition - BatchJobPart - BatchJobPartFailedRecord - BenefitAssignment - BenefitAssignmentAdjustment - BenefitDisbursement - BenefitDisbursementAdj - BenefitSchedule - BenefitSession - BenefitType - BillingBatchFilterCriteria - BillingBatchScheduler - BillingTreatmentItem - BldgEnrgyIntensity - BldgEnrgyIntensityVal - BldgSizeCategory - BoardCertification - BroadcastCommAudience - BroadcastCommunication - BroadcastTopic - Budget - BudgetAllocation - BudgetCategory - BudgetCategoryValue - BudgetPeriod - BundledCareFeeAgreement - BusRegAuthorizationType - BusinessAlert - BusinessAlertStatus - BusinessBrand - BusinessLicense - BusinessLicenseApplication - BusinessMilestone - BusinessProfile - BusinessType - BuyerGroupPricebook - Campaign - CapitationCareFeeAgreement - CardPaymentMethod - CareBarrier - CareBarrierType - CareBenefitVerifyRequest - CareDeterminant - CareDeterminantType - CareDiagnosis - CareEpisode - CareEpisodeDetail - CareFeeScheduleItem - CareInterventionType - CareMetricTarget - CareObservation - CarePgmEnrolleeWkOrdStep - CarePgmEnrolleeWorkOrder - CarePgmProvHealthcareProvider - CarePlan - CarePlanActivity - CarePlanActivityDetail - CarePlanDetail - CarePlanTemplate - CarePlanTemplateBenefit - CarePlanTemplateGoal - CarePlanTemplateProblem - CarePreauth - CarePreauthItem - CareProgram - CareProgramCampaign - CareProgramEligibilityRule - CareProgramEnrollee - CareProgramEnrolleeProduct - CareProgramEnrollmentCard - CareProgramGoal - CareProgramProduct - CareProgramProvider - CareProgramTeamMember - CareProviderAdverseAction - CareProviderFacilitySpecialty - CareProviderSearchableField - CareRegisteredDevice - CareRequest - CareRequestDrug - CareRequestExtension - CareRequestItem - CareRequestReviewer - CareSpecialty - CareSpecialtyTaxonomy - CareTaxonomy - CartDeliveryGroup - CartItem - CartTax - Case - CaseParticipant - CaseProgram - CaseRelatedFile - CaseRelatedIssue - CategorizedCareFeeAgreement - ChangeRequest - ChangeRequestRelatedIssue - ChannelProgram - ChannelProgramLevel - Claim - ClaimCase - ClaimCovPaymentAdjustment - ClaimCovReserveAdjustment - ClaimCoverage - ClaimCoveragePaymentDetail - ClaimCoverageReserveDetail - ClaimItem - ClaimParticipant - ClaimPaymentSummary - ClaimPayoutPlan - ClaimRecovery - ClaimTeamMember - ClinicalDetectedIssue - ClinicalDetectedIssueDetail - ClinicalEncounter - ClinicalEncounterDiagnosis - ClinicalEncounterFacility - ClinicalEncounterProvider - ClinicalEncounterReason - CloudServiceProvider - CodeSet - CodeSetBundle - CodeSetRelationship - CollaborationRoom - CommissionSchedule - CommissionScheduleAssignment - CommsRegionDiscount - CommsVolumeDiscount - ComplaintCase - ComplaintParticipant - ConstituentRole - Contact - ContactContactRelation - ContactEncounter - ContactEncounterParticipant - ContactPointAddress - ContactProfile - ContactRequest - ContentDocument - ContentNote - Contract - ContractDocVerContentDoc - ContractDocVersionSection - ContractDocumentVersion - ContractGroupPlan - ContractGroupPlanGroupClass - ContractPaymentAgreement - ConversationBroadcastEntry - Coupon - CourseOffering - CourseOfferingParticipant - CourseOfferingPtcpResult - CourseOfferingSchedule - CourseOfferingScheduleTmpl - CourtAction - CourtActionOutcome - CoverageBenefit - CoverageBenefitItem - CoverageType - CrbnCreditAlloc - CrbnCreditAllocItem - CrbnCreditDistribution - CrbnCreditProject - CrbnEmssnScopeAlloc - CrbnEmssnScopeAllocVal - CredentialStuffingEventStore - CreditMemo - CreditMemoAddressGroup - CreditMemoInvApplication - CreditMemoLine - Crisis - CryptoTransEnvelopeChgLog - CustomObjectParticipant - Customer - CustomerProperty - DataLakeObjectInstance - DelegatedAccount - DeliveryTask - DiagnosticSummaryDetail - DigitalSignature - DigitalWallet - Disclosure - DisclsReportingPeriod - DistributorAuthorization - DivrsEquityInclSum - DocumentChecklistItem - DocumentClause - DocumentClauseSet - DocumentEnvelope - DocumentTemplate - DuplicateRecordSet - DynamicDataCapture - EconomicPerformanceSum - EditionDefinition - EducationalInfoRequest - ElectricityEmssnFctrSet - EmailContent - EmailTemplate - EmissionsActivity - EmissionsForecastFact - EmpBenefitSummary - EmpUserProvisionProcessErr - EmpUserProvisioningProcess - Employee - EmployeeCrisisAssessment - EmployeeDemographicSum - EmployeeDevelopmentSum - EmssnRdctnCommitment - EmssnReductionTarget - EnablementProgram - EngagementAttendee - EngagementChannelWorkType - EngagementInteraction - EngagementTopic - Entitlement - EnvironmentHubMember - EnvironmentalRisk - Examination - Expense - ExpenseReport - ExpenseReportEntry - ExpressionSetView - ExtDataShare - ExtDataShareTarget - FeeScheduleDefinition - FieldPermissions - FinanceTransactionErrorLog - FinancialDeal - FinancialDealAsset - FinancialDealBid - FinancialDealInteraction - FinancialDealParticipant - FinancialDealParty - FinancialDealProduct - FinclDealInteractionSummary - FlowOrchestrationInstance - FlowOrchestrationLog - FlowOrchestrationWorkItem - FrgtHaulingEmssnFctr - FrgtHaulingEnrgyUse - FulfillmentOrder - FulfillmentOrderLineItem - FundingAward - FundingAwardAmendment - FundingAwardRequirement - FundingDisbursement - FundingOpportunity - GeneratedDocument - GeneratedWaste - GenericVisitTask - GenericVisitTaskContext - GeoCountry - GeoState - GnrcVstKeyPerformanceInd - GnrcVstTaskContextRelation - GoalAssignment - GoalAssignmentDetail - GoalDefinition - GovtFinancialAsstSum - GroundTravelEmssnFctr - GroundTravelEnrgyUse - GroupCensus - GroupCensusMember - GroupCensusMemberPlan - GroupClass - GroupClassContribution - HealthCareDiagnosis - HealthCareProcedure - HealthCondition - HealthConditionDetail - HealthScore - HealthScoreActionLog - HealthcareFacilityNetwork - HealthcarePayerNetwork - HealthcarePractitionerFacility - HealthcareProvider - HealthcareProviderNpi - HealthcareProviderSpecialty - HealthcareProviderTaxonomy - HotelStayEmssnFctr - HotelStayEnrgyUse - IdentityDocument - Image - Incident - IncludedLicenseDefinition - Individual - IndividualApplication - IndividualApplicationItem - InflationRate - InsPolicyTransactionDetail - InspectionAssessmentInd - InStoreLocation - InsuranceClaimAsset - InsuranceContract - InsurancePolicy - InsurancePolicyAsset - InsurancePolicyCoverage - InsurancePolicyMemberAsset - InsurancePolicyParticipant - InsurancePolicySurcharge - InsurancePolicyTransaction - InsuranceProfile - IntegrationProviderDef - Interaction - InteractionAttendee - InteractionParticipant - InteractionRelatedAccount - InteractionSumDiscussedAccount - InteractionSummary - InteractionSummaryParticipant - InterestTag - InventoryItemReservation - InventoryReservation - Invoice - InvoiceAddressGroup - InvoiceBatchRun - InvoiceBatchRunCriteria - InvoiceBatchRunRecovery - InvoiceLine - JobProfile - JournalReason - JournalSubType - JournalType - KnowledgeArticleVersion - Lead - LearnerProgram - LearnerProgramRequirement - LearnerProgramRqmtProgress - Learning - LearningAchievement - LearningCourse - LearningFoundationItem - LearningOutcomeItem - LearningProgram - LearningProgramPlan - LearningProgramPlanRqmt - LegalEntity - LicensingSnapshotRequest - ListEmail - Location - LocationGroup - LocationWaitlist - LocationWaitlistedParty - LoyaltyAggrPointExprtLedger - LoyaltyLedger - LoyaltyMemberCurrency - LoyaltyMemberTier - LoyaltyMembershipLifecycle - LoyaltyPartnerProduct - LoyaltyPgmEngmtAttrProm - LoyaltyPgmEngmtAttribute - LoyaltyPgmGroupMbrRlnsp - LoyaltyPgmMbrAttributeVal - LoyaltyPgmPartnerCurrency - LoyaltyPgmPartnerPromotion - LoyaltyPgmPtnrLdgrSummary - LoyaltyPgmPtnrPrepaidPack - LoyaltyProgram - LoyaltyProgramBadge - LoyaltyProgramCurrency - LoyaltyProgramMbrPromotion - LoyaltyProgramMember - LoyaltyProgramMemberBadge - LoyaltyProgramMemberCase - LoyaltyProgramMemberMerge - LoyaltyProgramPartner - LoyaltyProgramPartnerLedger - LoyaltyProgramProcess - LoyaltyProgramWidget - LoyaltyTier - LoyaltyTierBenefit - LoyaltyTierGroup - Macro - MaintenancePlan - MaintenanceWorkRule - ManufacturingProgram - MarketingForm - MarketingLink - MarketingLinkContent - MedReconRecommendation - MedReconStmtRecommendation - MedTherapyStmtReviewIssue - MediaChannel - MediaContentTitle - MediaPrintIssue - MediaTitleAvailability - MediaTitleReleaseDate - MediaTitleRevenue - MedicationDispense - MedicationReconciliation - MedicationStatementDetail - MedicationTherapyReview - MedicationTherapyStmtReview - MedicinalIngredient - MemberBenefit - MemberPlan - MerchantAccount - MessagingChannel - MessagingSession - MfgProgramCpntFrcstFact - MfgProgramForecastFact - MfgProgramVariantFrcstFact - MktAiPredictiveInsight - MktDataTransform - Network - NetworkReferencedObject - ObjectPermissions - ObjectStateActionDefinition - ObjectStateTransitionAction - OcrDocumentScanResult - OmniAssessmentTask - OmniDataTransform - OmniDataTransformItem - OmniProcess - OmniProcessAsmtQuestionVer - OmniProcessCompilation - OmniProcessElement - OmniScriptSavedSession - OmniUiCard - OperatingHours - OperatingHoursHoliday - Opportunity - OpportunityParticipant - OpportunityPreferredSeller - Order - OrderChangeLog - OrderItemRelationship - OrderPaymentSummary - OrderSummary - OrgIncidentSummary - OtherEmssnFctrSet - OtherEmssnFctrSetItem - PartnerFundAllocation - PartnerFundClaim - PartnerFundRequest - PartnerMarketingBudget - PartyCertifiedCapacity - PartyIdentityVerification - PartyIdentityVerificationStep - PartyIncome - PartyProfile - PartyProfileAddress - PartyProfileRisk - PartyRelationshipGroup - PartyRoleRelation - PartyScreeningStep - PartyScreeningSummary - PatientImmunization - Payment - PaymentAuthorization - PaymentBatchRun - PaymentBatchRunCriteria - PaymentGateway - PaymentGatewayProvider - PaymentIntent - PaymentLineInvoice - PaymentRequest - PaymentRequestLine - PaymentSchedule - PaymentScheduleItem - PaymentSchedulePolicy - PaymentScheduleTreatment - PaymentScheduleTreatmentDtl - PaymentTerm - PaymentTermItem - PcmtEmssnFctrSet - PcmtEmssnFctrSetItem - PercentileBsdCareFeeAgreement - PermissionSet - PermissionSetGroup - PermissionSetLicense - PersonDisability - PersonEducation - PersonEmployment - PersonExamination - PersonLanguage - PersonLifeEvent - PersonName - PgmRebateTypBnftMapping - PickTicket - PickTicketAssignment - PickTicketProduct - PlanBenefit - PlanBenefitItem - PlatformLicenseDefinition - PreliminaryApplicationRef - PreventiveCareAgreement - PriceAdjustmentSchedule - PriceList - Pricebook2 - PricebookEntry - PricingHeader - PricingLineItem - PricingProduct - PrivacyHold - PrivacyHoldReason - PrivacyJobSession - PrivacyPolicy - PrivacyRequest - Problem - ProblemDefinition - ProblemGoalDefinition - ProblemIncident - ProcessException - Producer - ProducerCommission - ProducerPolicyAssignment - Product2 - ProductAttributeDefinition - ProductCatalog - ProductCategory - ProductCategoryAttribute - ProductCategoryServiceProcess - ProductComponentGroup - ProductConsumed - ProductConsumedState - ProductCoverage - ProductEmissionsFactor - ProductFaultCode - ProductItem - ProductItemTransaction - ProductLaborCode - ProductLicenseMap - ProductOverridePathItem - ProductQuantityRule - ProductRelComponentOverride - ProductRelatedMaterial - ProductRelationshipType - ProductRequest - ProductRequestLineItem - ProductRequired - ProductSellingModelOption - ProductServiceCampaign - ProductServiceCampaignItem - ProductTransfer - ProductTransferState - ProductWarrantyTerm - Program - ProgramEnrollment - ProgramProduct - ProgramRebateTypPayoutSrc - ProgramRebateType - ProgramRebateTypeBenefit - ProgramRebateTypeFilter - ProgramRebateTypePayout - ProgramRebateTypeProduct - ProgramRebateTypeReference - ProgramTermApplnTimeline - Promotion - PromotionChannel - PromotionLoyaltyPtnrProdt - PromotionMarketSegment - PromotionProduct - PromotionProductCategory - PromotionQualifier - PromotionSegment - PromotionSegmentBuyerGroup - PromotionSegmentSalesStore - PromotionTarget - PromotionTier - ProrationPolicy - ProviderNetworkContract - ProviderNetworkTier - ProviderSearchSyncLog - PublicApplicationParticipant - PublicProgram - PurchaserPlan - PurchaserPlanAssn - PurchaseQuantityRule - PymtSchdDistributionMethod - Quote - QuoteDocument - QuoteLineItemAttribute - RebateClaim - RebateMemberAggregateItem - RebateMemberProductAggregate - RebatePayment - RebatePayoutAdjustment - RebateProgram - RebateProgramMember - RebateProgramMemberPayout - RebateProgramPayoutPeriod - ReceivedDocument - ReceivedDocumentType - Recommendation - RecordAlert - RecordsetFilterCriteria - RecordsetFilterCriteriaRule - RecordsetFltrCritMonitor - ReferencedDashboard - Referral - RefrigerantEmssnFctr - RefundLinePayment - RegionStatusDiscount - RegulatoryAuthority - RegulatoryAuthorizationType - RegulatoryCodeAssessmentInd - RegulatoryCodeUse - RegulatoryCodeViolation - RegulatoryTrxnFee - RegulatoryTrxnFeeItem - ReinsAgreementLineItem - ReinsPolicyBordereauFact - ReinsProtocolProdtComponent - ReinsuranceAgreement - ReinsuranceProtocol - ReinsuranceProtocolAgreement - RentalCarEmssnFctr - RentalCarEnrgyUse - ReportAnomalyEventStore - ReportedConsumption - ResourceAbsence - ResourcePreference - RetailLocationGroup - RetailStore - RetailVisitKpi - ReturnOrder - ReturnOrderItemAdjustment - ReturnOrderLineItem - RevRecogTreatmentItemGroup - RevenueDistributionMethod - RevenueElement - RevenueElementDistribution - RevenueRecogTreatmentItem - RevenueRecognitionPolicy - RevenueRecognitionTreatment - RightsQuote - RightsQuoteLineItem - RightsQuoteLineMediaTitle - SalesAgreement - SalesChannel - Scope3CrbnFtprnt - Scope3EmssnSrc - Scope3PcmtItem - Scope3PcmtSummary - Scorecard - ScorecardAssociation - SecuritiesHolding - Seller - SerializedProductTransaction - ServiceAppointment - ServiceAppointmentGroup - ServiceContract - ServiceCrew - ServiceCrewMember - ServiceReport - ServiceResource - ServiceResourceSkill - ServiceTerritory - ServiceTerritoryMember - ServiceTerritoryRelationship - SessionHijackingEventStore - SettingUsageDefinition - SettingUsageMap - SharedSavingPaymentAgreement - SharingRecordCollection - SharingRecordCollectionItem - Shift - ShiftEngagementChannel - ShiftPattern - ShiftPatternEntry - ShiftSegmentType - ShiftTemplate - ShiftWorkTopic - Shipment - SignatureTask - SignatureTaskLineItem - SkillLevelDefinition - SkillRequirement - Snippet - SocialContributionSum - SocialPersona - SocialPost - StandardCareFeeAgreement - StnryAssetAnnualFact - StnryAssetCrbnFtprnt - StnryAssetCrbnFtprntItm - StnryAssetEnrgyUse - StnryAssetEnvrSrc - StnryAssetWaterActvty - StnryAssetWaterFtprnt - StnryAssetWtrFtprntItm - StoreActionPlanTemplate - StoreAssortment - StoreIntegratedService - StoreProduct - SuccessTeam - Supplier - SupplierProduct - Survey - SurveyEmailBranding - SurveyInvitation - SurveyQuestion - SurveyQuestionChoice - SurveyResponse - SurveySubject - SustainabilityCntrLine - SustainabilityCredit - SustainabilityPurchase - SustainabilityScorecard - SvcCatalogItemDef - SvcCatalogReqRelatedItem - SvcCatalogRequest - Swarm - SwarmMember - TagCategory - TagCategoryAssignment - TaxDisclosureSummary - TaxEngine - TaxEngineInteractionLog - TaxEngineProvider - TaxRate - Tenant - TenantSecurityNotificationRule - ThreatDetectionFeedback - TimeSheet - TimeSheetEntry - TimeSlot - TrackedCommunication - TrackedCommunicationDetail - TrainingCourseParticipant - TransactionJournal - TravelMode - TrnCourse - UnitOfMeasure - UnitOfMeasureConversion - UsageFactor - UsageImpactFactor - UsageImpactGroup - UsageImpactGroupFactor - UsageImpactGroupPgmMeasure - UsageImpactGroupVersion - User - UserAccessPolicy - UserAppMenuItem - UserDefinedLabel - UserDefinedLabelAssignment - UserEsignVendorIdentifier - UserFinancialAuthority - UserLicenseDefinition - UserLocationAssignment - UserRole - UserTerritory2AssocLog - Vehicle - VehicleAssetCrbnFtprnt - VehicleAssetEmssnSrc - VehicleAssetEnrgyUse - VehicleDefinition - VehicleUserAssignment - VideoCall - VideoCallParticipant - VideoRecording - ViolationEnforcementAction - ViolationType - ViolationTypeUse - Visit - Visitor - VoiceCall - VolumeDiscount - VolunteerProject - Voucher - VoucherDefinition - WarrantyTerm - WarrantyTermCoverage - WasteFootprint - WasteFootprintItem - WebCart - WebStoreInventorySource - WebStorePricebook - WorkCapacityLimit - WorkCapacityUsage - WorkOrder - WorkOrderLineItem - WorkPlan - WorkPlanSelectionRule - WorkPlanTemplate - WorkPlanTemplateEntry - WorkProcedure - WorkProcedureStep - WorkStep - WorkStepTemplate - WorkType - WorkTypeCareSpecialty - WorkTypeExtension - WorkTypeGroup - WorkTypeGroupMember - WorkTypeGroupRole - WorkerCompCoverageClass - WstDispoEmssnFctrSet - WstDispoEmssnFctrSetItm # Navigation Item The metadata for a single navigation item (tab).
Property Name Type Description Filter Group and Version Available Version
availableInClassic Boolean If true, the tab is available for Salesforce Classic. Medium, 43.0 43.0
availableInLightning Boolean If true, the tab is available for Lightning Experience. Medium, 43.0 43.0
color String Color of the navigation tab. Small, 43.0 43.0
content String Launch URL of the navigation tab. Small, 43.0 43.0
custom Boolean If true, this navigation tab is a custom tab. Small, 43.0 43.0
developerName String API name of the navigation tab. Small, 43.0 43.0
iconUrl String URL of the icon of the navigation tab. Medium, 43.0 43.0
id String ID of the navigation tab. Small, 43.0 43.0
itemType String The navigation tab menu type. One of these values:
  • CanvasConnectedApp: The Canvas Collected App menu type. This value matches Describe App Menu value CanvasConnectedApp.
  • ConnectedApp: The Connected App menu type. This value matches Describe App Menu value ConnectedApp.
  • Entity: The Entity menu type as found from search-driven sections. This value is not sourced from the Describe App Menu.
  • FullSite: The Full Site tab menu type. This value is not sourced from the Describe App Menu.
  • Help: The Help menu type. This value is not sourced from the Describe App Menu.
  • ListView: The ListView menu type. This value is not sourced from the Describe App Menu.
  • Logout: The Logout menu type. This value is not sourced from the Describe App Menu.
  • NotificationSettings: The Notification Settings menu type. This value is not sourced from the Describe App Menu.
  • Record: The Record menu type. This value is not sourced from the Describe App Menu.
  • Standard: The Standard special case menu type as found from search-driven sections. This value matches Describe App Menu values Standard.*. The rest of the type information is in standarddType.
  • TabApexPage: The Visualforce tab menu type. This value matches Describe App Menu value Tab.apexPage.
  • TabAura: The Aura tab menu type. This value matches Describe App Menu value Tab.aura.
  • TabFlexiPage: The Flexipage tab menu item. This value matches Describe App Menu value Tab.flexiPage.
  • TabSObject: The SObject tab menu type. This value matches Describe App Menu value Tab.sObject.
  • TabWeb: The web tab menu type. This type is only available in Lightning Experience. This value is not sourced from the Describe App Menu.
  • UserProfile: The User Profile menu type. This value is not sourced from the Describe App Menu.
Small, 43.0 43.0
label String Localized label name of the navigation tab. Small, 43.0 43.0
objectApiName String Corresponding object API name of the navigation tab. Small, 43.0 43.0
objectLabel String The label of the corresponding object. Small, 44.0 44.0
objectLabelPlural String The plural label of the corresponding object. Small, 44.0 44.0
pageReference Page Reference Corresponding page reference for the navigation tab. Small, 43.0 43.0
standardType String The subtype of a Standard menu type for the app. One of these values:
  • Dashboards
  • Events
  • Feeds
  • Groups
  • Home
  • MyDay
  • PendingInterviews
  • People
  • ProcessInstanceWorkitem
  • Reports
  • Tasks
  • Topics
  • News
  • DistributedMarketing
  • Forecasting3
  • ForecastingLightning
  • Development: Lightning Development Experience
  • AppLauncher: Lightning Experience App Launcher
  • DataAssessmentLightning
  • DiscoveryForAccounts
  • WaveHome
  • WaveHomeLightning
  • WaveHomeLightningEacFree
  • B2bHome
  • B2bPardotCampaigns
  • B2bEmail
  • B2bMarketablePeople
  • B2bAutomation
  • B2bSocialSearch
  • B2bContent
  • B2bPardotSettings
  • OmniSupervisorLightning
  • ReactNative
  • LightningBoltHome
  • LightningInstrumentation
Small, 43.0 43.0
#### See Also - [Navigation Items](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_nav_items.htm "An ordered list of navigation items (tabs) for the current user.") - [App](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_app.htm "The metadata for a single app.") # Navigation Item Collection Input A collection of all the navigation items (tabs) for an app. Pass this request body to get or update a user’s personalized navigation items. JSON Example { "navItems": \[{ "id": "0QkRM00000058lN0AQ" }, { "id": "0QkRM00000058lR0AQ", "label": "My Top Account" }, { "pageReference": { "type": "standard\_\_objectPage", "attributes": { "objectApiName": "Dashboard", "actionName": "home" }, "state": {} } }\] } Properties | Name | Type | Description | Required or Optional | Available Version | | --- | --- | --- | --- | --- | | navItems | [Navigation Item Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_navigation_item_input.htm "Represents the list of navigation items in the order that you want them to appear in the app.")\[\] | The list of navigation items in the order that you want them to appear in the app. | Required | 47.0 | #### See Also - [Update Personalized Navigation Items](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_apps_update_nav_items.htm "Updates the order of a user’s personalized navigation items (tabs) and adds a navigation item to the list in the order specified.") # Navigation Item Input Represents the list of navigation items in the order that you want them to appear in the app. Example PUT /services/data/v68.0/ui-api/apps/06mRM000000U6pOYAS/user-nav-items { "navItems": \[{ "id": "0QkRM00000058lN0AQ" }, { "id": "0QkRM00000058lR0AQ", "label": "My Top Account" }, { "pageReference": { "type": "standard\_\_objectPage", "attributes": { "objectApiName": "Dashboard", "actionName": "home" }, "state": {} } }\] } Properties | Name | Type | Description | Required or Optional | Available Version | | --- | --- | --- | --- | --- | | id | String | The ID of the navigation item to include. | Required | 47.0 | | label | String | The updated label for the navigation item in list views and records only. | Optional | 47.0 | | pageReference | [Page Reference Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_page_reference_input.htm "To add a navigation item, include a pageReference. A pageReference is a JSON object that describes the navigation item’s page type, its attributes, and the state of the page.") | The page reference of the navigation item to add to the list. You can add one page reference per request. | Optional | 47.0 | #### See Also - [Get Personalized Navigation Items](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_apps_user_nav_items.htm "Get a user’s personalized navigation items (tabs).") - [Update Personalized Navigation Items](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_apps_update_nav_items.htm "Updates the order of a user’s personalized navigation items (tabs) and adds a navigation item to the list in the order specified.") # Navigation Items An ordered list of navigation items (tabs) for the current user. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | navItems | [Navigation Items](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_nav_item.htm#ui_api_responses_nav_item "The metadata for a single navigation item (tab).")\[\] | Metadata for navigation tabs. | Small, 43.0 | 43.0 | | currentPageUrl | String | URL to the current page of navigation tabs. | Medium, 45.0 | 45.0 | | nextPageUrl | String | URL to the next page of navigation tabs. | Medium, 45.0 | 45.0 | #### See Also - [Get All Navigation Items](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_all_nav_items.htm "Gets all navigation items (tabs) that the user has access to.") - [Get Personalized Navigation Items](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_apps_user_nav_items.htm "Get a user’s personalized navigation items (tabs).") - [Update Personalized Navigation Items](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_apps_update_nav_items.htm "Updates the order of a user’s personalized navigation items (tabs) and adds a navigation item to the list in the order specified.") # Object Action The actions for an object. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | actions | [Platform Action](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_platform_action.htm#ui_api_responses_platform_action "The metadata, layout information, and data for a platform action.")\[\] | A list of actions associated with the object. | Small, 41.0 | 41.0 | | links | String\[\] | The subcontext URLs of the current request | Big, 41.0 | 41.0 | | url | String | The URL of the current request. | Big, 41.0 | 41.0 | # Object Info The metadata for an object. ![Important](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/images/icon_note_important.png) #### Important Where possible, we changed noninclusive terms to align with our company value of Equality. Because changing terms in our code can break current implementations, we maintained this metadata type’s name.
Property Name Type Description Filter Group and Version Available Version
apiName String The object's API name. Small, 41.0 41.0
associateEntityType String If the object is associated with a parent object, the type of association it has to its parent, such as History. Otherwise, its value is null. Medium, 50.0 50.0
associateParentEntity String If the object is associated with a parent object, the parent object it’s associated with. Otherwise, its value is null. Medium, 50.0 50.0
childRelationships Child Relationship[] The object’s child relationships. Medium, 41.0 41.0
compactLayoutable Boolean Indicates whether the object can have compact layouts. Small, 60.0 60.0
createable Boolean Indicates whether the object can be created. Small, 41.0 41.0
custom Boolean Indicates whether the object is custom. Small, 41.0 41.0
defaultRecordTypeId String The ID for the default record type for this object, if any. If there isn’t a default record type, this value is the master record type, which is 012000000000000AAA. If the record is a nested record (for example, in a request for an Account, the User object is a nested record), the value is null. Medium, 41.0 41.0
deleteable Boolean Indicates whether the object can be deleted. Only available in API version 41.0. In API version 42.0, we spelled it correctly. Small, 41.0 41.0–41.0
deletable Boolean Indicates whether the object can be deleted. Small, 42.0 42.0
dependentFields Map<String, Object> A map of the dependent fields tree structure. Each nested object is another Map<String, Object>. When the object is empty, it indicates a leaf of the tree, which is a field that doesn’t control other fields. An object can have multiple independent trees, which means this property can have multiple root objects.
Imagine an object with the picklists Continents__c, Countries__c, and Cities__c. Continents__c is the root. Cities__c is a leaf. Continents__c and Countries__c are controlling fields. Countries__c and Cities__c are dependent picklists.
"dependentFields" : {
    "Continents__c" : {
      "Countries__c" : {
        "Cities__c" : { }
      }
    }
  },

A field dependency causes the values in a picklist to be dynamically filtered based on the value selected by the user in another field. The field that drives filtering is called the "controlling field." Standard and custom checkboxes and picklists with at least one and less than 300 values can be controlling fields. The field that has its values filtered is called the "dependent field." Custom picklists and multi-select picklists can be dependent fields.

Big, 42.0 42.0
feedEnabled Boolean Indicates whether the object can have feeds. Medium, 41.0 41.0
fields Map<String, Field> A map of field API name to information about the field. This map only contains fields relevant to the requested layout and mode. Medium, 41.0 41.0
keyPrefix String The key prefix for IDs of this object. Medium, 41.0 41.0
label String The object's display label. Small, 41.0 41.0
labelPlural String The plural form of the object's display label. Medium, 41.0 41.0
layoutable Boolean Indicates whether the object can have a layout. Small, 41.0 41.0
mruEnabled Boolean Indicates whether the object can appear in Most Recently Used lists. Small, 41.0 41.0
nameFields String[] A collection of the API names of the fields used to identify the name field for standard and custom objects. Typically there is one name field per object, except where FirstName and LastName fields are used. Medium, 41.0 41.0
queryable Boolean Indicates whether the context user can query the object. Small, 41.0 41.0
recordTypeInfos Map<String, Record Type Info> A map of record type IDs to information about the record type. All record types are visible whether the user has access to them. Medium, 41.0 41.0
searchable Boolean Indicates whether the object can be searched. Small, 41.0 41.0
searchLayoutable Boolean Indicates whether the object can have search layouts. Small, 60.0 60.0
themeInfo Theme Info Theme information for the object. Medium, 41.0 41.0
updateable Boolean Indicates whether the object can be updated. Small, 41.0 41.0
#### See Also - [Get Record Data and Object Metadata](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_record_ui.htm "Get layout information, metadata, and data to build UI for a single record or for a collection of records.") - [Get Object Metadata](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_object_info.htm "Get metadata about a specific object. The response includes metadata describing fields, child relationships, record type, and theme.") - [Get Default Values to Clone a Record](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_record_defaults_clone.htm "Get the default layout information, object information, and data for cloning a record. After getting the default values, make a request to POST /ui-api/records to create the record.") - [Get Default Values to Create a Record](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_record_defaults_create.htm "Get the default values for fields for a new record of a specified object and optional record type. After getting the default values, make a request to POST /ui-api/records to create the record.") - [Record UI](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_ui.htm "The layout information, field information, and data for a record.") - [Record Defaults](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_defaults.htm "The default information and data needed to create or clone a record. Use these values in a request to POST /ui-api/records.") # Object Info Directory A directory of objects that are supported by User Interface API and available to the context user. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | objects | Map | A map of objects supported by User Interface API to their object info directory entries. | Small, 42.0 | 42.0 | #### See Also - [Get a Directory of Supported Objects](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_object_info_directory.htm "Get a directory of objects that are supported by User Interface API and accessible to the context user. The directory includes a /ui-api/object-info/{objectApiName} resource for each supported object.") # Object Info Directory Entry An entry in the Object Info Directory, which is a directory of objects that User Interface API supports and that the context user can access. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | apiName | String | The API name of the object. | Small, 42.0 | 42.0 | | keyPrefix | String | The key prefix of the object. | Small, 47.0 | 47.0 | | label | String | The label of the object. | Small, 42.0 | 42.0 | | labelPlural | String | The plural label of the object. | Small, 42.0 | 42.0 | | nameFields | String\[\] | A list of the API names of the name fields of the object. Most objects have one name field. For example, the Order object has one name field, OrderNumber. However, objects that use a first and last name have multiple name fields. For example, the Contact object has these name fields: FirstName, LastName, and Name. | Small, 47.0 | 47.0 | | objectInfoUrl | String | The URL to get a full object info response for this object (/ui-api/object-info/{objectApiName}). | Small, 42.0 | 42.0 | #### See Also - [Object Info Directory](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_object_info_directory.htm "A directory of objects that are supported by User Interface API and available to the context user.") # Opportunity Stage Picklist Value Attributes Additional picklist value attributes for opportunity stages.
Property Name Type Description Filter Group and Version Available Version
closed Boolean Indicates whether this opportunity stage value represents a closed opportunity. Multiple opportunity stage values can represent a closed opportunity. Small, 41.0 41.0
defaultProbability Double The default percentage estimate of the confidence in closing a specific opportunity for this opportunity stage value. May be null if forecasting is not enabled for the org. Small, 41.0 41.0
forecastCategory​Name String The default forecast category value for this opportunity stage value. May be null if forecasting is not enabled for the org. Small, 41.0 41.0
picklistAtrributes​ValueType String The value is OpportunityStage. Indicates that these value attributes are associated with the stage of an opportunity.

For more information, see the OpportunityStage object documentation.

The property picklistAtrributes​ValueType contains a typographical error.

Small, 41.0 41.0
won Boolean Indicates whether this opportunity stage value represents a won opportunity. Multiple opportunity stage values can represent a won opportunity. Small, 41.0 41.0
#### See Also - [Picklist Value](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_picklist_value.htm "A single picklist value.") # Page Reference A page reference. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | attributes | Map | Values for each attribute specified by the page definition. | Small, 43.0 | 43.0 | | state | Map | Optional parameters that are not integral to the resolution of the reference. | Small, 43.0 | 43.0 | | type | String | Name of the corresponding page definition. | Small, 43.0 | 43.0 | # Page Reference Input To add a navigation item, include a pageReference. A pageReference is a JSON object that describes the navigation item’s page type, its attributes, and the state of the page. Example PUT /services/data/v68.0/ui-api/apps/06mRM000000U6pOYAS/user-nav-items The request body contains the list of navigation items in the order they should appear. To add a navigation item, include a pageReference describing the item. { "navItems": \[{ "id": "0QkRM00000058lN0AQ" }, { "id": "0QkRM00000058lR0AQ", "label": "My Top Account" }, { "pageReference": { "type": "standard\_\_objectPage", "attributes": { "objectApiName": "Dashboard", "actionName": "home" }, "state": {} } }\] } Properties | Name | Type | Description | Required or Optional | Available Version | | --- | --- | --- | --- | --- | | type | String | The page reference type generates a unique URL format and defines attributes that apply to all pages of that type. See [PageReference Types](https://developer.salesforce.com/docs/component-library/documentation/lwc/lwc.reference_page_reference_type "HTML (New Window)"). | Required | 47.0 | | attributes | Map | Map of values for each attribute specified by the page definition, for example, objectAPIName or actionName. | Required | 47.0 | | state | Map | Map of conditional values that customize content on the page, such as filterName. | Optional | 47.0 | #### See Also - [Navigation Item Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_navigation_item_input.htm "Represents the list of navigation items in the order that you want them to appear in the app.") # Perform Action Input Perform a quick action that creates or updates a record. JSON example This example uses a request body to create a Contact for an Account. POST /services/data/v68.0/ui-api/actions/perform-quick-action/Account.CreateContact { "apiName": "Contact", "contextId": "001RO000003zKtEYAU", "fields": { "LastName": "Rogers" "Title": "VP, Facilities" } } Properties
Name Type Description Required or Optional Available Version
allowSaveOnDuplicate Boolean Specifies whether to save a duplicate record (true), or not (false). The default value is false. Optional 57.0
apiName String To API name of the object to create or update. Required 57.0
contextId String The ID of the related record for the quick action. Required for performing object-specific quick actions

Optional for performing global quick actions

57.0
fields Map<String, Object> Map of field names to field values. Required 57.0
#### See Also - [Perform Quick Actions](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_perform_action.htm "Perform a quick action that creates or updates a record.") - [Update a Record with a Quick Action](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_update_action.htm "Perform an Update a Record quick action. To perform a quick action that creates or updates a record, you can also use the POST method.") # Perform Quick Actions Perform a quick action that creates or updates a record. Resource /ui-api/actions/perform-quick-action/${actionApiName} actionApiName—The API name of a quick action. Available Version 57.0 HTTP Method POST Example This example uses a request body to create a Contact for an Account. POST /services/data/v68.0/ui-api/actions/perform-quick-action/Account.CreateContact { "apiName": "Contact", "contextId": "001RO000003zKtEYAU", "fields": { "LastName": "Rogers" "Title": "VP, Facilities" } } Request Parameters | Parameter Name | Type | Description | Required or Optional | Available Version | | --- | --- | --- | --- | --- | | performQuickActionInput | [Perform Action Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_perform_action_input.htm "Perform a quick action that creates or updates a record.") | The data for the quick action. | Required | 57.0 | Response Body [Quick Action Execution](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_perform_action.htm "The results that are returned when a quick action executes.") # Picklist Value A single picklist value.
Property Name Type Description Filter Group and Version Available Version
attributes Either null or one of these response bodies:

This property might contain a nested response body to help consumers understand the meaning of the picklist value.

Small, 41.0

The Work Step Picklist Value Attributes type is available in API version 58.0 and later.

41.0

The Work Step Picklist Value Attributes type is available in API version 58.0 and later.

label String The displayable value of the picklist to use in a UI. Small, 41.0 41.0
validFor Integer[] If the picklist is a dependent picklist, the property contains a list of the controlling value indexes for which this value is valid. If the picklist is an independent picklist, the list is empty. Small, 41.0 41.0
value String The value of the picklist to use in the API. Small, 41.0 41.0
#### See Also - [Picklist Values](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_picklist_values.htm "The picklist values for a field, scoped to a record type. If a picklist is dependent, this response includes the values of its immediate controlling field and how they map to the picklist.") # Picklist Values The picklist values for a field, scoped to a record type. If a picklist is dependent, this response includes the values of its immediate controlling field and how they map to the picklist.
Property Name Type Description Filter Group and Version Available Version
controllerValues Map<String, Integer>
If the picklist is dependent, this property is a map of its immediate controlling field’s picklist values to their indexes.
  • If the controlling field is a picklist, the String is the picklist value and the integer is the value’s index.
  • If the controlling field is a checkbox, the values in the map are "false": 0 and "true": 1.

If the picklist is independent, the map is empty.

Small, 41.0 41.0
defaultValue Picklist Value The default value for the picklist, or null if there isn't one. Small, 41.0 41.0
url String A User Interface API resource that represents this payload. Small, 41.0 41.0
values Picklist Value[] A list of values for this object, record type, field combination. Small, 41.0 41.0
#### See Also - [Picklist Values Collection](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_picklist_values_collection.htm "A collection of picklist values for all the picklists of a specified record type.") - [Get Values for a Picklist Field](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_picklist_values.htm "If a field’s dataType property is equal to Picklist or MultiPicklist, use this resource to get its values.") - [Get Values for All Picklist Fields of a Record Type](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_picklist_values_collection.htm "Use this resource to get the values for all the picklist fields of a specific record type. This resource is especially useful for getting dependent picklist values. For example, if an object has a tree of dependent picklists (Continents__c, Countries__c, Cities__c), use this resource to get all the values for each picklist in one request.") - [Build UI for Picklists](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_features_records_dependent_picklist.htm "User Interface API exposes properties and resources that make it easy for a client to build picklists and dependent picklists.") # Picklist Values Collection A collection of picklist values for all the picklists of a specified record type. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | picklistFieldValues | Map | A map of field names to Picklist Values response bodies. This map contains all the picklist values for all the picklists of a specified record type, including dependent picklists. If a field isn’t a picklist, it isn’t represented in the map. | Small, 42.0 | 42.0 | #### See Also - [Get Values for All Picklist Fields of a Record Type](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_picklist_values_collection.htm "Use this resource to get the values for all the picklist fields of a specific record type. This resource is especially useful for getting dependent picklist values. For example, if an object has a tree of dependent picklists (Continents__c, Countries__c, Cities__c), use this resource to get all the values for each picklist in one request.") - [Build UI for Picklists](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_features_records_dependent_picklist.htm "User Interface API exposes properties and resources that make it easy for a client to build picklists and dependent picklists.") # Platform Action The metadata, layout information, and data for a platform action.
Property Name Type Description Filter Group and Version Available Version
actionListContext String The context of the action. One of these values:
  • Chatter
  • Dockable
  • FlexiPage
  • Global
  • ListView
  • ListViewRecord
  • Lookup
  • MruList
  • ObjectHomeChart
  • Photo
  • Record
  • RecordEdit
  • RelatedList
  • RelatedListRecord
Small, 41.0 41.0
actionTarget String The URL to invoke or describe the action when the action is invoked. Applies only to quick actions. Big, 41.0 41.0
actionTargetType String The type of the target when this action is invoked. One of these values:
  • Describe—applies to actions with a user interface, such as quick actions
  • Invoke—applies to actions with no user interface, such as action links or invocable actions
  • Visualforce—applies to standard buttons overridden by a Visualforce page
Big, 41.0 41.0
apiName String The API name of the action.

In API version 46.0 and later, for global actions the prefix Global. is prepended to the API name.

Small, 41.0 41.0
externalId String External information associated with the action.1 Medium, 41.0 41.0
iconUrl String The URL of the action’s icon image. Small, 41.0 41.0
id String The ID of this platform action record, which is the 18-character PlatformAction SObject ID, with a prefix of 0JV. Small, 41.0 41.0
isMassAction String Indicates whether the action can be performed on multiple records. Small, 41.0 41.0
label String The label to display for this action. Small, 41.0 41.0
lwcComponent String The Lightning web component associated with this action. Small, 56.0 56.0
primaryColor String The primary color of the icon for this action, in Hex color code. For example, 7F8DE1. Small, 41.0 41.0
relatedListRecordId String When the actionListContext property is RelatedListRecord, this field represents the ID of the record in an object's related list. Small, 41.0 41.0
relatedSourceObject String When the actionListContext property is RelatedList or RelatedListRecord, this field represents the API name of the related list to which the action belongs. Small, 41.0 41.0
section String The section of the user interface the action resides in. One of these values:
  • ActivityComposer
  • CollaborateComposer
  • Page
  • SingleActionLinks
Medium, 41.0 41.0
sourceObject String The object that this action is associated with. Either an API name or record ID, depending on the resource. Small, 41.0 41.0
subtype String The subtype of the action. For quick actions, one of these values:
  • Canvas
  • CaseComment
  • ChangeDueDate
  • ChangePriority
  • ChangeStatus
  • Create
  • Email
  • LightningComponent
  • LogACall
  • MobileCreateFull
  • MobileSmartActions
  • Post
  • SendEmail
  • SocialPost
  • Update
  • VisualforcePage
For custom buttons, one of these values:
  • flow
  • javascript
  • page
  • sControl
  • url
For action links, one of these values:
  • Api
  • ApiAsync
  • Download
  • Ui
Standard buttons and productivity actions have no subtype.
Medium, 41.0 41.0
targetObject String The target object that is created when the action is invoked. Small, 41.0 41.0
targetUrl String The target URL for custom button actions. Small, 41.0 41.0
type String The type of the action. One of these values:
  • CustomButton—A button that opens a URL or Visualforce page or executes JavaScript.
  • ProductivityAction—A pre-defined Salesforce action, attached to a limited set of objects.
  • QuickAction—A global or object-specific action.
  • StandardButton—A pre-defined Salesforce button, such as New, Edit, and Delete.
Small, 41.0 41.0
1The format for a quick action is: OrgId:SourceObject::Context:deviceFormat::QuickActionDefinitionId For example: 00Dxx0000001gGh:x01xx0000000007AAA::Record:Phone:09Dxx00000000B6 The format for a standard action is: OrgId:SourceObject::Context:deviceFormat::StandardButton:ApiName # Prevent Record Duplication with Idempotent Record Writes Use idempotent record writes to avoid duplication of records and server operations, which can occur when an app or client encounters a network connection issue. To make a request idempotent, include an Idempotency-Key value in your request header. By making a request idempotent, your records on the server remain in the same state even if an identical request is made once or multiple times. Salesforce uses server storage to store the cached response of an idempotent request. Only the /ui-api/records/{recordId} resource supports idempotent record writes for the POST, PATCH, and DELETE methods. The following table describes idempotent record write support for specific UI API resources.
UI API Resource POST PATCH DELETE
/ui-api/records Yes
/ui-api/records/{recordId} Yes Yes Yes
/ui-api/records/content-documents/​content-versions Yes
/ui-api/records/content-documents/​${contentDocumentId}/content-versions Yes
When a unique Idempotency-Key request header is passed to a supported resource, the response for a server data mutation operation is stored. Subsequently, next time a request is sent to the same resource with the same Idempotency-Key value, the cached response is returned instead of performing a server data mutation operation. ![Note](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/images/icon_note.png) #### Note An idempotent request supports a response size up to 9 MB. If your request results in a larger response size, idempotency isn’t honored, but the request doesn’t fail. Retrying the same request results in duplication on the server. Idempotent record writes save server processing costs by returning cached response for POST, PATCH, and DELETE operations. ## Include an Idempotency Key Value In your request header, pass in an [Idempotency-Key value](https://datatracker.ietf.org/doc/html/draft-ietf-httpapi-idempotency-key-header) in the [UUID v4 format](https://datatracker.ietf.org/doc/html/rfc4122). You can use a library that supports UUID v4 generation, including the [Java UUID utility](https://docs.oracle.com/javase/7/docs/api/java/util/UUID.html). curl --location --request POST 'https://MyDomainName.my.salesforce.com/services/data/v56.0/ui-api/records' \\ --header 'Authorization: Bearer AuthToken' \\ --header 'Content-Type: application/json' \\ --header '**Idempotency-Key: 12cfe4e6-e477-4de8-aa4e-95d31aa2be24**' \\ --header 'Cookie: BrowserId=yVVAfz9GEeuRCtc5jOsncA; CookieConsentPolicy=0:0' \\ --data-raw '{ "apiName": "ResourceAbsence", "fields": { "CreatedDate": "2022-12-01T14:52:16.000Z", "LastModifiedDate": "2022-12-01T14:52:16.000Z", "ResourceId": "0Hnxx0000004C92CAE", "Start": "2022-12-02T14:52:16.000Z", "End": "2022-12-03T14:52:16.000Z" } }' ![Tip](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/images/icon_note_tip.png) #### Tip We recommend that you use a unique Idempotency-Key header value for each unique operation. The idempotency key doesn't provide idempotency indefinitely and auto-expires after 30 days if the same key is reused. When the idempotency key expires after 30 days, the cached record that’s associated with the idempotency key is deleted. If the same idempotency key is used again after it’s deleted, the key is treated as a new idempotency key. A new cached response is then stored when an idempotent request is received the first time. ## Example: Upload a File With An Idempotency Key Let’s look at how you can [upload a file](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_features_records_content_document.htm "Upload documents and images or update the file with a new version.") using an idempotency key. To send the idempotent request, include Idempotency-Key in your request header. curl -H "X-PrettyPrint: 1" \\ -F 'json={"title":"Example image", "description":"Your description"}' \\ -F "fileData=@image.jpg;type=application/octet-stream" \\ -X POST https://MyDomainName.my.salesforce.com/services/data/v58.0/ui-api/records/content-documents/content-versions \\ -H 'Authorization: Bearer AuthToken' \\ -H 'Idempotency-Key: YourKey' When you send the request, notice the id values in the contentDocument, contentDocumentLinks, and contentVersion fields. If you resend the request using the same idempotency key, the response is returned without any server-side operations and the id values remain the same, indicating that the file doesn’t get uploaded a second time. ## HTTP Status Error Codes An idempotent request returns [2XX status codes](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_errors.htm "The response header contains an HTTP status code. If the response isn’t successful, the response body contains an error message, and if appropriate, information about the field or object where the error occurred.") for a successful operation. It can also return one of these HTTP status error codes. 400 You can receive one of the following errors. - Idempotency not supported—Remove the Idempotency-Key header and retry the operation. - Idempotency-Key is not in valid format—Generate a new Idempotency-Key header value and retry the operation. 409 Either a different user has issued the same request earlier or this duplicate request is issued within a short time because an earlier request terminated abruptly. If you include a Retry-After header, a follow-up request is sent. 422 The Idempotency-Key header value is already used by the same user for a different request. Generate a new Idempotency-Key value and retry the operation. 5XX A server error has occurred. If you include a Retry-After header, a follow-up request is sent. # Quick Action Execution The results that are returned when a quick action executes. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | contextId | String | The ID of the related record for the quick action. | Small, 57.0 | 57.0 | | feedItemId | String | The ID of the feed item that the action created. | Small, 57.0 | 57.0 | | id | String | The ID of the record that the action created or updated. | Small, 57.0 | 57.0 | | isCreated | Boolean | Specifies whether the action created records (true), or not (false). | Small, 57.0 | 57.0 | | isSuccess | Boolean | Specifies whether the action executed successfully (true), or not (false). | Small, 57.0 | 57.0 | | successMessage | String | The action’s success message. | Small, 57.0 | 57.0 | #### See Also - [Perform Quick Actions](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_perform_action.htm "Perform a quick action that creates or updates a record.") - [Update a Record with a Quick Action](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_update_action.htm "Perform an Update a Record quick action. To perform a quick action that creates or updates a record, you can also use the POST method.") # Quick Action Layout The record layout used by the quick action. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | actionApiName | String | The name of the quick action. | Small, 58.0 | 58.0 | | layout | [Record Layout](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_layout.htm#ui_api_responses_record_layout "The layout information for a record.") | Information about the layout used by the quick action. | Small, 58.0 | 58.0 | #### See Also - [Get a Quick Action Layout](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_quick_action_layout.htm "Get information about the record layout used by a Create a Record or Update a Record quick action.") # Record The field data, API name, child relationship data, and record type information for a record.
Property Name Type Description Filter Group and Version Available Version
apiName String The API name for this record. Small, 41.0 41.0
childRelationships Map<String, Record Collection> The child relationship data for this record. Small, 41.0 41.0
fields Map<String, Field Value> The field data for this record, matching the requested layout and mode. Small, 41.0 41.0
id String The ID of this record. Small, 41.0 41.0
lastModifiedById String The ID of the user who last updated this record. Small, 44.0 44.0
lastModifiedDate String The date and time when a user last modified this record. Date and time information is in ISO 8601 format. Small, 44.0 44.0
recordTypeId String The record type ID for this record. Small, 48.0 48.0
recordTypeInfo Record Type Info The record type info for this record, if any.

This property is returned for only two levels of nested records. Instead, use recordTypeId, which is returned for every record in a response.

Small, 41.0 41.0
systemModstamp String The date and time when a user or an automated process (such as a trigger) last modified this record. Date and time information is in ISO 8601 format. Small, 44.0 44.0
#### See Also - [Record UI](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_ui.htm "The layout information, field information, and data for a record.") - [List Record Collection](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_record_collection.htm "A collection of list view records.") - [Record Defaults](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_defaults.htm "The default information and data needed to create or clone a record. Use these values in a request to POST /ui-api/records.") - [Batch Result Item](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_batch_result.htm "The results of one subrequest in a batch request.") - [Create or Clone a Record](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_records_create.htm "Create or clone a record.") - [Update a Record](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_record_patch.htm "Update a record's data.") - [Get a Record](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_record_get.htm "Get a record’s data.") - [Get Default Values to Clone a Record](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_record_defaults_clone.htm "Get the default layout information, object information, and data for cloning a record. After getting the default values, make a request to POST /ui-api/records to create the record.") - [Get Default Values to Create a Record](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_record_defaults_create.htm "Get the default values for fields for a new record of a specified object and optional record type. After getting the default values, make a request to POST /ui-api/records to create the record.") # Record Collection A paginated collection of Record response bodies. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | count | Integer | The total count of records returned. | Small, 41.0 | 41.0 | | currentPageToken | String | Token identifying the current page. | Small, 44.0 | 44.0 | | currentPageUrl | String | User Interface API URL identifying the current page. | Small, 41.0 | 41.0 | | nextPageToken | String | Token identifying the next page, or null if there isn’t a next page. | Small, 44.0 | Small, 44.0 | | nextPageUrl | String | User Interface API URL identifying the next page. | Small, 41.0 | Small, 41.0 | | previousPageToken | String | Token identifying the previous page, or null if there isn’t a previous page. | Small, 44.0 | 44.0 | | previousPageUrl | String | User Interface API URL identifying the previous page. | Small, 41.0 | 41.0 | | records | [Record](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record.htm#ui_api_responses_record "The field data, API name, child relationship data, and record type information for a record.")\[\] | A collection of records. | Small, 41.0 | 41.0 | #### See Also - [Record](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record.htm "The field data, API name, child relationship data, and record type information for a record.") - [Get Child Records](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_child_relationships.htm "Get child records for a specified record and child relationship name. Relationships are connections between records. On a record detail page, each record in a related list has a child relationship to the parent record.") - [Lookup Values](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_lookup_values.htm "Records, organized by object type, and metadata in a lookup relationship.") # Record Defaults The default information and data needed to create or clone a record. Use these values in a request to POST /ui-api/records. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | layout | [Record Layout](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_layout.htm#ui_api_responses_record_layout "The layout information for a record.") | Record layout information. | Medium, 41.0 | 41.0 | | objectInfo | [Object Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_object_info.htm#ui_api_responses_object_info "The metadata for an object.") | Object metadata. | Big, 41.0 | 41.0-41.0 | | objectInfos | Map | A map of object metadata. | Big, 42.0 | 42.0 | | record | [Record](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record.htm#ui_api_responses_record "The field data, API name, child relationship data, and record type information for a record.") | Pre-populated record data. | Small, 41.0 | 41.0 | #### See Also - [Get Default Values to Clone a Record](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_record_defaults_clone.htm "Get the default layout information, object information, and data for cloning a record. After getting the default values, make a request to POST /ui-api/records to create the record.") - [Get Default Values to Create a Record](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_record_defaults_create.htm "Get the default values for fields for a new record of a specified object and optional record type. After getting the default values, make a request to POST /ui-api/records to create the record.") - [Create or Clone a Record](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_records_create.htm "Create or clone a record.") # Record Defaults Template Clone A record template containing the default information and data needed to clone a record. Use these values in a request to POST /ui-api/records. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | objectInfos | Map | A map of object metadata. | Big, 49.0 | 49.0 | | record | [Record Template Clone](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_template_clone.htm "A record template containing the default information and data needed to clone a record. Use these values in a request to POST /ui-api/records.") | Pre-populated record data. | Small, 49.0 | 49.0 | #### See Also - [Get Default Values to Clone a Record—Lightweight](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_record_defaults_template_clone.htm "Get the default values for fields for cloning a record. You must specify the fields you want returned. This resource doesn’t use or return layout information. After getting the default values, make a request to POST /ui-api/records to create the record.") # Record Defaults Template Create A record template containing the default information and data needed to create a record. Use these values in a request to POST /ui-api/records. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | objectInfos | Map | A collection of object metadata. | Big, 49.0 | 49.0 | | record | [Record Template Create](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_template_create.htm "A record template containing the default information and data needed to create a record. Use these values in a request to POST /ui-api/records.") | Pre-populated record data. | Small, 49.0 | 49.0 | #### See Also - [Get Default Values to Create a Record—Lightweight](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_record_defaults_template_create.htm "Get the default values for fields for a new record of a specified object and optional record type. You must specify the fields you want returned. This resource doesn’t use or return layout information. After getting the default values, make a request to POST /ui-api/records to create the record.") # Record Exception Error Information about a record exception error.
Property Name Type Description Filter Group and Version Available Version
constituentField String If the field is a constituent of a compound field, this property contains the API name of the constituent field, and the field property contains the API name of the compound field.

If the field is not a constituent of a compound field, or if no field applies to the error, the value is null.

Small, 41.0 41.0
duplicateRecordError Duplicate Record Error Information about possible duplicate records. When the error code is DUPLICATES_DETECTED, this property might contain a value. Small, 41.0 41.0
errorCode String An error status code. Small, 41.0 41.0
field String A field API name. If no field applies to the error, the value is null. Small, 41.0 41.0
fieldLabel String A field label. If no field applies to the error, the value is null. Small, 41.0 41.0
message String An error message. Small, 41.0 41.0
#### See Also - [Record Exceptions](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_exception.htm "A collection of record exception errors.") # Record Exceptions A collection of record exception errors. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | errors | [Record Exception Error](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_exception_error.htm#ui_api_responses_record_exception_error "Information about a record exception error.")\[\] | General errors. | Small, 41.0 | 41.0 | | fieldErrors | Map | A map of field IDs to field-specific errors. | Small, 41.0 | 41.0 | #### See Also - [Error with Output](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_error_with_output.htm "Contains extra information about errors. In rare cases, an error message isn't enough to describe the reason for a failure. For example, when a conflicting precondition exists, the error result can include the information about the cause of the conflict.") # Record Input A description of a record to use in a request to create or update a record or in a request to check for duplicate records. Example POST /ui-api/records { "apiName": "Account", "fields": { "Name": "Universal Containers" } } To provide an address, provide the individual fields as separate inputs. The compound field is only available in the response. { "apiName": "Account", "fields" : { "Name": "Local Boxes", "BillingState": "WA", "BillingStreet" : "123 Main Street", "BillingCountry" : "USA" } } Properties
Name Type Description Required or Optional Available Version
allowSaveOnDuplicate Boolean Specifies whether to save a duplicate record (true), or not (false). The default value is false.

Don’t specify this property when checking for duplicate records.

Optional 43.0
apiName String To create a record, specify the API name of an Object from which to create the record. To update a record, use null or don’t pass this property. To check for duplicate records, specify the API name of the object for which you’re performing the duplicate check. Required to create a record.

Required to check for duplicate records.

41.0
fields Map<String, Object> Map of field names to field values.

Format data types according to these rules:

  • Address—JSON String. Addresses are compound fields and must be broken up into their constituent fields. See the previous example.
  • Boolean—JSON Boolean, true or false
  • Currency—JSON Number (for example, 67.54)
  • Date—JSON string (for example, 2020-04-20)
  • DateTime—JSON string in ISO 8601 format (for example, 2012-02-18T06:40:41.000Z)
  • Double—JSON Number
  • Email—JSON String (for example, joe@smith.com)
  • EncryptedString—JSON String
  • Int—JSON Number
  • Location—JSON String. Location fields are compound fields and must be broken up into their constituent fields.
  • MultiPicklist—JSON String (for example, Dog;Cat;Fish).
  • Percent—JSON Number
  • Phone—JSON String
  • Picklist—JSON String
  • Reference—JSON String
  • String—JSON String
  • TextArea—JSON String
  • Time—JSON String in format HH:MM:SS
  • Url—JSON String

To specify the main record type, either don’t specify the RecordTypeId field, or set it to null.

Required 41.0
#### See Also - [Create or Clone a Record](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_records_create.htm "Create or clone a record.") - [Update a Record](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_record_patch.htm "Update a record's data.") - [Check for Duplicate Records](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_predupe_create.htm "Before updating or creating a record, you can check whether a duplicate record exists. Use the response to learn whether to block or allow the action, and whether to warn the user.") - [Lookup Post Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_lookup_post_input.htm "Get lookup field suggestions.") # Record Layout The layout information for a record.
Property Name Type Description Filter Group and Version Available Version
id String The layout ID. Small, 41.0 41.0
layoutType String The layout type for the record. One of these values:
  • Compact—Use this value to get a layout that contains a record’s key fields.
  • Full—(Default) Use this value to get a full layout.
Small, 41.0 41.0
mode String The access mode for the record. This value determines which fields to get from a layout. Layouts have different fields for create, edit, and view modes. For example, formula fields are rendered in view mode, but not in create mode because they’re calculated at run time, like formulas in a spreadsheet. One of these values:
  • Create—Use this mode if you intend to build UI that lets a user create a record. This mode is used by the /ui-api/record-defaults/create/{apiName} resource.
  • Edit—Use this mode if you intend to build UI that lets a user edit a record. This mode is used by the /ui-api/record-defaults/clone/{recordId} resource.
  • View—(Default) Use this mode to build UI that displays a record.
Small, 41.0 41.0
objectApiName String The API name of the object that the layout is associated with. Small, 49.0 49.0
recordTypeId String The record type ID for this record. Small, 49.0 49.0
saveOptions Record Layout Save Option[] The save options for the layout. Small, 51.0 51.0
sections Record Layout Section[] A collection of layout sections. Small, 41.0 41.0
#### See Also - [Record UI](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_ui.htm "The layout information, field information, and data for a record.") - [Record Defaults](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_defaults.htm "The default information and data needed to create or clone a record. Use these values in a request to POST /ui-api/records.") - [Quick Action Layout](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_quick_action_layout.htm "The record layout used by the quick action.") - [Get Record Layout Metadata](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_record_layout.htm "Get metadata about page layouts for the specified object type.") - [Get Default Values to Clone a Record](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_record_defaults_clone.htm "Get the default layout information, object information, and data for cloning a record. After getting the default values, make a request to POST /ui-api/records to create the record.") - [Get Default Values to Create a Record](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_record_defaults_create.htm "Get the default values for fields for a new record of a specified object and optional record type. After getting the default values, make a request to POST /ui-api/records to create the record.") # Record Layout Component A concrete record layout component.
Property Name Type Description Filter Group and Version Available Version
apiName String If a field powers this component, this property contains the API name of the field. Small, 41.0 41.0
componentType String One of these values:
  • Canvas
  • CustomLink
  • EmptySpace
  • Field
  • ReportChart
  • VisualforcePage
Small, 41.0 41.0
#### See Also - [Record Layout Item](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_layout_item.htm "An item in a record layout.") # Record Layout Item An item in a record layout.
Property Name Type Description Filter Group and Version Available Version
editableForNew Boolean Indicates whether the item can be edited when creating a record. Small, 41.0 41.0
editableForUpdate Boolean Indicates whether the item can be edited when updating a record. Small, 41.0 41.0
label String The text label for the item. Small, 41.0 41.0
layoutComponents Collection of components. Collection can contain any of these components: A collection of components that make up the item. Small, 41.0 41.0
lookupIdApiName String The ID field name of a lookup field. Small, 41.0 41.0
required Boolean Indicates whether the field is required in a layout when creating or updating a record. This information is useful to know if you wanted to render required fields with a different treatment, such as a red outline. Small, 41.0 41.0
sortable Boolean Indicates whether the layout item is sortable. Small, 41.0 41.0
uiBehavior String Indicates the layout item behavior on the specified layout. The value doesn't reflect user-level or profile-level access. Available values are:
  • Edit—The layout field can be edited but isn’t required.
  • Required—The layout field can be edited and is required.
  • Readonly—The layout field is read-only.

This field applies only to page layouts and mini layouts. For other types of layouts, such as compact layouts or quick action layouts, this field is null.

Small, 63.0 63.0
#### See Also - [Record Layout Row](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_layout_row.htm "A row in a record layout.") # Record Layout Row A row in a record layout. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | layoutItems | [Record Layout Item](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_layout_item.htm#ui_api_responses_record_layout_item "An item in a record layout.")\[\] | A collection of items in the row, from left to right. Might not extend to the last column. | Small, 41.0 | 41.0 | #### See Also - [Record Layout Section](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_layout_section.htm "A section in a record layout.") # Record Layout Save Option The save option for a record layout. Save options define behavior that occurs when objects are created or modified using the given layout. For example, for Cases and Leads, a “UseDefaultAssignmentRule” save option is exposed to control whether assignment rules are applied when Cases or Leads are created or edited. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | defaultValue | Boolean | Indicates whether the save option defaults to enabled (true) or not (false). | Small, 51.0 | 51.0 | | isDisplayed | Boolean | Indicates whether the save option is displayed in the layout or not. | Small, 51.0 | 51.0 | | label | String | Label for the save option. | Small, 51.0 | 51.0 | | name | String | API name for the save option. | Small, 51.0 | 51.0 | | restHeaderName | String | REST API header for the save option. | Small, 51.0 | 51.0 | | soapHeaderName | String | SOAP API header for the save option. | Small, 51.0 | 51.0 | # Record Layout Section A section in a record layout.
Property Name Type Description Filter Group and Version Available Version
collapsible Boolean Indicates whether the section can be collapsed. Medium, 41.0 41.0
columns Integer The number of columns in the section. Small, 41.0 41.0
heading String The heading text for the section. Small, 41.0 41.0
id String The ID of the section. Small, 41.0 41.0
layoutRows Record Layout Row[] A collection of the rows in the section. Small, 41.0 41.0
rows Integer The number of rows in the section. Small, 41.0 41.0
tabOrder String Indicates the tab order for the items in the section during view and edit. Valid values are:
  • LeftRight
  • TopDown
Small, 63.0 63.0
useHeading Boolean Indicates whether the heading text is expected to be displayed. Medium, 41.0 41.0
#### See Also - [Record Layout](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_layout.htm "The layout information for a record.") # Record Layout Section User State The user state information for a record layout section. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | collapsed | Boolean | Indicates whether the section is initially displayed as collapsed (true) or expanded (false). | Small, 41.0 | 41.0 | | id | String | The ID of a layout section. | Small, 41.0 | 41.0 | #### See Also - [Record UI](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_ui.htm "The layout information, field information, and data for a record.") # Record Layout User State The user state information for a record layout. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | id | String | The ID of a layout. | Small, 41.0 | 41.0 | | sectionUserStates | Map | A map of layout section user states, keyed to section IDs. | Small, 41.0 | 41.0 | # Record Template Clone A record template containing the default information and data needed to clone a record. Use these values in a request to POST /ui-api/records.
Property Name Type Description Filter Group and Version Available Version
apiName String The record's object API name. Small, 49.0 49.0
cloneSourceId String The ID of the cloned record. This top-level property returns the same result as CloneSourceId in the fields property. Small, 52.0 52.0
fields Map<String, Field Value> A map of field data for the record.

The response includes only requested fields and CloneSourceId. If you don’t pass any fields, the response includes only CloneSourceId.

Small, 49.0 49.0
recordTypeId String The RecordType ID of the record. Small, 49.0 49.0
#### See Also - [Record Defaults Template Clone](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_defaults_template_clone.htm "A record template containing the default information and data needed to clone a record. Use these values in a request to POST /ui-api/records.") # Record Template Create A record template containing the default information and data needed to create a record. Use these values in a request to POST /ui-api/records.
Property Name Type Description Filter Group and Version Available Version
apiName String The record’s object API name. Small, 49.0 49.0
fields Map<String, Field Value> A map of field data for the record.

If you don’t pass any fields, the response doesn’t include any fields.

Small, 49.0 49.0
recordTypeId String The RecordType ID of the record. Small, 49.0 49.0
#### See Also - [Record Defaults Template Create](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_defaults_template_create.htm "A record template containing the default information and data needed to create a record. Use these values in a request to POST /ui-api/records.") # Record Type Info Information about a record type. ![Important](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/images/icon_note_important.png) #### Important Where possible, we changed noninclusive terms to align with our company value of Equality. Because changing terms in our code can break current implementations, we maintained this metadata type’s name. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | available | Boolean | Indicates whether this record type is available to the context user when creating a record. | Small, 41.0 | 41.0 | | defaultRecordTypeMapping | Boolean | Indicates whether this record type mapping is the default for the associated object. | Small, 41.0 | 41.0 | | master | Boolean | Indicates whether this record type is the master record type. The master record type is the default record type that’s used when a record has no custom record type associated with it. | Small, 41.0 | 41.0 | | name | String | The UI label of the record type. The label can be translated into any language that Salesforce supports. | Small, 41.0 | 41.0 | | recordTypeId | String | The ID of the record type. | Small, 41.0 | 41.0 | #### See Also - [Record](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record.htm "The field data, API name, child relationship data, and record type information for a record.") - [Object Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_object_info.htm "The metadata for an object.") # Record UI The layout information, field information, and data for a record. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | layoutUserStates | Map | A map of layout IDs to user state information. | Medium, 41.0 | 41.0 | | layouts | Map>>> | A map of object API names to layout information for each object. | Medium, 41.0 | 41.0 | | objectInfos | Map | A map of object API names to each object’s metadata. | Big, 41.0 | 41.0 | | records | Map | A map of record IDs to each record’s data. | Small, 41.0 | 41.0 | #### See Also - [Get Record Data and Object Metadata](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_record_ui.htm "Get layout information, metadata, and data to build UI for a single record or for a collection of records.") # Records Use these resources to get metadata and data about objects and records. These resources make it easy to build Salesforce UI. - **[Get Record Data and Object Metadata](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_record_ui.htm)** Get layout information, metadata, and data to build UI for a single record or for a collection of records. - **[Get Record Layout Metadata](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_record_layout.htm)** Get metadata about page layouts for the specified object type. - **[Get a Directory of Supported Objects](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_object_info_directory.htm)** Get a directory of objects that are supported by User Interface API and accessible to the context user. The directory includes a /ui-api/object-info/{objectApiName} resource for each supported object. - **[Get Object Metadata](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_object_info.htm)** Get metadata about a specific object. The response includes metadata describing fields, child relationships, record type, and theme. - **[Get a Batch of Object Metadata](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_object_info_batch.htm)** Get metadata about specific objects. The response includes a batch of metadata describing fields, child relationships, record type, and theme. You can request up to 2,000 objects in an object metadata request. - **[Get Values for a Picklist Field](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_picklist_values.htm)** If a field’s dataType property is equal to Picklist or MultiPicklist, use this resource to get its values. - **[Get Values for All Picklist Fields of a Record Type](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_picklist_values_collection.htm)** Use this resource to get the values for all the picklist fields of a specific record type. This resource is especially useful for getting dependent picklist values. For example, if an object has a tree of dependent picklists (Continents\_\_c, Countries\_\_c, Cities\_\_c), use this resource to get all the values for each picklist in one request. - **[Get Child Records](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_child_relationships.htm)** Get child records for a specified record and child relationship name. Relationships are connections between records. On a record detail page, each record in a related list has a child relationship to the parent record. - **[Get a Record](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_record_get.htm)** Get a record’s data. - **[Get a Batch of Records](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_records_batch.htm)** Get data for a batch of records. - **[Create or Clone a Record](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_records_create.htm)** Create or clone a record. - **[Create a Batch of Records](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_records_batch_post.htm)** Create multiple records. You can create, update, and delete up to 200 records in a single request. - **[Get Default Values to Clone a Record](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_record_defaults_clone.htm)** Get the default layout information, object information, and data for cloning a record. After getting the default values, make a request to POST /ui-api/records to create the record. - **[Get Default Values to Clone a Record—Lightweight](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_record_defaults_template_clone.htm)** Get the default values for fields for cloning a record. You must specify the fields you want returned. This resource doesn’t use or return layout information. After getting the default values, make a request to POST /ui-api/records to create the record. - **[Get Default Values to Create a Record](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_record_defaults_create.htm)** Get the default values for fields for a new record of a specified object and optional record type. After getting the default values, make a request to POST /ui-api/records to create the record. - **[Get Default Values to Create a Record—Lightweight](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_record_defaults_template_create.htm)** Get the default values for fields for a new record of a specified object and optional record type. You must specify the fields you want returned. This resource doesn’t use or return layout information. After getting the default values, make a request to POST /ui-api/records to create the record. - **[Update a Record](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_record_patch.htm)** Update a record's data. - **[Update a Batch of Records](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_records_batch_update.htm)** Update multiple records. You can create, update, and delete up to 200 records in a single request. - **[Delete a Record](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_record_delete.htm)** Delete a record. - **[Delete a Batch of Records](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_records_batch_delete.htm)** Delete multiple records. You can create, update, and delete up to 200 records in a single request. - **[Get Lookup Field Suggestions With POST](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_lookup_post.htm)** When a user edits a lookup field, use this resource to search for and display suggestions. You can search for most recently used matches, for matching names, or for any match in a searchable field. You must specify dependent lookup field values used by lookup filters in the \`sourceRecord\` request body parameter. - **[Check for Duplicate Records](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_predupe_create.htm)** Before updating or creating a record, you can check whether a duplicate record exists. Use the response to learn whether to block or allow the action, and whether to warn the user. - **[Get Duplicate Management Configuration for a Specified Object](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_duplicates_get.htm)** Learn whether duplicate management is configured for the specified object. If duplicate management is configured, learn about the object's duplicate rules and matching rules. Use the information in the response to know when to check for duplicate records. - **[Upload a File](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_records_contentversion.htm)** Upload a file such as a document or image. - **[Upload a New File Version](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_records_contentdocument.htm)** Upload a new document or image version. # Reference To Info Information about a reference field's referenced types and the name field names of those types. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | apiName | String | The object API name of a type being referenced in a relationship. | Small, 41.0 | 41.0 | | nameFields | String\[\] | A collection of names of the name fields for this object type. Combined with the relationship name, you can determine how to query this type's name fields, for example, Parent.Name. Typically there is one name field per object, except where FirstName and LastName fields are used. | Small, 41.0 | 41.0 | #### See Also - [Field](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_field.htm "A field's metadata.") # Related List Column A column in a related list.
Property Name Type Description Filter Group and Version Available Version
dataType String Field type. One of these values:
  • address
  • base64
  • boolean
  • combobox
  • complexvalue—Complex Value type (cvt)
  • currency
  • date
  • datetime
  • double
  • email
  • encryptedstring
  • int
  • location
  • multipicklist
  • percent
  • phone
  • picklist
  • reference
  • string
  • textarea
  • time
  • url
Small, 57.0 57.0
fieldApiName String The API name for the field. Small, 42.0 42.0
filterable Boolean Indicates whether this column is filterable (true) or not (false). Small, 57.0 57.0
label String The label of the field. Small, 42.0 42.0
lookupId String The ID of the field if the field is a reference. If the field isn’t a reference, the value can be null. Small, 49.0 49.0
picklistValues String[] The picklist values for this field. Null if the field isn’t a picklist field. Small, 57.0 57.0
quickFilterOperator String The operator used for quick filters on this column. Small, 57.0 57.0
sortable Boolean Indicates whether the list column is sortable. Small, 42.0 42.0
#### See Also - [Related List Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_related_list_metadata.htm "Metadata that describes a related list.") - [Get Related List Metadata](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_related_list_info_md.htm "Returns metadata for a related list in a page layout.") - [Update Related List Metadata](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_related_list_info_md_patch.htm "Update metadata for a related list in a page layout.") # Related List Info Metadata that describes a related list. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | cloneable | Boolean | Indicates whether the related list can be cloned. | Small, 50.0 | 50.0 | | createable | Boolean | Indicates whether a new related list for this related list’s object can be created. | Small, 50.0 | 50.0 | | deletable | Boolean | Indicates whether the related list can be deleted. | Small, 50.0 | 50.0 | | displayColumns | [Related List Column](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_related_list_column.htm "A column in a related list.")\[\] | All display columns for this related list. | Small, 50.0 | 50.0 | | fieldApiName | String | The API name of the field in the child object that links to the parent object. | Small, 51.0 | 51.0 | | fields | String\[\] | Related list fields queried. If a field is specified and the user doesn’t have access to it or it doesn’t exist, an error occurs. | Small, 57.0 | 57.0 | | filterable | Boolean | Indicates whether users can apply quick filters to the related list. | Small, 58.0 | 58.0 | | filterLogicString | String | The filter logic string, such as (1 OR 2) and 3. Related lists don’t support saved filters, so the value is always empty. | Small, 50.0 | 50.0 | | filteredByInfo | [List Filter by Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_filter_by_info.htm#ui_api_responses_list_filter_by_info "Information used to filter a list.")\[\] | Filtering information for the related list. Related lists don’t support saved filters, so the value is always empty. | Small, 50.0 | 50.0 | | label | String | The related list display label. For example, Contracts. | Small, 50.0 | 50.0 | | listReference | [Related List Reference](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_related_list_reference.htm "The related list referenced by the collection or metadata.") | A reference to the related list. | Small, 50.0 | 50.0 | | objectApiNames | String\[\] | The API names for the objects returned in the related list. The objects returned depend on the parent object’s layout. | Small, 51.0 | 51.0 | | orderedByInfo | [List Order By Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_order_by_info.htm#ui_api_responses_list_order_by_info "Ordering information for a list.")\[\] | Ordering information for the related list. | Small, 50.0 | 50.0 | | optionalFields | String\[\] | Additional related list fields queried. If a field is specified and the user doesn’t have access to it, no error occurs. | Small, 57.0 | 57.0 | | restrictColumnsToLayout | Boolean | Indicates whether metadata was retrieved for only the list columns in the page layout (true) or all columns (false). | Small, 57.0 | 57.0 | | updateable | Boolean | Indicates whether the related list can be updated. | Small, 50.0 | 50.0 | | userPreferences | [List User Preference](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_user_preference.htm#ui_api_responses_list_user_preference "User preferences for the list view.") | User preferences for the related list. | Small, 50.0 | 50.0 | | visibility | String | The related list’s visibility. Related lists are always Public. | Small, 50.0 | 50.0 | | visibilityEditable | Boolean | Indicates whether the visibility of the related list can be edited. The value is always false. | Small, 50.0 | 50.0 | #### See Also - [Get Related List Metadata](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_related_list_info_md.htm "Returns metadata for a related list in a page layout.") - [Update Related List Metadata](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_related_list_info_md_patch.htm "Update metadata for a related list in a page layout.") # Related List Info Summary A summary of a related list for an object. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | entityLabel | String | The label for the related list object. | Small, 50.0 | 50.0 | | entityLabelPlural | String | The plural label for the related list object. | Small, 50.0 | 50.0 | | fieldApiName | String | The API name of the field in the child object that links to the parent object. | Small, 50.0 | 50.0 | | keyPrefix | String | The key prefix for IDs of the object that populates the list. This can be null for some related lists. | Small, 50.0 | 50.0 | | label | String | The related list label. | Small, 50.0 | 50.0 | | objectApiName | String | The API name for the object. | Small, 50.0 | 50.0 | | parentFieldApiName | String | The name of the field that relates the object to the parent object. | Small, 50.0 | 50.0 | | relatedListId | String | The ID of the related list. | Small, 50.0 | 50.0 | | relatedListInfoUrl | String | The URL to fetch the metadata for the related list. | Small, 50.0 | 50.0 | | themeInfo | [Theme Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_theme_info.htm "Color and icon information for a theme.") | The theme info for the related list object. | Small, 50.0 | 50.0 | #### See Also - [Related List Info Summary Collection](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_related_list_summary_collection.htm "A collection of related lists for a given object.") # Related List Info Summary Collection A collection of related lists for a given object. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | parentObjectApiName | String | The API name of the parent object. | Small, 50.0 | 50.0 | | parentRecordTypeId | ID | The record type ID of the parent. | Small, 50.0 | 50.0 | | relatedLists | [Related List Summary](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_related_list_summary.htm "A summary of a related list for an object.") | Related list information. | Small, 50.0 | 50.0 | #### See Also - [Get Related Lists for an Object](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_related_list_object.htm "Returns the related lists in an object’s default layout.") # Related List Input A related list to update. Example This example uses a request body to update the metadata for the Contracts related list for the Account object: PATCH /services/data/v68.0/ui-api/related-list-info/Account/Contracts { "orderedByInfo" : \[{ "fieldApiName": "Name", "isAscending" : true }\], "userPreferences" : { "columnWidths" : { "Name" : -1 }, "columnWrap" : { "Name" : false } } } Properties | Name | Type | Description | Required or Optional | Available Version | | --- | --- | --- | --- | --- | | orderedByInfo | [List Order By Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_list_order_by_input.htm "Information describing how to order a related list. This request body supports sorting related lists only by one field. Use this request body to update a related list.")\[\] | A related list’s ordering information. In API version 63.0 and later, you can sort by up to five fields. | Optional | 50.0 | | userPreferences | [List User Preference Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_list_user_preference_input.htm "A related list user preferences to update.") | A related list’s user preferences. | Optional | 50.0 | #### See Also - [Update Related List Metadata](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_related_list_info_md_patch.htm "Update metadata for a related list in a page layout.") - [List Order By Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_list_order_by_input.htm "Information describing how to order a related list. This request body supports sorting related lists only by one field. Use this request body to update a related list.") - [List User Preference Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_list_user_preference_input.htm "A related list user preferences to update.") # Related List Record Collection A collection of related list records. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | count | Integer | The total count of records returned. | Small, 50.0 | 50.0 | | columnLabels | Map | Map of column API name to column label. | Small, 65.0 | 65.0 | | currentPageToken | String | The token for the current page of records. | Small, 50.0 | 50.0 | | currentPageUrl | String | The URL of the current page of records. | Small, 50.0 | 50.0 | | fields | String\[\] | The list of fields requested when these records were fetched. If a field isn’t available to the user, an error occurs. | Small, 50.0 | 50.0 | | listInfoETag | String | An [ETag](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_get_started_intro.htm#ui_api_get_started_intro "Learn the high-level facts about how to use User Interface API. How do you authenticate? How is the API versioned? What are the rate limits? All the information you need, available at a glance.") that indicates whether the metadata has changed. | Small, 50.0 | 50.0 | | listReference | [Related List Reference](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_related_list_reference.htm "The related list referenced by the collection or metadata.") | The reference to the related list that contains the records. | Small, 50.0 | 50.0 | | nextPageToken | String | The token for the next page of records. | Small, 50.0 | 50.0 | | nextPageUrl | String | The URL of the next page of records. | Small, 50.0 | 50.0 | | optionalFields | String\[\] | The list of optional fields requested when these records were fetched. If a field isn’t available to the user, no error occurs and the field isn’t included in the response. | Small, 50.0 | 50.0 | | pageSize | Integer | The number of list records viewed at one time. The default value is 50. | Small, 50.0 | 50.0 | | previousPageToken | String | The token for the previous page of records. | Small, 50.0 | 50.0 | | previousPageUrl | String | The URL of the previous page of records. | Small, 50.0 | 50.0 | | records | [Record](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record.htm#ui_api_responses_record "The field data, API name, child relationship data, and record type information for a record.")\[\] | A collection of records. | Small, 50.0 | 50.0 | | sortBy | String | The API name of the field the list view is sorted by. If the name is preceded with \-, the sort order is descending. | Small, 50.0 | 50.0 | | where | String | The filter applied to returned records, in GraphQL syntax. For example, { and: \[ { StageName: { eq: "Prospecting" } }, { Account: { Name: { eq: "Dickenson plc" } } } \] } filters an Opportunity related list to show only opportunities in the Prospecting stage that are linked to the “Dickenson plc” account. | Small, 55.0 | 55.0 | #### See Also - [Get Related List Records with URL Parameters](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_related_list_records.htm "Returns record data for up to 1,999 records in a related list via URL parameters.") - [Get Related List Records with a Request Body](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_related_list_records_get.htm "Returns record data for up to 1,999 records in a related list. This resource uses the POST method to let you enter request parameters in the request body instead of the URL.") # Related List Record Count The number of records in a given related list. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | count | Integer | The number of records in the related list. | Small, 50.0 | 50.0 | | hasMore | Boolean | Indicates whether there are more records than the provided count. | Small, 50.0 | 50.0 | | listReference | [Related List Reference](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_related_list_reference.htm "The related list referenced by the collection or metadata.") | The related list referenced. | Small, 50.0 | 50.0 | #### See Also - [Get Related List Record Count](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_related_list_count.htm "Returns the record count for a related list.") # Related List Records Batch Input Get record data for a batch of related lists. JSON example To get record data for the Contacts and Opportunities related lists for the account record 001xx000003GYOpAAO, use the following request. POST /ui-api/related-list-records/batch/001xx000003GYOpAAO { "relatedListParameters": \[ { "relatedListId": "Contacts", "fields": \["Name", "Id", "Birthdate"\], "optionalFields": \["Email"\], "sortBy": \["CreatedDate"\], "pageSize": 10, "where": "{ Account: { AnnualRevenue: { gt: 10000000 } }}" }, { "relatedListId": "Opportunities", "fields": \["Name", "Id"\], "optionalFields": \["Email"\], "sortBy": \["CreatedDate"\], "pageSize": 10, "where": "{ Account: { AnnualRevenue: { gt: 10000000 } }}" } \] } Properties
Parameter Name Type Description Required or Optional Available Version
relatedListId String The ID of the related list that you want to get records for. Required 55.0
fields String[] Fields queried for the records returned. These fields are included in the response body and don’t create visible columns. If the field isn’t available to the user, an error occurs. Optional 55.0
optionalFields String[] Additional fields queried for the records returned. These fields are included in the response body and don’t create visible columns. If the field isn’t available to the user, no error occurs and the field isn’t included in the records. Optional 55.0
pageSize Integer The number of records from all lists in the request viewed at one time. The default value is 50. Value can be 1–1999. Optional 55.0
sortBy String[] The API names of the fields that the related list is sorted by. If the name is preceded with -, the sort order is descending. For example, Name sorts by name in ascending order. -CreatedDate sorts by created date in descending order.

In API version 63.0 and later, you can sort by up to five fields. If a field is invalid or isn’t accessible to the context user, this parameter is ignored, but no error occurs.

Optional 55.0
where String The filter applied to returned records, in GraphQL syntax. For example, { and: [ { StageName: { eq: "Prospecting" } }, { Account: { Name: { eq: "Dickenson plc" } } } ] } filters an Opportunity related list to show only opportunities in the Prospecting stage that are linked to the “Dickenson plc” account. Optional 55.0
#### See Also - [Get a Batch of Related List Records with a Request Body](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_related_list_records_batch_get.htm "Returns record data for a batch of related lists. This resource uses the POST method to let you enter request parameters in the request body instead of the URL.") # Related List Records Input Get record data for up to 1,999 records in a related list. JSON example To get record data for the Contacts related list for the account record 001xx000003GYOpAAO, use the following request. POST /ui-api/related-list-records/001xx000003GYOpAAO/Contacts { "fields": \["Name", "Id", "Birthdate"\], "optionalFields": \["Email"\], "sortBy": \["CreatedDate"\], "pageSize": 10, "where": "{ Account: { AnnualRevenue: { gt: 10000000 } }}" } Properties
Parameter Name Type Description Required or Optional Available Version
fields String[] Fields queried for the records returned. These fields are included in the response body and don’t create visible columns. If the field isn’t available to the user, an error occurs. Optional 55.0
includeColumn​Labels Boolean Indicates whether to include column labels in the results for localization (true) or not (false). If unspecified, defaults to false. Optional 65.0
optionalFields String[] Additional fields queried for the records returned. These fields are included in the response body and don’t create visible columns. If the field isn’t available to the user, no error occurs and the field isn’t included in the records. Optional 55.0
pageSize Integer The number of list records viewed at one time. The default value is 50. Value can be 1–1999. Optional 55.0
pageToken String The token for additional pages of records beyond the first page. To fetch another page, use the value returned by nextPageTokenfrom the previous page. Optional 55.0
sortBy String[] The API names of the fields that the related list is sorted by. If the name is preceded by -, the sort order is descending. For example, Name sorts by name in ascending order. -CreatedDate sorts by created date in descending order.

In API version 63.0 and later, you can sort by up to five fields. If a field is invalid or isn’t accessible to the context user, this parameter is ignored, but no error occurs.

Optional 55.0
where String The filter applied to returned records, in GraphQL syntax. For example, { and: [ { StageName: { eq: "Prospecting" } }, { Account: { Name: { eq: "Dickenson plc" } } } ] } filters an Opportunity related list to show only opportunities in the Prospecting stage that are linked to the “Dickenson plc” account. Optional 55.0
#### See Also - [Get Related List Records with a Request Body](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_related_list_records_get.htm "Returns record data for up to 1,999 records in a related list. This resource uses the POST method to let you enter request parameters in the request body instead of the URL.") # Related List Reference The related list referenced by the collection or metadata. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | id | String | ID of the related list reference. | Small, 50.0 | 50.0 | | inContextOfRecordId | String | ID of the parent record for the related list. | Small, 50.0 | 50.0 | | listViewApiName | String | API name of the related list, for example, Contacts. | Small, 50.0 | 50.0 | | objectApiName | String | API name of the [supported](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_get_started_supported_objects.htm#ui_api_get_started_supported_objects "User Interface API supports all custom objects and external objects and many standard objects.") related list object, such as Contact. | Small, 50.0 | 50.0 | | parentObjectApiName | String | API name for the parent object of the related list. | Small, 50.0 | 50.0 | | recordTypeId | String | Record type ID for the parent of the related list. | Small, 50.0 | 50.0 | | relatedListId | String | ID of the related list. | Small, 50.0 | 50.0 | | type | String | Type of related list. | Small, 50.0 | 50.0 | #### See Also - [Related List Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_related_list_metadata.htm "Metadata that describes a related list.") - [Related List Record Collection](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_related_list_record_collection.htm "A collection of related list records.") - [Related List Record Count](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_related_list_record_count.htm "The number of records in a given related list.") # Related List User Preferences User preferences for a related list. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | columnWidths | Map | Column width preferences for the related list. \-1 indicates default width. | Small, 55.0 | 55.0 | | columnWrap | Map | Indicates whether the column text wraps. | Small, 55.0 | 55.0 | | orderedBy | [List Order By Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_order_by_info.htm "Ordering information for a list.")\[\] | Ordering information for the related list. | Small, 55.0 | 55.0 | | preferencesId | String | The related list ID for the user preferences. | Small, 55.0 | 55.0 | #### See Also - [Get Related List User Preferences](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_related_list_preferences_get.htm "Returns user preferences for a related list.") - [Update Related List User Preferences](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_related_list_preferences_patch.htm "Updates user preferences for a related list.") # Related List User Preferences Input User preferences to update for a related list. JSON example To update user preferences for a Contact related list on an Account, use this request with a request body. PATCH /services/data/v68.0/ui-api/related-list-preferences/Account.RelatedContactList { "columnWidths" : { "Name" : 200 }, "columnWrap" : { "Name" : false }, "orderedBy" : \[{ "fieldApiName": "Name", "isAscending" : true }\] } Properties | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | columnWidths | Map | Column width preferences for the related list. \-1 indicates default width. | Small, 55.0 | 55.0 | | columnWrap | Map | Indicates whether the column text wraps. | Small, 55.0 | 55.0 | | orderedBy | [List Order By Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_list_order_by_input.htm "Information describing how to order a related list. This request body supports sorting related lists only by one field. Use this request body to update a related list.")\[\] | Ordering information for the related list. In API version 63.0 and later, you can sort by up to five fields. | Small, 55.0 | 55.0 | #### See Also - [Update Related List User Preferences](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_related_list_preferences_patch.htm "Updates user preferences for a related list.") # Report Layout Component A report chart component on a record layout page. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | apiName | String | If a field powers this component, this property contains the API name of the field. | Small, 41.0 | 41.0 | | cacheData | Boolean | Indicates whether to cache data (true) or not (false). | Small, 41.0 | 41.0 | | componentType | String | The value is ReportChart. | Small, 41.0 | 41.0 | | error | String | An error message. | Small, 41.0 | 41.0 | | filter | String | A filter for the report. | Small, 41.0 | 41.0 | | hideOnError | Boolean | Indicates whether to hide the component when there's an error (true) or not (false). | Small, 41.0 | 41.0 | | placeholder | String | A placeholder for the report. | Small, 41.0 | 41.0 | | reportId | String | The component's report ID. | Small, 41.0 | 41.0 | | showTitle | Boolean | Indicates whether to show the title of the report (true) or not (false). | Small, 41.0 | 41.0 | | size | String | The size of the component. | Small, 41.0 | 41.0 | #### See Also - [Record Layout Item](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_layout_item.htm "An item in a record layout.") # Retired Resources These User Interface API resources are retired. - **[Get Lookup Field Suggestions](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_lookup_get.htm)** When a user edits a lookup field, use this resource to search for and display suggestions. You can search for most recently used matches, for matching names, or for any match in a searchable field. You can also specify lookup filter bindings for dependent lookups. - **[Get Lookup Field Suggestions for a Specified Object](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_lookup_object_get.htm)** When a user edits a lookup field, use this resource to search for and display suggestions for a specified object. You can search for most recently used matches, for matching names, or for any match in a searchable field. You can also specify lookup filter bindings for dependent lookups. - **[Get List Views for an Object (Deprecated)](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_list_views_object.htm)** Get a collection of list views associated with an object. - **[Get List View Records and Metadata (Deprecated)](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_list_views_records_md.htm)** Get record data and metadata for a list view. - **[Get Most Recently Used List View Records (Deprecated)](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_mru_list_views_records.htm)** Get record data for an object’s most recently used (MRU) list view. - **[Get Most Recently Used List View Metadata (Deprecated)](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_mru_list_views_md.htm)** Get metadata for an object’s most recently viewed (MRU) list view. - **[Get Most Recently Used List View Records and Metadata (Deprecated)](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_mru_list_views_records_md.htm)** Get record data and metadata for an object’s most recently used (MRU) list view. # Retired Response Bodies These User Interface API response bodies are retired. - **[List UI](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_ui.htm)** The record data and metadata for a list view. - **[List View Summary](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_view_summary.htm)** A summary of list views for an object. - **[List View Summary Collection](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_view_summary_collection.htm)** A collection of list views for a given object. # Session CSRF Token Get the Cross-Site Request Forgery (CSRF) token for your session to protect requests from malicious third-party sites forgeries. Resource /ui-api/session/csrf Available version 67.0 HTTP methods GET Response body for GET [CSRF Token](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_csrf_token.htm "Cross-Site Request Forgery (CSRF) token.") # Simplified Batch Results The simplified results from a request to a batch resource. Results include information for each subrequest in the batch. | Property | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | results | [Batch Result Item](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_batch_result.htm#ui_api_responses_batch_result "The results of one subrequest in a batch request.")\[\] | Collection of batch result items | Small, 50.0 | 50.0 | #### See Also - [Get a Batch of Related List Record Counts](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_related_list_count_batch.htm "Returns the record count for a batch of related lists.") - [Get a Batch of Related List Metadata](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_related_list_info_batch.htm "Returns metadata for a batch of related lists in a page layout.") - [Get a Batch of Related List Records with URL Parameters](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_related_list_records_batch.htm "Returns record data for a batch of related lists via URL parameters.") - [Get a Batch of Related List Records with a Request Body](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_related_list_records_batch_get.htm "Returns record data for a batch of related lists. This resource uses the POST method to let you enter request parameters in the request body instead of the URL.") - [Get a Batch of List View Metadata](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_list_views_md_batch.htm "Get metadata for a batch of list views.") - [Get a Batch of Related List User Preferences](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_related_list_preferences_batch_get.htm "Returns a batch of user preferences for a related list.") - [Get a Batch of Related List Actions with URL Parameters](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_related_lists_batch.htm "Get the actions on a batch of related lists for a record via URL parameters.") - [Get a Batch of Related List Actions with a Request Body](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_related_list_actions_batch_get.htm "Get the actions on a batch of related lists for a record. This resource uses the POST method so you can enter request parameters in the request body instead using complex URL parameters.") # Status Codes and Error Responses The response header contains an HTTP status code. If the response isn’t successful, the response body contains an error message, and if appropriate, information about the field or object where the error occurred.
HTTP Status Code Description
200 Success with GET, PATCH, or HEAD request
201 Success with POST request
204 Success with DELETE
400 The request could not be understood, usually because the ID is not valid for the particular resource. If the request is for a batch record operation, see the corresponding usage guidelines.
401 The session ID or OAuth token has expired or is invalid. Or, if the request is made by a guest user, the resource isn’t accessible to guest users. The response body contains the message and errorCode.
403 The request has been refused. Verify that the context user has the appropriate permissions to access the requested data, or that the context user is not an external user.
404 Either the specified resource was not found, or the resource has been deleted.
409 A conflict has occurred. For example, an attempt was made to update a request to join a group, but that request had already been approved or rejected.
410 The requested resource has been retired or removed. Delete or update any references to the resource.
412 A precondition has failed. For example, in a batch request, if haltOnError is true and a subrequest fails, subsequent subrequests return 412.
500 An error has occurred within Lightning Platform, so the request could not be completed. Contact Salesforce Customer Support.
503 Too many requests in an hour or the server is down for maintenance.
## Example This request requires a 15 or 18 character record ID, but this record ID doesn't contain enough characters. GET /ui-api/record-ui/003R000000 The response body is: HTTP/1.1 400 Bad Request Date: Tue, 29 Nov 2016 00:16:36 GMT X-Content-Type-Options: nosniff X-XSS-Protection: 1; mode=block Content-Security-Policy: reflected-xss block;report-uri /\_/ContentDomainCSPNoAuth?type=xss Content-Security-Policy: referrer origin-when-cross-origin Set-Cookie: BrowserId=q27CK9tSSCeI3klUaYMo6A;Path=/;Domain=.salesforce.com;Expires=Sat, 28-Jan-2017 00:16:36 GMT Expires: Thu, 01 Jan 1970 00:00:00 GMT Content-Type: application/json;charset=UTF-8 Transfer-Encoding: chunked \[ { "errorCode" : "ILLEGAL\_QUERY\_PARAMETER\_VALUE", "message" : "recordId should be a valid record ID: 003R000000" } \] # Supported Objects User Interface API supports all custom objects and external objects and many standard objects. To get a directory of objects that are supported by the API and accessible to the context user, use the [/ui-api/object-info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_object_info_directory.htm#ui_api_resources_object_info_directory "Get a directory of objects that are supported by User Interface API and accessible to the context user. The directory includes a /ui-api/object-info/{objectApiName} resource for each supported object.") resource. To understand how the API operates on supported objects, let’s look at some examples. This resource gets object metadata. It operates on any supported object. GET /ui-api/object-info/{objectApiName} This example gets Account metadata. GET /ui-api/object-info/Account This resource gets record data and metadata. It operates on any supported object record. GET /ui-api/record-ui/{recordIds} This example gets data and metadata to display an Opportunity record. GET /ui-api/record-ui/006RM000002XCd1YAG Most User Interface API resources support these objects. Related lists resources support every object supported by User Interface API. The list views and most recently used list views resources support smaller sets of objects. For a list of all supported objects, see [All Supported Objects](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_all_supported_objects.htm "User Interface API supports many standard objects as well as all custom and external objects."). - **[All Supported Objects](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_all_supported_objects.htm)** User Interface API supports many standard objects as well as all custom and external objects. - **[List View Supported Objects](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_list_view_supported_objects.htm)** List views support a subset of the standard objects that User Interface API supports. - **[Most Recently Used List View Supported Objects](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_mru_list_view_supported_objects.htm)** Most recently used (MRU) list views support a subset of the standard objects that User Interface API supports. #### See Also - [Get a Directory of Supported Objects](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_object_info_directory.htm "Get a directory of objects that are supported by User Interface API and accessible to the context user. The directory includes a /ui-api/object-info/{objectApiName} resource for each supported object.") # Theme A set of images and banners that make up a theme. Banners display across the top of a page and have a higher aspect ratio than images.
Property Type Description Filter Group and Version Available Version
brandColor String The brand color of the theme. Small, 42.0 42.0
brandImage Theme Image The brand image of the theme. Small, 42.0 42.0
brandImageDark​Mode Theme Image The dark mode version of the brand image of the theme. Small, 67.0 67.0
defaultGroupBanner Theme Banner The default banner for groups. The group banner displays on a group’s home page. Small, 42.0 42.0
defaultGroupImage Theme Image The default image for groups. The group image displays beside a group name. Small, 42.0 42.0
defaultPageBanner Theme Banner The default banner for pages other than group and user pages. Small, 42.0 42.0
defaultUserBanner Theme Banner The default user banner of the theme. The user banner displays on a user’s home page. Small, 42.0 42.0
defaultUserImage Theme Image The default user image of the theme. The user image displays beside a username. Small, 42.0 42.0
density String The display density in the user interface. One of these values:
  • ViewOne—User interface elements have a lower density on the page, which means they have more white space between them. In Lightning Experience, this setting is called Comfy.
  • ViewTwo—User interface elements have a higher density on the page, which means they have the least amount of white space between them. In Lightning Experience, this setting is called Compact.
Small, 44.0 44.0
headerColor String The header color of the theme. Small, 42.0 42.0
linkColor String The link color of the theme. Small, 42.0 42.0
pageColor String The page color of the theme. Small, 42.0 42.0
#### See Also - [Get Active Theme](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_themes_active.htm "Get a Salesforce org’s active theme. A theme uses colors, images, and banners to change the overall appearance of Salesforce. Administrators can define themes and switch themes to provide a different look. The User Interface API response matches the Admin’s selection.") # Theme Banner A theme banner image. Theme banners have a higher aspect ratio than theme images. The banner size may change slightly, so code accordingly. | Property | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | fullSizeUrl | String | The URL of the banner image. | Small, 42.0 | 42.0 | #### See Also - [Theme](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_theme.htm "A set of images and banners that make up a theme. Banners display across the top of a page and have a higher aspect ratio than images.") # Theme Image A theme image at three sizes: small, medium, and large. Specific sizes may change slightly, so code accordingly. | Property | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | largeUrl | String | The URL of the large image. | Small, 42.0 | 42.0 | | mediumUrl | String | The URL of the medium image. | Small, 42.0 | 42.0 | | smallUrl | String | The URL of the small image. | Small, 42.0 | 42.0 | #### See Also - [Theme](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_theme.htm "A set of images and banners that make up a theme. Banners display across the top of a page and have a higher aspect ratio than images.") # Theme Info Color and icon information for a theme. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | color | String | Color | Small, 41.0 | 41.0 | | iconUrl | String | Icon URL | Small, 41.0 | 41.0 | #### See Also - [Object Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_object_info.htm "The metadata for an object.") - [Related List Info Summary](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_related_list_summary.htm "A summary of a related list for an object.") # Update a Batch of Favorites Update all favorites at once. The sort order is updated to the given relative ordering. Any favorites missing from the request body are deleted. Resource /ui-api/favorites/batch Available Version 41.0 HTTP Method PUT Request Body JSON example { favorites: \[ { id: "0MVR00000004DhnOAE", name: "Q4 Perf" }, { id: "0MVR00000004DhsOAE" }, { id: "0MVR00000004DiGOAU" }, { id: "0MVR000000001e2OAA", name: "Office Group" }, { id: "0MVR00000004GGlOAM" }}\] } Properties | Name | Type | Description | Required or Optional | Available Version | | --- | --- | --- | --- | --- | | favorites | [Favorite Batch Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_favorite_batch_input.htm#ui_api_requests_favorite_batch_input "Represents a single favorite when updating favorites in batch.")\[\] | The list of favorites to keep and update. | Required | 41.0 | Response Body [Favorite Collection](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_favorite_collection.htm#ui_api_responses_favorite_collection "A list of favorites.") # Update a Batch of Records Update multiple records. You can create, update, and delete up to 200 records in a single request. Resource /ui-api/records/batch Available Version 59.0 HTTP Method POST Example This example updates multiple records. POST /ui-api/records/batch { "allOrNone": false, "operations": \[ { "type": "Update", "records": \[ { "fields": { "Id": "001xx000003Gaf9AAC", "NumberOfEmployees": 1000 } }, { "fields": { "Id": "001xx000003GanDAAS", "NumberOfEmployees": 5000 } }, \] }, \] } Request Body | Name | Type | Description | Required or Optional | Available Version | | --- | --- | --- | --- | --- | | recordInput | [Batch Record Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_batch_input.htm "A description of multiple operations for a request to create, update, or delete a batch of records.") | The batch of record input. | Required | 59.0 | Request Parameters
Name Type Description Required or Optional Available Version
useDefaultRule Boolean

For a Case or Lead, specifies whether to use the default (active) assignment rule. If you specify useDefaultRule, don’t specify an assignmentRuleId.

For an Account, specifies whether to apply the default territory assignment rules.

The default value is false.

See AssignmentRuleHeader in SOAP API Developer Guide.

Optional 64.0
Response Body [Batch Results](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_batch_results.htm#ui_api_responses_batch_results "The results from a request to a batch resource. Results include information for each subrequest in the batch.") Usage When updating a batch of records, you must include the Id field. Don’t include the apiName field in [Batch Operation Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_batch_operation_input.htm "Represents the operation type and record data to create, update, and delete in a batch."). You can’t perform multiple operations on the same record in one request. An update operation using an Id value that’s used in another update or delete operation can’t be processed. Otherwise, a 400 HTTP status code with an INVALID\_BATCH\_REQUEST error is returned. Receiving a 400 HTTP status code with an INVALID\_INPUT error can be caused by one of these reasons. - The operations field is missing or empty. - The operation type is missing. - The operations field doesn’t contain a records field or the records field is empty. #### See Also - [Create a Batch of Records](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_records_batch_post.htm "Create multiple records. You can create, update, and delete up to 200 records in a single request.") - [Delete a Batch of Records](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_records_batch_delete.htm "Delete multiple records. You can create, update, and delete up to 200 records in a single request.") # Update a Favorite Update a favorite. Resource /ui-api/favorites/${favoriteId} favoriteId—The ID of a favorite. Available Version 41.0 HTTP Method PATCH Example This example uses a request body to update a favorite. { name: "Red Accounts", sortOrder: 1 } Request Parameters | Parameter Name | Type | Description | Required or Optional | Available Version | | --- | --- | --- | --- | --- | | name | String | The name of the favorite. | You must specify either name or sortOrder. You may specify both. | 41.0 | | sortOrder | Integer | The sort order of the favorite, from 1 to N. | You must specify either name or sortOrder. You may specify both. | 41.0 | Request Body [Favorite Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_favorite_input.htm "A favorite to create or update.") Response Body [Favorite](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_favorite.htm "A single favorite.") # Update a Record Update a record's data. User Interface API enforces Salesforce validation rules. If a validation rule fails, the response is an [Error with Output](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_error_with_output.htm#ui_api_responses_error_with_output "Contains extra information about errors. In rare cases, an error message isn't enough to describe the reason for a failure. For example, when a conflicting precondition exists, the error result can include the information about the cause of the conflict."). When you make a PATCH request to update a record, make sure that the record hasn’t changed since the user started editing it. To find out whether it’s safe to save a record, pass the [If-Unmodified-Since](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Unmodified-Since "HTML (New Window)") HTTP header in the request. As of API version 43.0, if you pass read-only fields in a request body, the response is an [Error with Output](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_error_with_output.htm#ui_api_responses_error_with_output "Contains extra information about errors. In rare cases, an error message isn't enough to describe the reason for a failure. For example, when a conflicting precondition exists, the error result can include the information about the cause of the conflict."). /ui-api/records/{recordId} Available Version 41.0 HTTP Method PATCH Example This example passes a request body to update the name of an Account. PATCH /ui-api/records/001R0000003Gjrt { "fields": { "Name": "Universal Containers" } } To provide an address, provide the individual fields as separate inputs. The compound field is only available in the response. { "fields" : { "Name": "Local Boxes", "BillingState": "WA", "BillingStreet" : "123 Main Street", "BillingCountry" : "USA" } } Request Parameters
Parameter Name Type Description Required or Optional Available Version
allowSaveOnDuplicate Boolean Specifies whether to save a duplicate record. The default value is false. Optional 43.0
handleOwnerChange Boolean Specifies whether to return a 204 No Content HTTP status code if the context user loses access to the record during the update. The default value is false. When false, if the context user loses access to the record during the update, the update completes successfully, however the resource returns an incorrect 404 Not found HTTP status code. Optional 60.0
includeFieldsInBody Boolean Specifies whether to return a field that’s defined in the request body but not in the layout. The default value is false. When set to true, fields that are not in the layout are also included in the response body. Optional 59.0
triggerOtherEmail Boolean For a Case, specifies whether to send email to users outside the organization. In the Salesforce user interface, this email can be triggered by creating, editing, or deleting a contact for a Case.

The default value is false.

See EmailHeader in SOAP API Developer Guide.

Optional 51.0
triggerUserEmail Boolean For a Case or a Lead, specifies whether to send email to users in the organization. In the Salesforce user interface, this email can be triggered by various events: resetting a password, creating a user, changing the Case owner, or adding comments to a Case.

For Case owner changes, also set useDefaultRule=true, or no email is sent.

The default value is false.

See EmailHeader in SOAP API Developer Guide.

Optional 51.0
useDefaultRule Boolean

For a Case or Lead, specifies whether to use the default (active) assignment rule. If you specify useDefaultRule, don’t specify an assignmentRuleId.

For an Account, specifies whether to apply the default territory assignment rules.

The default value is false.

See AssignmentRuleHeader in SOAP API Developer Guide.

Optional 51.0
Request Body
Name Type Description Required or Optional Available Version
allowSaveOnDuplicate Boolean Specifies whether to save a duplicate record (true), or not (false). The default value is false.

Don’t specify this property when checking for duplicate records.

Optional 43.0
apiName String To create a record, specify the API name of an Object from which to create the record. To update a record, use null or don’t pass this property. To check for duplicate records, specify the API name of the object for which you’re performing the duplicate check. Required to create a record.

Required to check for duplicate records.

41.0
fields Map<String, Object> Map of field names to field values.

Format data types according to these rules:

  • Address—JSON String. Addresses are compound fields and must be broken up into their constituent fields. See the previous example.
  • Boolean—JSON Boolean, true or false
  • Currency—JSON Number (for example, 67.54)
  • Date—JSON string (for example, 2020-04-20)
  • DateTime—JSON string in ISO 8601 format (for example, 2012-02-18T06:40:41.000Z)
  • Double—JSON Number
  • Email—JSON String (for example, joe@smith.com)
  • EncryptedString—JSON String
  • Int—JSON Number
  • Location—JSON String. Location fields are compound fields and must be broken up into their constituent fields.
  • MultiPicklist—JSON String (for example, Dog;Cat;Fish).
  • Percent—JSON Number
  • Phone—JSON String
  • Picklist—JSON String
  • Reference—JSON String
  • String—JSON String
  • TextArea—JSON String
  • Time—JSON String in format HH:MM:SS
  • Url—JSON String

To specify the main record type, either don’t specify the RecordTypeId field, or set it to null.

Required 41.0
Response Body [Record](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record.htm#ui_api_responses_record "The field data, API name, child relationship data, and record type information for a record.") #### See Also - [Upload Binary Files](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_features_records_binary_upload.htm "If a record has a Base64 field, you can upload binary data to the field when you create or update a record.") # Update a Record with a Quick Action Perform an Update a Record quick action. To perform a quick action that creates or updates a record, you can also use the POST method. Resource /ui-api/actions/perform-quick-action/${actionApiName} actionApiName—The API name of a quick action. Available Version 58.0 HTTP Method PATCH Example This example updates fields on an Account. PATCH /services/data/v68.0/ui-api/actions/perform-quick-action/Account.UpdateAccount { "apiName": "Account", "contextId": "001RO000003zKsYYAU", "fields": { "Type": "Prospect", "Phone": "(785) 241-6200" } } Request Parameters | Parameter Name | Type | Description | Required or Optional | Available Version | | --- | --- | --- | --- | --- | | performQuickActionInput | [Perform Action Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_perform_action_input.htm "Perform a quick action that creates or updates a record.") | The data for the quick action. | Required | 58.0 | Response Body [Quick Action Execution](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_perform_action.htm "The results that are returned when a quick action executes.") #### See Also - [Perform Quick Actions](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_perform_action.htm "Perform a quick action that creates or updates a record.") # Update Last Selected App Returns metadata for an app, and saves an app as the last selected for a user. Resource /ui-api/apps/${appId} Available Version 43.0 HTTP Method PATCH Example As an example, let’s say that the user has an app with an ID of 06mRM000000AFIrYAO. To get metadata for this app, make this request: PATCH /services/data/v68.0/ui-api/apps/06mRM000000AFIrYAO?formFactor=Large The PATCH request doesn’t require a request body. The request returns metadata for the app and its associated navigation tabs. It also updates the last selected app to be this app. Request parameters for PATCH
Parameter Name Type Description Required or Optional Available Version
formFactor String The form factor for each app that the user has access to.
  • Large—App supports the desktop display size.
  • Medium—App supports the tablet display size.
  • Small—App supports the phone display size.
Required 43.0
Response body for PATCH [App](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_app.htm "The metadata for a single app.") # Update List View Metadata Update list view metadata. Resource /ui-api/list-info/${objectApiName}/${listViewApiName} - objectApiName—A [supported](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_get_started_supported_objects.htm#ui_api_get_started_supported_objects "User Interface API supports all custom objects and external objects and many standard objects.") object, such as Account. - listViewApiName—The API name of a list view, such as AllAccounts. Available Version 61.0 HTTP Method PATCH Example This example uses a request body to update the metadata for a list view. The object API name is Account and the list view API name is AllAccounts. PATCH /services/data/v68.0/ui-api/list-info/Account/AllAccounts { "filteredByInfo": \[ { "fieldApiName": "Name", "operandLabels": \[ "This", "That"\], "operator": "Equals" }, { "fieldApiName": "Phone", "operandLabels": \[ "919"\], "operator": "StartsWith" }, { "fieldApiName": "AnnualRevenue", "operandLabels": \[ "1000000"\], "operator": "GreaterThan" } \], "filterLogicString" : "(1 OR 2) AND 3", "label": "Accounts opened this year", "scope": { "apiName": "entity", "entityId": "00Gxx000000sjI8", "relatedEntityId": "701xx000003HZ7X" }, "visibility": "Public" } Request parameters | Parameter Name | Type | Description | Required or Optional | Available Version | | --- | --- | --- | --- | --- | | listInfoInput | [List Info Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_list_info_input.htm "Info to update a list.") | The list info to update. | Required | 61.0 | Response Body [List Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_metadata.htm "Metadata that describes a list.") # Update List View Preferences Update list view preferences. Resource /ui-api/list-preferences/${objectApiName}/${listViewApiName} - objectApiName—A [supported](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_get_started_supported_objects.htm#ui_api_get_started_supported_objects "User Interface API supports all custom objects and external objects and many standard objects.") object, such as Account. - listViewApiName—The API name of a list view, such as AllAccounts. Available version 61.0 HTTP methods PATCH Example This example updates list preferences for the All Accounts list view. PATCH /services/data/v68.0/ui-api/list-preferences/Account/AllAccounts { "columnWidths" : { "Name" : 200 }, "columnWrap" : { "Name" : false }, "orderedBy" : \[{ "fieldApiName": "Name", "isAscending" : true }\] } Request parameters for PATCH | Parameter Name | Type | Description | Required or Optional | Available Version | | --- | --- | --- | --- | --- | | listPreferencesInput | [List Preferences Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_list_preferences_input.htm "List preferences to update.") | List preferences to update. | Required | 61.0 | Response body for PATCH [List Preferences](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_preferences.htm "List preferences.") # Update Personalized Navigation Items Updates the order of a user’s personalized navigation items (tabs) and adds a navigation item to the list in the order specified. Resource /ui-api/apps/{appId}/user-nav-items Available Version 47.0 HTTP Method PUT Example To update the order that navigation items display in an app and add an item to the list, make this request using the app’s ID. PUT /services/data/v68.0/ui-api/apps/06mRM000000U6pOYAS/user-nav-items The request body contains the list of navigation items in the order they should appear. To add a navigation item, include a pageReference describing the item. { "navItems": \[{ "id": "0QkRM00000058lN0AQ" }, { "id": "0QkRM00000058lR0AQ", "label": "My Top Account" }, { "pageReference": { "type": "standard\_\_objectPage", "attributes": { "objectApiName": "Dashboard", "actionName": "home" }, "state": {} } }\] } The request returns metadata for the navigation items associated with this app. { "currentPageUrl": "/services/data/v68.0/ui-api/apps/06mRM000000U6pOYAS/user-nav-items?formFactor=large", "navItems": \[{ "availableInClassic": true, "availableInLightning": true, "color": "2ECBBE", "content": "https://yourinstance.salesforce.com/00O/o", "custom": false, "developerName": "standard-report", "iconUrl": "https://yourinstance.salesforce.com/img/icon/t4v35/standard/report\_120.png", "id": "0QkRM00000058lN0AQ", "itemType": "Entity", "label": "Cars", "objectApiName": "Car\_\_c", "objectLabel": "Car", "objectLabelPlural": "Cars", "pageReference": { "attributes": { "objectApiName": "Car\_\_c", "actionName": "home" }, "state": {}, "type": "standard\_\_objectPage" }, "standardType": null }, { "availableInClassic": false, "availableInLightning": true, "color": "7F8DE1", "content": "001RM000004QlpqYAC", "custom": true, "developerName": null, "iconUrl": "https://yourinstance.salesforce.com/img/icon/t4v35/standard/account\_120.png", "id": "0QkRM00000058lR0AQ", "itemType": "Record", "label": "My Top Account", "objectApiName": "Account", "objectLabel": "Account", "objectLabelPlural": "Accounts", "pageReference": { "attributes": { "recordId": "001RM000004QlpqYAC", "objectApiName": "Account", "actionName": "view" }, "state": {}, "type": "standard\_\_recordPage" }, "standardType": null }, { "availableInClassic": true, "availableInLightning": true, "color": "EF6E64", "content": "https://yourinstance.salesforce.com/01Z/o", "custom": false, "developerName": "standard-Dashboard", "iconUrl": "https://yourinstance.salesforce.com/img/icon/t4v35/standard/dashboard\_120.png", "id": "0QkRM00000058ll0AA", "itemType": "Standard", "label": "Dashboards", "objectApiName": "Dashboard", "objectLabel": "Dashboard", "objectLabelPlural": "Dashboards", "pageReference": { "attributes": { "objectApiName": "Dashboard", "actionName": "home" }, "state": {}, "type": "standard\_\_objectPage" }, "standardType": "Dashboards" }\], "nextPageUrl": null } Request Body | Name | Type | Description | Required or Optional | Available Version | | --- | --- | --- | --- | --- | | navItems | [Navigation Item Collection Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_navigation_item_collection_input.htm "A collection of all the navigation items (tabs) for an app. Pass this request body to get or update a user’s personalized navigation items.") | A list of navigation items (tabs) in the updated order they should appear. The updated order persists across desktop and mobile environments. | Required | 47.0 | Response Body [Navigation Items](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_nav_items.htm "An ordered list of navigation items (tabs) for the current user.") # Update Related List Metadata Update metadata for a related list in a page layout. Resource /ui-api/related-list-info/${parentObjectApiName}/${relatedListId} - parentObjectApiName—A [supported](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_get_started_supported_objects.htm#ui_api_get_started_supported_objects "User Interface API supports all custom objects and external objects and many standard objects.") object, such as Account. - relatedListId—The ID of a supported related list for that object, such as Contracts. Available Version 50.0 HTTP Method PATCH Example This example uses a request body to update the metadata for the Contracts related list for the Account object: PATCH /services/data/v68.0/ui-api/related-list-info/Account/Contracts { "orderedByInfo" : \[{ "fieldApiName": "Name", "isAscending" : true }\], "userPreferences" : { "columnWidths" : { "Name" : -1 }, "columnWrap" : { "Name" : false } } } Request Body | Parameter Name | Type | Description | Required or Optional | Available Version | | --- | --- | --- | --- | --- | | recordTypeId | Id | The ID of the record type (RecordType object) for the record. If not provided, the default record type is used. | Optional | 50.0 | | relatedList​InfoInput | [Related List Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_related_list_input.htm "A related list to update.") | The updated related list metadata. | Required | 50.0 | Response Body [Related List Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_related_list_metadata.htm "Metadata that describes a related list.") # Update Related List User Preferences Updates user preferences for a related list. Resource /ui-api/related-list-preferences/${preferencesId} - preferencesId—The ID of user preferences for a related list, for example, Account.RelatedContactList. Available Version 57.0 HTTP Method PATCH Example To update user preferences for a Contact related list on an Account, use this request with a request body. PATCH /services/data/v68.0/ui-api/related-list-preferences/Account.RelatedContactList { "columnWidths" : { "Name" : 200 }, "columnWrap" : { "Name" : false }, "orderedBy" : \[{ "fieldApiName": "Name", "isAscending" : true }\] } Request Parameters | Parameter Name | Type | Description | Required or Optional | Available Version | | --- | --- | --- | --- | --- | | relatedListUser​PreferencesInput | [Related List User Preferences Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_related_list_user_preferences_input.htm "User preferences to update for a related list.") | The related list user preferences to update. | Required | 57.0 | Response Body [Related List User Preferences](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_related_list_user_preferences.htm "User preferences for a related list.") # Update Usage of a Favorite Update the usage of an individual favorite. Increments the accessCount and sets the lastAccessDate to the current system time. Resource /ui-api/favorites/${favoriteId}/usage favoriteId—The ID of a favorite. Available Version 41.0 HTTP Method PATCH Response Body [Favorite](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_favorite.htm#ui_api_responses_favorite "A single favorite.") # Upload a File Upload a file such as a document or image. Resource /ui-api/records/content-documents/content-versions Available Version 56.0 HTTP Method POST To upload a file or a new file version, provide the binary file in a multipart/form-data body part where name="fileData". See [Upload Binary Files](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_features_records_binary_upload.htm "If a record has a Base64 field, you can upload binary data to the field when you create or update a record.") and [Upload Files](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_features_records_content_document.htm "Upload documents and images or update the file with a new version."). Request Parameters for POST | Parameter Name | Type | Description | Required or Optional | Available Version | | --- | --- | --- | --- | --- | | description | String | A description of the document or image to be uploaded. | Optional | 56.0 | | title | String | The title of the document or image to be uploaded. | Optional | 56.0 | Request Body for POST Example for Uploading a File POST /ui-api/records/content-documents/content-versions { "description": "A description of the product", "title": "product\_image" } Properties | Name | Type | Description | Required or Optional | Available Version | | --- | --- | --- | --- | --- | | description | String | A description of the document or image to be uploaded. | Optional | 56.0 | | title | String | The title of the document or image to be uploaded. | Optional | 56.0 | Response Body [Content Document Composite](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_contentdocumentcomposite.htm "The file and its relationship to a record.") # Upload a New File Version Upload a new document or image version. Resource /ui-api/records/content-documents/${contentDocumentId}/content-versions contentDocumentId—The ID of a previously uploaded file. Available Version 56.0 HTTP Method POST To upload a file or a new file version, provide the binary file in a multipart/form-data body part where name="fileData". See [Upload Binary Files](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_features_records_binary_upload.htm "If a record has a Base64 field, you can upload binary data to the field when you create or update a record.") and [Upload Files](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_features_records_content_document.htm "Upload documents and images or update the file with a new version."). Request Parameters for POST | Parameter Name | Type | Description | Required or Optional | Available Version | | --- | --- | --- | --- | --- | | description | String | A description of the document or image to be uploaded. | Optional | 56.0 | | title | String | The title of the document or image to be uploaded. | Optional | 56.0 | Request body for POST Example for Uploading a New Version of a File POST /ui-api/records/content-documents/0692L00000BDVevQAH/content-versions { "description": "Version 2 of the product image", "title": "product\_image" } Properties | Name | Type | Description | Required or Optional | Available Version | | --- | --- | --- | --- | --- | | description | String | A description of the document or image to be uploaded. | Optional | 56.0 | | title | String | The title of the document or image to be uploaded. | Optional | 56.0 | Response Body [Content Document Composite](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_contentdocumentcomposite.htm "The file and its relationship to a record.") # Upload Binary Files If a record has a Base64 field, you can upload binary data to the field when you create or update a record. The field determines the binary data file size limit. For example, the ContentNote.Content field has a different limit than the Attachment.Body field. For information about fields, see [Standard Objects](https://developer.salesforce.com/docs/atlas.en-us.264.0.object_reference.meta/object_reference/sforce_api_objects_list.htm "HTML (New Window)") in _Object Reference for Salesforce and Lightning Platform_. There are two ways to upload a binary file in request. - [Upload Binary Files in a Multipart/Form-Data Request](#multipart) - [Upload Binary Files in a JSON Request Body](#json) ## Upload Binary Files in a Multipart/Form-Data Request To upload a binary file, create a multipart request with a part that contains the JSON request body required by the resource, and a part for each file you want to upload. Each file must have its own part. To upload binary data to multiple fields, add a part for each field. The part names must match the field names. Let’s [create](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_records_create.htm#ui_api_resources_records_create "Create or clone a record.") a ContentNote record and upload a binary file to its [Content](https://developer.salesforce.com/docs/atlas.en-us.264.0.object_reference.meta/object_reference/sforce_api_objects_contentnote.htm "HTML (New Window)") field, which is the content or body of the note. This [curl](https://curl.haxx.se/ "HTML (New Window)") example performs a multi-part request that contains the JSON request body and the binary file. curl -v -H 'Authorization: Bearer 00Dxx0000001gER!ARoAQFFeB\_55d8B3Sh....' -F 'json={"apiName": "ContentNote","fields": {"Title": "My List of Things"}};type=application/json' -F 'Content=@note.txt;type=application/octet-stream' -X POST 'http://{instance-name}.salesforce.com/services/data/v68.0/ui-api/records' The first part, starting with \-F, contains the JSON request body that the /ui-api/records resource requires. The request body contains the API name of the record (ContentNote) and the title of the record (My List of Things). The part name must be json. The second part, starting with the second \-F, contains the binary file. The part name must match the name of the Base64 field to which the data is uploaded. The ContentNote Base64 field name is Content, and the plain text file we’re uploading is note.txt. ## Upload Binary Files in a JSON Request Body The JSON format doesn’t support binary data. To upload a binary file in a JSON payload, encode the file using [Base64](https://en.wikipedia.org/wiki/Base64) encoding. In this sample Record Input JSON request body, the Content property contains the file as a Base64 encoded string. { "apiName": "ContentNote", "fields": { "Content": "SGksIFRoaXMgaXMgYmFzZTY0", "Title": "Sample Title" } } This curl example creates a ContentNote record and uploads the file. curl -X POST -H 'Authorization: Bearer 00Dxx0000001gER!ARoAQFFeB\_55d8B3Sh...' -H 'Content-Type: application/json' -H "Content-type: application/json" -d '{"apiName": "ContentNote","fields": {"Content": "SGksIFRoaXMgaXMgYmFzZTY0","Title": "Sample Title"} }' 'http://{instance-name}.salesforce.com/services/data/v68.0/ui-api/records' #### See Also - [Create or Clone a Record](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_records_create.htm "Create or clone a record.") - [Update a Record](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_record_patch.htm "Update a record's data.") # Upload Files Upload documents and images or update the file with a new version. Salesforce stores files uploaded to a record or group as a ContentDocument. Each file has a ContentVersion record that corresponds to a specific version of the file. Additionally, ContentDocumentLink holds the polymorphic relationships between a file and where it's shared, such as a users, groups, and records. For information about working with files, see [ContentDocument](https://developer.salesforce.com/docs/atlas.en-us.264.0.object_reference.meta/object_reference/sforce_api_objects_contentdocument.htm "HTML (New Window)") in _Object Reference for Salesforce and Lightning Platform_. User Interface API provides two ways to upload a file in a request. - [Upload a New File](#upload-file) - [Upload a File Version](#upload-version) ![Note](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/images/icon_note.png) #### Note To prevent duplication of file uploads, such as in situations where the network connection is unstable, use [Idempotency Record Writes](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_features_records_idempotent.htm "Use idempotent record writes to avoid duplication of records and server operations, which can occur when an app or client encounters a network connection issue."). ## Upload a New File This request uploads an image with the .csv file extension. It creates a new ContentDocument, ContentVersion, and ContentDocumentLink in one request. After the file is uploaded, you can view it in [Files home](https://help.salesforce.com/s/articleView?id=experience.collab_files_using.htm&type=5&language=en_US). Example POST Request POST /ui-api/records/content-documents/content-versions { "description": "My test file", "title": "CSV File" } Example CURL Request curl -H "X-PrettyPrint: 1" -F 'json={"title":"CSV File", "description":"My test file"};type=application/json' -F 'fileData=@aa.csv;type=application/octet-stream' -X POST https://{instance-name}.salesforce.com/services/data/v57.0/ui-api/records/content-documents/content-versions -H 'Authorization: Bearer your\_access\_token\_here' Example Response { "contentDocument" : { "apiName" : "ContentDocument", "childRelationships" : { }, "eTag" : "32e236323d9e6feea5412bb694a9b33d", "fields" : { "CreatedDate" : { "displayValue" : "11/2/2022, 11:13 AM", "value" : "2022-11-02T18:13:53.000Z" }, "Description" : { "displayValue" : null, "value" : "My test file" }, "Id" : { "displayValue" : null, "value" : "069RM0000008MbJYAU" }, "LastModifiedById" : { "displayValue" : null, "value" : "005RM000002dpIzYAI" }, "LastModifiedDate" : { "displayValue" : "11/2/2022, 11:13 AM", "value" : "2022-11-02T18:13:53.000Z" }, "SystemModstamp" : { "displayValue" : null, "value" : "2022-11-02T18:13:54.000Z" }, "Title" : { "displayValue" : null, "value" : "CSV File" } }, "id" : "069RM0000008MbJYAU", "lastModifiedById" : "005RM000002dpIzYAI", "lastModifiedDate" : "2022-11-02T18:13:53.000Z", "recordTypeId" : null, "recordTypeInfo" : null, "systemModstamp" : "2022-11-02T18:13:54.000Z", "weakEtag" : 1667412834000 }, "contentDocumentLinks" : \[ { "apiName" : "ContentDocumentLink", "childRelationships" : { }, "eTag" : "a9e9ca5f7e2eb85af2aef5ed122350c2", "fields" : { "ContentDocumentId" : { "displayValue" : null, "value" : "069RM0000008MbJYAU" }, "Id" : { "displayValue" : null, "value" : "06ARM00000095a72AA" }, "LinkedEntityId" : { "displayValue" : null, "value" : "005RM000002dpIzYAI" }, "ShareType" : { "displayValue" : "Inferred", "value" : "I" }, "SystemModstamp" : { "displayValue" : null, "value" : "2022-11-02T18:13:54.000Z" } }, "id" : "06ARM00000095a72AA", "lastModifiedById" : null, "lastModifiedDate" : null, "recordTypeId" : null, "recordTypeInfo" : null, "systemModstamp" : "2022-11-02T18:13:54.000Z", "weakEtag" : 1667412834000 } \], "contentVersion" : { "apiName" : "ContentVersion", "childRelationships" : { }, "eTag" : "0cbf5c6af463dbda0d0741eeda132d7a", "fields" : { "ContentSize" : { "displayValue" : null, "value" : "26224" }, "CreatedDate" : { "displayValue" : "11/2/2022, 11:13 AM", "value" : "2022-11-02T18:13:53.000Z" }, "Description" : { "displayValue" : null, "value" : "My test file" }, "Id" : { "displayValue" : null, "value" : "068RM0000008SBhYAM" }, "LastModifiedById" : { "displayValue" : null, "value" : "005RM000002dpIzYAI" }, "LastModifiedDate" : { "displayValue" : "11/2/2022, 11:13 AM", "value" : "2022-11-02T18:13:53.000Z" }, "SystemModstamp" : { "displayValue" : null, "value" : "2022-11-02T18:13:54.000Z" }, "Title" : { "displayValue" : null, "value" : "CSV File" }, "VersionDataUrl" : { "displayValue" : null, "value" : "https://{instance-name}.documentforce.com/sfc/servlet.shepherd/version/download/068RM0000008SBh" } }, "id" : "068RM0000008SBhYAM", "lastModifiedById" : "005RM000002dpIzYAI", "lastModifiedDate" : "2022-11-02T18:13:53.000Z", "recordTypeId" : "012000000000000AAA", "recordTypeInfo" : null, "systemModstamp" : "2022-11-02T18:13:54.000Z", "weakEtag" : 1667412834000 } ## Upload a File Version This request uploads a new version of an image file with a new file name. It creates a new ContentVersion, and updates the existing objects to reference the new ContentVersion. Example POST Request POST /ui-api/records/content-documents/069RM0000008MbEYAU/content-versions { "title": "Updated product image" } Example CURL Request curl -H "X-PrettyPrint: 1" -F 'json={"title":"Updated product image"};type=application/json' -F 'fileData=@Test.PNG;type=application/octet-stream' -X POST 'https://{instance-name}.salesforce.com/services/data/v57.0/ui-api/records/content-documents/069RM0000008MbEYAU/content-versions' -H 'Authorization: Bearer your\_access\_token\_here' Example Response { "contentDocument" : { "apiName" : "ContentDocument", "childRelationships" : { }, "eTag" : "8a5ed89e115ff7f99e4d00e6ec07c0f3", "fields" : { "CreatedDate" : { "displayValue" : "11/2/2022, 10:19 AM", "value" : "2022-11-02T17:19:28.000Z" }, "Description" : { "displayValue" : null, "value" : null }, "Id" : { "displayValue" : null, "value" : "069RM0000008MbEYAU" }, "LastModifiedById" : { "displayValue" : null, "value" : "005RM000002dpIzYAI" }, "LastModifiedDate" : { "displayValue" : "11/2/2022, 10:53 AM", "value" : "2022-11-02T17:53:59.000Z" }, "SystemModstamp" : { "displayValue" : null, "value" : "2022-11-02T17:54:00.000Z" }, "Title" : { "displayValue" : null, "value" : "Updated product image" } }, "id" : "069RM0000008MbEYAU", "lastModifiedById" : "005RM000002dpIzYAI", "lastModifiedDate" : "2022-11-02T17:53:59.000Z", "recordTypeId" : null, "recordTypeInfo" : null, "systemModstamp" : "2022-11-02T17:54:00.000Z", "weakEtag" : 1667411640000 }, "contentDocumentLinks" : \[ { "apiName" : "ContentDocumentLink", "childRelationships" : { }, "eTag" : "0e32a473e9bd0bb69eb23fb1c0d8115c", "fields" : { "ContentDocumentId" : { "displayValue" : null, "value" : "069RM0000008MbEYAU" }, "Id" : { "displayValue" : null, "value" : "06ARM00000095a32AA" }, "LinkedEntityId" : { "displayValue" : null, "value" : "001RM000005XNLIYA4" }, "ShareType" : { "displayValue" : "Inferred", "value" : "I" }, "SystemModstamp" : { "displayValue" : null, "value" : "2022-11-02T17:19:31.000Z" } }, "id" : "06ARM00000095a32AA", "lastModifiedById" : null, "lastModifiedDate" : null, "recordTypeId" : null, "recordTypeInfo" : null, "systemModstamp" : "2022-11-02T17:19:31.000Z", "weakEtag" : 1667409571000 }, { "apiName" : "ContentDocumentLink", "childRelationships" : { }, "eTag" : "ccfa6db5bfad0c23d0aa613b69fbaec5", "fields" : { "ContentDocumentId" : { "displayValue" : null, "value" : "069RM0000008MbEYAU" }, "Id" : { "displayValue" : null, "value" : "06ARM00000095a22AA" }, "LinkedEntityId" : { "displayValue" : null, "value" : "005RM000002dpIzYAI" }, "ShareType" : { "displayValue" : "Inferred", "value" : "I" }, "SystemModstamp" : { "displayValue" : null, "value" : "2022-11-02T17:19:32.000Z" } }, "id" : "06ARM00000095a22AA", "lastModifiedById" : null, "lastModifiedDate" : null, "recordTypeId" : null, "recordTypeInfo" : null, "systemModstamp" : "2022-11-02T17:19:32.000Z", "weakEtag" : 1667409572000 } \], "contentVersion" : { "apiName" : "ContentVersion", "childRelationships" : { }, "eTag" : "7b64a64ff99e3141f6fdbf7a5278d424", "fields" : { "ContentSize" : { "displayValue" : null, "value" : "324337" }, "CreatedDate" : { "displayValue" : "11/2/2022, 10:53 AM", "value" : "2022-11-02T17:53:59.000Z" }, "Description" : { "displayValue" : null, "value" : null }, "Id" : { "displayValue" : null, "value" : "068RM000000228mYAA" }, "LastModifiedById" : { "displayValue" : null, "value" : "005RM000002dpIzYAI" }, "LastModifiedDate" : { "displayValue" : "11/2/2022, 10:53 AM", "value" : "2022-11-02T17:53:59.000Z" }, "SystemModstamp" : { "displayValue" : null, "value" : "2022-11-02T17:54:01.000Z" }, "Title" : { "displayValue" : null, "value" : "Updated product image" }, "VersionDataUrl" : { "displayValue" : null, "value" : "https://{instance-name}.documentforce.com/sfc/servlet.shepherd/version/download/068RM000000228m" } }, "id" : "068RM000000228mYAA", "lastModifiedById" : "005RM000002dpIzYAI", "lastModifiedDate" : "2022-11-02T17:53:59.000Z", "recordTypeId" : "012000000000000AAA", "recordTypeInfo" : null, "systemModstamp" : "2022-11-02T17:54:01.000Z", "weakEtag" : 1667411641000 } } #### See Also - [Upload a New File Version](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_records_contentdocument.htm "Upload a new document or image version.") - [Upload a File](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_records_contentversion.htm "Upload a file such as a document or image.") # User Interface API Appendices User Interface API supports all custom objects and external objects and many standard objects. Use these appendices to find more information on supported objects. You can also find retired resources, request bodies, and response bodies here. - **[Supported Objects](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_get_started_supported_objects.htm)** User Interface API supports all custom objects and external objects and many standard objects. - **[Retired Resources](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_appendices_retired_resources.htm)** These User Interface API resources are retired. - **[Retired Response Bodies](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_appendices_retired_outputs.htm)** These User Interface API response bodies are retired. # User Interface API Features Learn to use User Interface API to work with various Salesforce features. Build Salesforce UI for actions, apps, favorites, list views, and records. - **[Work with Records](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_features_records.htm)** Use User Interface API to build UI that lets users create, read, update, and delete Salesforce records. Let’s look at two of the trickier aspects of the API: how to work with child relationships, and how to upload binary files to records. - **[Work with Actions](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_features_actions.htm)** Use the Actions resources to get data and metadata about actions displayed in the Salesforce UI. Examples include standard and custom buttons, quick actions, and productivity actions. - **[Manage Favorites](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_features_favorites.htm)** Favorites let users access frequently used pages in Salesforce. Use User Interface API Favorites resources to manage favorites. - **[Work with List Views](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_features_list_views.htm)** Use the List View resources to get record data and metadata about list views displayed in the Salesforce UI. - **[Manage Apps](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_features_apps.htm)** An app is a collection of items that work together to serve a particular function. Salesforce apps come in two flavors: Classic apps and Lightning apps. Classic apps are created and managed in Salesforce Classic. Lightning apps are created and managed in Lightning Experience. Admins customize both types of apps to match the way users work. # User Interface API Nested Response Bodies These response bodies are nested in top-level response bodies. A request to a resource always returns an [HTTP status code](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_errors.htm#ui_api_errors "The response header contains an HTTP status code. If the response isn’t successful, the response body contains an error message, and if appropriate, information about the field or object where the error occurred."), whether the request was successful or not. - **[Advanced Lookup Display Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_advanced_lookup_display_info.htm)** Search lookups advanced display information. - **[Advanced Lookup Display Info Field](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_advanced_lookup_display_info_field.htm)** Search lookups advanced display field information. - **[Advanced Lookup Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_advanced_lookup_info.htm)** Advanced search lookup information. - **[Batch Result Item](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_batch_result.htm)** The results of one subrequest in a batch request. - **[Canvas Layout Component](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_canvas_layout_component.htm)** A canvas component on a record page layout. - **[Case Status Picklist Value Attributes](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_case_status_picklist_values.htm)** Additional picklist value attributes for case statuses. - **[Child Relationship](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_child_relationship.htm)** The child relationship on a parent object. Relationships are connections between records. Use relationships to display data about related object records on a record's detail page. - **[Custom Link Layout Component](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_custom_link_layout_component.htm)** A custom link component on a record page layout. - **[Display Layout](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_display_layout.htm)** Search lookups target display layout metadata. - **[Display Layout and Matching Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_display_layout_and_matching_info.htm)** Search lookups target display layout and matching information. - **[Duplicate Record Error](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_duplicate_record_error.htm)** Information about duplicate record errors. Duplicate rules are used to control whether and when you can save duplicate records within Salesforce. Duplicate rules tell Salesforce what action to take when you attempt to create a duplicate record. - **[Duplicate Result Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_duplicate_result_info.htm)** The result of the check for duplicate records. If duplicate records exist, returns the records' IDs and the duplicate rule that was used to match the records. - **[Duplicate Rule](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_duplicate_rule.htm)** Describes a duplicate rule. - **[Duplicate Rule Filter](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_duplicate_rule_filter.htm)** A duplicate rule filter. - **[Duplicate Rule Filter Item](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_duplicate_rule_filter_item.htm)** A filter, or condition, for a duplicate rule. For example, a condition can specify that this rule applies only to movies that were produced in the United States. - **[Error Message](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_error_message.htm)** An error code and error message. - **[Error with Output](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_error_with_output.htm)** Contains extra information about errors. In rare cases, an error message isn't enough to describe the reason for a failure. For example, when a conflicting precondition exists, the error result can include the information about the cause of the conflict. - **[Field](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_field.htm)** A field's metadata. - **[Field Layout Component](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_field_layout_component.htm)** A field in a record layout. - **[Field Value](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_field_value.htm)** The raw and displayable field values for a field in a record. - **[Filtered Lookup Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_filtered_lookup_info.htm)** Metadata for a lookup filter. - **[Lead Status Picklist Value Attributes](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_lead_status_picklist_values.htm)** Additional picklist value attributes for lead statuses. - **[List Column](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_column.htm)** A column in a list. - **[List Column Inline Edit Attributes](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_column_inline_edit_attributes.htm)** List column inline edit attributes. - **[List Filter by Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_filter_by_info.htm)** Information used to filter a list. - **[List Info Share](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_info_share.htm)** List info share. - **[List Info Share Category](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_info_share_category.htm)** List info share category. - **[List Info Summary](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_info_summary.htm)** List info summary. - **[List Inline Edit Details](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_inline_edit_details.htm)** List inline edit details. - **[List Object Column](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_object_column.htm)** List object column. - **[List Object Picklist Value](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_object_picklist_value.htm)** List object picklist value. - **[List Object Quick Filter Overrides](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_object_quick_filter_overrides.htm)** List object column quick filter overrides. - **[List Object Scope](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_object_scope.htm)** List object scope. - **[List Object Scope Available Entity](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_object_scope_available_entity.htm)** List object scope available entity, such as a group or queue. - **[List Order By Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_order_by_info.htm)** Ordering information for a list. - **[List Reference](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_reference.htm)** The list view referenced by the collection or metadata. - **[List Scope](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_scope.htm)** List scope. - **[List Scope Entity](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_scope_entity.htm)** List scope entity. - **[List Scope Related Entity](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_scope_related_entity.htm)** List scope related entity. - **[List User Preference](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_user_preference.htm)** User preferences for the list view. - **[Location Field](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_location_field.htm)** A complex location value for a record field. - **[Lookup Metadata](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_lookup_metadata.htm)** Search lookups metadata. - **[Lookup Metadata Target Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_lookup_metadata_target_info.htm)** Search lookups target metadata. - **[Match](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_match.htm)** A group of records that match the duplicate rules. - **[Match Result](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_match_result.htm)** A duplicate rule match. Duplicate rules are used to control whether and when you can save duplicate records within Salesforce. Duplicate rules tell Salesforce what action to take when you attempt to create a duplicate record. Each duplicate rule requires at least one matching rule to identify which existing records are possible duplicates. - **[Match Result Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_match_result_info.htm)** Information about the results of a match. - **[Match Rule](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_match_rule.htm)** A match rule defines how duplicate records are identified in duplicate rules and duplicate jobs. Learn about one of the match rules for the specified object, including the match rule's name and the fields that the match rule checks. - **[Matching Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_matching_info.htm)** Search lookups target matching information. - **[Navigation Item](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_nav_item.htm)** The metadata for a single navigation item (tab). - **[Object Action](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_object_action.htm)** The actions for an object. - **[Object Info Directory Entry](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_object_info_directory_entry.htm)** An entry in the Object Info Directory, which is a directory of objects that User Interface API supports and that the context user can access. - **[Opportunity Stage Picklist Value Attributes](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_opportunity_stage_picklist_values.htm)** Additional picklist value attributes for opportunity stages. - **[Page Reference](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_page_reference.htm)** A page reference. - **[Picklist Value](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_picklist_value.htm)** A single picklist value. - **[Platform Action](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_platform_action.htm)** The metadata, layout information, and data for a platform action. - **[Record Exceptions](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_exception.htm)** A collection of record exception errors. - **[Record Exception Error](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_exception_error.htm)** Information about a record exception error. - **[Record Layout Component](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_layout_component.htm)** A concrete record layout component. - **[Record Layout Item](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_layout_item.htm)** An item in a record layout. - **[Record Layout Row](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_layout_row.htm)** A row in a record layout. - **[Record Layout Save Option](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_layout_save_option.htm)** The save option for a record layout. Save options define behavior that occurs when objects are created or modified using the given layout. For example, for Cases and Leads, a “UseDefaultAssignmentRule” save option is exposed to control whether assignment rules are applied when Cases or Leads are created or edited. - **[Record Layout Section](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_layout_section.htm)** A section in a record layout. - **[Record Layout Section User State](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_layout_section_user_state.htm)** The user state information for a record layout section. - **[Record Layout User State](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_layout_user_state.htm)** The user state information for a record layout. - **[Record Template Clone](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_template_clone.htm)** A record template containing the default information and data needed to clone a record. Use these values in a request to POST /ui-api/records. - **[Record Template Create](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_template_create.htm)** A record template containing the default information and data needed to create a record. Use these values in a request to POST /ui-api/records. - **[Record Type Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_type_info.htm)** Information about a record type. - **[Reference To Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_reference_to_info.htm)** Information about a reference field's referenced types and the name field names of those types. - **[Related List Column](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_related_list_column.htm)** A column in a related list. - **[Related List Info Summary](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_related_list_summary.htm)** A summary of a related list for an object. - **[Related List Reference](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_related_list_reference.htm)** The related list referenced by the collection or metadata. - **[Report Layout Component](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_report_layout_component.htm)** A report chart component on a record layout page. - **[Theme Banner](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_theme_banner.htm)** A theme banner image. Theme banners have a higher aspect ratio than theme images. The banner size may change slightly, so code accordingly. - **[Theme Image](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_theme_image.htm)** A theme image at three sizes: small, medium, and large. Specific sizes may change slightly, so code accordingly. - **[Theme Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_theme_info.htm)** Color and icon information for a theme. - **[Visualforce Layout Component](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_visualforce_layout_component.htm)** A Visualforce component on a record layout page. - **[Work Step Status Picklist Value Attributes](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_workstep_picklist_values.htm)** Additional picklist value attributes for work step statuses. #### See Also - [User Interface API Top-Level Response Bodies](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_top_level.htm "These response bodies are returned from requests to User Interface API resources. They may contain nested response bodies") # User Interface API Quick Start Use the Postman desktop app or web-based UI to easily explore and test the UI API and other Salesforce APIs against your orgs. ![Important](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/images/icon_note_important.png) #### Important Where possible, we changed noninclusive terms to align with our company value of Equality. Because changing terms in our code can break current implementations, we maintained this object’s name. If you don’t already have an org, you can sign up for a [Salesforce Developer Edition](https://developer.salesforce.com/signup), also known as a _DE org_. This quick start makes a request to the List UI resource, [/ui-api/list-info/${objectApiName}](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_lists_object_get.htm "Get list views associated with an object."). This resource returns a collection of list info summaries for an object. Before you connect Postman to Salesforce, [fork and configure the collection](https://github.com/forcedotcom/postman-salesforce-apis/blob/master/install-with-app.md). These steps use the Postman desktop app to send a request. Alternatively, you can [connect the Postman web app to Salesforce using the Trailhead quick start](https://trailhead.salesforce.com/content/learn/projects/quick-start-connect-postman-to-salesforce), which requires a CORS configuration in Salesforce. 1. Open the Postman desktop app. 2. Expand the collection, and select **UI** | **List Views** | **Get List Views for an Object**. 3. Update the {{\_endpoint}} and {{version}} values if needed. 4. Go to the Authorization tab to choose your Auth Type and update required information. 5. Click **Send**. The query returns a 200 OK status. If you receive an error, check your configuration and try again. The [List Info Summary Collection](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_info_summary_collection.htm "List info summary collection.") response body includes an array of list info summaries. { "count": 6, "currentPageToken": "0", "currentPageUrl": "/services/data/v62.0/ui-api/list-info/Account?pageSize=20&pageToken=0", "lists": \[ { "apiName": "AllAccounts", "id": "00B58000002ssinEAA", "label": "All Accounts", "url": "/services/data/v62.0/ui-api/list-info/Account/AllAccounts" }, { "apiName": "MyAccounts", "id": "00B58000002ssivEAA", "label": "My Accounts", "url": "/services/data/v62.0/ui-api/list-info/Account/MyAccounts" }, { "apiName": "NewLastWeek", "id": "00B58000002ssiHEAQ", "label": "New Last Week", "url": "/services/data/v62.0/ui-api/list-info/Account/NewLastWeek" }, { "apiName": "NewThisWeek", "id": "00B58000002ssi6EAA", "label": "New This Week", "url": "/services/data/v62.0/ui-api/list-info/Account/NewThisWeek" }, { "apiName": "PlatinumandGoldSLACustomers", "id": "00B58000002ssiXEAQ", "label": "Platinum and Gold SLA Customers", "url": "/services/data/v62.0/ui-api/list-info/Account/PlatinumandGoldSLACustomers" }, { "apiName": "RecentlyViewedAccounts", "id": "00B58000002ssimEAA", "label": "Recently Viewed Accounts", "url": "/services/data/v62.0/ui-api/list-info/Account/RecentlyViewedAccounts" } \], "nextPageToken": null, "nextPageUrl": null, "objectApiName": "Account", "pageSize": 20, "previousPageToken": null, "previousPageUrl": null, "queryString": null, "recentListsOnly": false } You just sent a UI API request using Postman! You can do more with UI API using Postman, such as sending a cURL command to [upload a file](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_features_records_content_document.htm "Upload documents and images or update the file with a new version.") to your Salesforce org. To send a cURL command, import the request using raw text. 1. In Postman, click the **Import** tab on the top left side. 2. Select the **Raw text** tab. 3. Paste your cURL command and click **Continue**. 4. Verify your request name and format, then click **Import**. 5. Send your request. Consider the following guidelines. - If you’re sending any JSON data as part of your cURL command, the import adds the JSON string as a key on the **Body** | **form-data** tab by default. Move the JSON string from the **Body** | **form-data** tab to the **Body** | **raw** tab, and delete it from the **Body** | **form-data** tab. - If you’re sending a file using the \-F option, upload your file under the **Body** | **form-data** tab. For example, you can [upload files](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_features_records_content_document.htm "Upload documents and images or update the file with a new version.") by adding the fileData key and selecting a local file. ![Send a cURL command using Postman](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/api_ui/images/postman_curl_import.png) # User Interface API Release Notes The API release notes include updates to the request bodies, response bodies, and resources. View the latest updates in the [User Interface API Release Notes](https://help.salesforce.com/s/articleView?id=release-notes.rn_api_ui.htm&language=en_US). # User Interface API Request Bodies The successful execution of a request to a resource can return a response body in JSON format. A request to a resource always returns an [HTTP response code](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_errors.htm#ui_api_errors "The response header contains an HTTP status code. If the response isn’t successful, the response body contains an error message, and if appropriate, information about the field or object where the error occurred."), whether the request was successful or not. - **[Action Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_action_input.htm)** Get the actions on related lists on a record detail page. - **[Action Related List Single Batch Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_action_related_list_single_batch_input.htm)** Get the actions on a batch of related lists for a record. - **[Action Related Lists Batch Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_action_related_list_batch_input.htm)** Get the actions on a batch of related lists for a record. - **[Batch Record Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_batch_input.htm)** A description of multiple operations for a request to create, update, or delete a batch of records. - **[Content Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_content_input.htm)** Upload a file or a new file version. - **[Batch Operation Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_batch_operation_input.htm)** Represents the operation type and record data to create, update, and delete in a batch. - **[Favorite Batch Collection Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_favorite_batch_collection_input.htm)** A collection of all the favorites in a batch. Pass this request body to update a batch of favorites. - **[Favorite Batch Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_favorite_batch_input.htm)** Represents a single favorite when updating favorites in batch. - **[Favorite Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_favorite_input.htm)** A favorite to create or update. - **[List Filter By Info Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_list_filter_by_info_input.htm)** List filter by info to update or create. - **[List Info Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_list_info_input.htm)** Info to update a list. - **[List Info Post Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_list_info_post_input.htm)** Info to create a list. - **[List Order By Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_list_order_by_input.htm)** Information describing how to order a related list. This request body supports sorting related lists only by one field. Use this request body to update a related list. - **[List Preferences Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_list_preferences_input.htm)** List preferences to update. - **[List Records Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_list_records_input.htm)** Record data to query for a list view. - **[List Scope Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_list_scope_input.htm)** List scope to update or create. - **[List User Preference Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_list_user_preference_input.htm)** A related list user preferences to update. - **[Lookup Post Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_lookup_post_input.htm)** Get lookup field suggestions. - **[Navigation Item Collection Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_navigation_item_collection_input.htm)** A collection of all the navigation items (tabs) for an app. Pass this request body to get or update a user’s personalized navigation items. - **[Navigation Item Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_navigation_item_input.htm)** Represents the list of navigation items in the order that you want them to appear in the app. - **[Page Reference Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_page_reference_input.htm)** To add a navigation item, include a pageReference. A pageReference is a JSON object that describes the navigation item’s page type, its attributes, and the state of the page. - **[Perform Action Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_perform_action_input.htm)** Perform a quick action that creates or updates a record. - **[Record Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_record_input.htm)** A description of a record to use in a request to create or update a record or in a request to check for duplicate records. - **[Related List Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_related_list_input.htm)** A related list to update. - **[Related List Records Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_related_list_record_input.htm)** Get record data for up to 1,999 records in a related list. - **[Related List Records Batch Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_related_list_record_batch_input.htm)** Get record data for a batch of related lists. - **[Related List User Preferences Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_related_list_user_preferences_input.htm)** User preferences to update for a related list. # User Interface API Resources This chapter contains User Interface API resources (also called endpoints). - **[Records](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_record.htm)** Use these resources to get metadata and data about objects and records. These resources make it easy to build Salesforce UI. - **[Actions](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_actions.htm)** Use these resources to get data and metadata about actions displayed in the Salesforce UI. Examples include standard and custom buttons, quick actions, and productivity actions. - **[Favorites](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_favorites.htm)** Use these resources to create and update a single favorite or a collection of favorites, and to get favorites usage information. These resources make it easy to build UI for favorites. - **[Lists](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_list_views.htm)** Use these resources to get data and metadata about list views and related lists displayed in the Salesforce UI. - **[Apps](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_apps_overview.htm)** Use these resources to get data and metadata for apps displayed in the Salesforce UI. - **[Get Active Theme](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_themes_active.htm)** Get a Salesforce org’s active theme. A theme uses colors, images, and banners to change the overall appearance of Salesforce. Administrators can define themes and switch themes to provide a different look. The User Interface API response matches the Admin’s selection. - **[Session CSRF Token](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_session_csrf.htm)** Get the Cross-Site Request Forgery (CSRF) token for your session to protect requests from malicious third-party sites forgeries. # User Interface API Response Bodies A request to a resource returns a response body. Some response bodies also contain nested response bodies. A request to a resource always returns an [HTTP response code](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_errors.htm#ui_api_errors "The response header contains an HTTP status code. If the response isn’t successful, the response body contains an error message, and if appropriate, information about the field or object where the error occurred."), whether the request was successful or not. - **[User Interface API Top-Level Response Bodies](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_top_level.htm)** These response bodies are returned from requests to User Interface API resources. They may contain nested response bodies - **[User Interface API Nested Response Bodies](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_nested.htm)** These response bodies are nested in top-level response bodies. # User Interface API Sample Apps We’ve built two sample apps that use User Interface API to create, read, update, and delete records. The apps are open-source and available on GitHub. Record Viewer is a Node.js app available at [https://github.com/forcedotcom/RecordViewer](https://github.com/forcedotcom/RecordViewer "HTML (New Window)"). Record Viewer Native is a React Native app available at [https://github.com/forcedotcom/RecordViewerNative](https://github.com/forcedotcom/RecordViewerNative "HTML (New Window)"). # User Interface API Top-Level Response Bodies These response bodies are returned from requests to User Interface API resources. They may contain nested response bodies A request to a resource always returns an [HTTP response code](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_errors.htm#ui_api_errors "The response header contains an HTTP status code. If the response isn’t successful, the response body contains an error message, and if appropriate, information about the field or object where the error occurred."), whether the request was successful or not. - **[Action](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_action.htm)** The actions for a single record or a collection of records. - **[App](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_app.htm)** The metadata for a single app. - **[Apps](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_apps.htm)** A list of apps that the current user has access to. - **[Batch Results](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_batch_results.htm)** The results from a request to a batch resource. Results include information for each subrequest in the batch. - **[Content Document Composite](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_contentdocumentcomposite.htm)** The file and its relationship to a record. - **[CSRF Token](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_csrf_token.htm)** Cross-Site Request Forgery (CSRF) token. - **[Duplicates](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_duplicates.htm)** The results of a check for duplicate records. - **[Duplicates Configuration](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_duplicates_configuration.htm)** Contains information about duplicate management configuration for an object. Learn whether duplicate management is configured, which fields are used to determine whether duplicate records exist, and which duplicate rules are active. - **[Favorite](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_favorite.htm)** A single favorite. - **[Favorite Collection](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_favorite_collection.htm)** A list of favorites. - **[List Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_metadata.htm)** Metadata that describes a list. - **[List Info Summary Collection](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_info_summary_collection.htm)** List info summary collection. - **[List Object Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_object_info.htm)** List object info. - **[List Preferences](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_preferences.htm)** List preferences. - **[List Record Collection](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_list_record_collection.htm)** A collection of list view records. - **[Lookup Values](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_lookup_values.htm)** Records, organized by object type, and metadata in a lookup relationship. - **[Navigation Items](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_nav_items.htm)** An ordered list of navigation items (tabs) for the current user. - **[Object Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_object_info.htm)** The metadata for an object. - **[Object Info Directory](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_object_info_directory.htm)** A directory of objects that are supported by User Interface API and available to the context user. - **[Picklist Values](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_picklist_values.htm)** The picklist values for a field, scoped to a record type. If a picklist is dependent, this response includes the values of its immediate controlling field and how they map to the picklist. - **[Picklist Values Collection](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_picklist_values_collection.htm)** A collection of picklist values for all the picklists of a specified record type. - **[Quick Action Execution](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_perform_action.htm)** The results that are returned when a quick action executes. - **[Quick Action Layout](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_quick_action_layout.htm)** The record layout used by the quick action. - **[Record](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record.htm)** The field data, API name, child relationship data, and record type information for a record. - **[Record Collection](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_collection.htm)** A paginated collection of Record response bodies. - **[Record Defaults](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_defaults.htm)** The default information and data needed to create or clone a record. Use these values in a request to POST /ui-api/records. - **[Record Defaults Template Clone](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_defaults_template_clone.htm)** A record template containing the default information and data needed to clone a record. Use these values in a request to POST /ui-api/records. - **[Record Defaults Template Create](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_defaults_template_create.htm)** A record template containing the default information and data needed to create a record. Use these values in a request to POST /ui-api/records. - **[Record Layout](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_layout.htm)** The layout information for a record. - **[Record UI](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_ui.htm)** The layout information, field information, and data for a record. - **[Related List Info](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_related_list_metadata.htm)** Metadata that describes a related list. - **[Related List Info Summary Collection](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_related_list_summary_collection.htm)** A collection of related lists for a given object. - **[Related List Record Collection](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_related_list_record_collection.htm)** A collection of related list records. - **[Related List Record Count](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_related_list_record_count.htm)** The number of records in a given related list. - **[Related List User Preferences](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_related_list_user_preferences.htm)** User preferences for a related list. - **[Simplified Batch Results](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_batch_results_simplified.htm)** The simplified results from a request to a batch resource. Results include information for each subrequest in the batch. - **[Theme](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_theme.htm)** A set of images and banners that make up a theme. Banners display across the top of a page and have a higher aspect ratio than images. #### See Also - [User Interface API Nested Response Bodies](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_nested.htm "These response bodies are nested in top-level response bodies.") # Visualforce Layout Component A Visualforce component on a record layout page. | Property Name | Type | Description | Filter Group and Version | Available Version | | --- | --- | --- | --- | --- | | apiName | String | If a field powers this component, this property contains the API name of the field. | Small, 41.0 | 41.0 | | componentType | String | The value is VisualforcePage. | Small, 41.0 | 41.0 | | height | String | The height of the component. | Small, 41.0 | 41.0 | | showLabel | Boolean | Indicates whether to show the section label with this Visualforce component (true) or not (false). | Small, 41.0 | 41.0 | | showScroll | Boolean | Indicates whether to show the scroll bar on the canvas component (true) or not (false). | Small, 41.0 | 41.0 | | visualforceUrl | String | The Visualforce URL. | Small, 41.0 | 41.0 | | width | String | The width of the component. | Small, 41.0 | 41.0 | #### See Also - [Record Layout Item](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_layout_item.htm "An item in a record layout.") # Work Step Status Picklist Value Attributes Additional picklist value attributes for work step statuses. To use work step status picklist value attributes, you must have [Field Service](https://developer.salesforce.com/docs/atlas.en-us.264.0.field_service_dev.meta/field_service_dev/fsl_dev_set_up.htm) enabled in your org.
Property Name Type Description Filter Group and Version Available Version
picklistAtrributes​ValueType String The value is WorkStepStatus. Indicates that these value attributes are associated with the status of a work step.

For more information, see the WorkStepStatus object documentation.

The property picklistAtrributes​ValueType contains a typographical error.

Small, 58.0 58.0
statusCode String Indicates the status category that this status belongs to. Small, 58.0 58.0
sortOrder Integer Indicates the order in which the work step statuses are displayed in the status category’s picklist. Small, 58.0 58.0
#### See Also - [Picklist Value](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_picklist_value.htm "A single picklist value.") # Work with Actions Use the Actions resources to get data and metadata about actions displayed in the Salesforce UI. Examples include standard and custom buttons, quick actions, and productivity actions. You can use the actions endpoints to fetch lists of actions, but not to execute actions. It’s handy to get a list of actions if you want to use quick actions, if you have Visualforce overrides, or if you want to determine CRUD based on visible actions. For example, if a New action exists, then a user can create a record. Get Actions for a Record Detail Page As an example, let’s say we have an Account record detail page with a record ID of 001R0000003IDlwIAG. The page has some standard buttons and quick actions. To get information about all the actions on this page, make this request: GET /services/data/v68.0/ui-api/actions/record/001R0000003IDlwIAG The request returns a list of actions on the page and the URLs of the request and subrequests. Filter the Action Results To filter the results returned by the Actions resources, use the following request parameters: - actionTypes—The action type. - formFactor—The layout display size. - sections—The section of the user interface that the action resides in. For example, to filter a record actions request so that it includes only standard button actions, set the actionTypes parameter to StandardButton. GET /services/data/v41.0/ui-api/actions/record/001R0000003IDlwIAG?actionTypes=StandardButton #### See Also - [Actions](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_actions.htm "Use these resources to get data and metadata about actions displayed in the Salesforce UI. Examples include standard and custom buttons, quick actions, and productivity actions.") # Work with List Views Use the List View resources to get record data and metadata about list views displayed in the Salesforce UI. Get Record Data for a List View Using GET You can get record data for a list view using a GET request and URL parameters to modify the results. As an example, let’s say we have a list view named All Accounts with a list view ID of 00BR0000000Wc0rMAC. To get information about all the records on this list view, make this request. GET /services/data/v68.0/ui-api/list-records/00BR0000000Wc0rMAC You can also use the object API name and list view API name of the list view to make the same request. GET /services/data/v68.0/ui-api/list-records/Account/AllAccounts To get record data for the most recently used (MRU) list view for accounts, use the special \_\_Recent list view API name. GET /services/data/v68.0/ui-api/list-records/Account/\_\_Recent Modify the GET List View Results with URL Parameters. Modify the list view results using these URL parameters. - fields—Additional fields queried for the records returned, for display purposes. If a field is specified and the user doesn’t have access to it, an error occurs. - optionalFields—Additional fields queried for the records returned, for display purposes. If a field is specified and the user doesn’t have access to it, no error occurs. - pageSize—The number of list records viewed at one time. - pageToken—A token that represents the page offset. - searchTerm—A search term to filter the results. - sortBy—The API names of the fields the list view is sorted by. - where—A where string, using GraphQL syntax, to filter the results. For example, to sort records by the date they were created, set the sortBy parameter to CreatedDate. GET /services/data/v68.0/ui-api/list-records/00BR0000000Wc0rMAC?sortBy=CreatedDate ![Note](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/images/icon_note.png) #### Note Depending on the list view object, some extra fields that were not requested in the fields or optionalFields parameters can be returned. For example, if person accounts are enabled for the org, a request to get list view records can return the isPersonAccount field, among others. Get Record Data for a List View Using POST You can also get record data for a list view using a POST request and a request body to modify the results. This example uses a request body to query a list view named All Accounts. POST /services/data/v68.0/ui-api/list-records/Account/AllAccounts { "fields": \["Name", "Type", "AnnualRevenue", "CreatedDate"\], "pageSize" : 10, "sortBy": \["CreatedDate"\], "searchTerm" : "United", "where": "{AnnualRevenue: { gt: 1000000}}" } This example uses the special \_\_Recent list view API name to get the record data for the most recently used (MRU) list view for accounts. POST /services/data/v68.0/ui-api/list-records/Account/\_\_Recent Get Metadata for a List View You can get metadata for a list view using a GET request. As an example, let’s say we have a list view named All Accounts with a list view ID of 00BR0000000Wc0rMAC. To get information about the metadata for this list view, make this request: GET /services/data/v68.0/ui-api/list-info/00BR0000000Wc0rMAC You can also use the object API name and list view API name of the list view to make the same request: GET /services/data/v68.0/ui-api/list-info/Account/AllAccounts To get the most recently used (MRU) list view metadata for accounts, use the special \_\_Recent list view API name. GET /services/data/v68.0/ui-api/list-info/Account/\_\_Recent To get the search layout list view metadata for accounts, use the special \_\_SearchResult list view API name. GET /services/data/v68.0/ui-api/list-info/Account/\_\_SearchResult #### See Also - [Lists](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_list_views.htm "Use these resources to get data and metadata about list views and related lists displayed in the Salesforce UI.") # Work with Records Use User Interface API to build UI that lets users create, read, update, and delete Salesforce records. Let’s look at two of the trickier aspects of the API: how to work with child relationships, and how to upload binary files to records. ![Note](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/images/icon_note.png) #### Note User Interface API resources operate on all custom objects and [supported standard objects](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_get_started_supported_objects.htm#ui_api_get_started_supported_objects "User Interface API supports all custom objects and external objects and many standard objects."). - **[Get Child Records](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_features_records_child_relationships.htm)** User Interface API has several resources that include child records in their responses. If a record has many child relationships, a response can be huge and have a negative effect on performance. To get only the records you need, request records for specific child relationships and set the page size of the results. - **[Build UI for Picklists](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_features_records_dependent_picklist.htm)** User Interface API exposes properties and resources that make it easy for a client to build picklists and dependent picklists. - **[Upload Binary Files](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_features_records_binary_upload.htm)** If a record has a Base64 field, you can upload binary data to the field when you create or update a record. - **[Prevent Record Duplication with Idempotent Record Writes](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_features_records_idempotent.htm)** Use idempotent record writes to avoid duplication of records and server operations, which can occur when an app or client encounters a network connection issue. - **[Upload Files](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_features_records_content_document.htm)** Upload documents and images or update the file with a new version.