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.

User Interface API resources operate on all custom objects and supported standard objects.

Note

  • 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.

  • Build UI for Picklists

    User Interface API exposes properties and resources that make it easy for a client to build picklists and dependent picklists.

  • 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.

  • 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.

  • Upload Files

    Upload documents and images or update the file with a new version.