Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Get Default Values to Create a Record—Lightweight
1GET /ui-api/record-defaults/template/create/Account?optionalFields=Account.OwnerId- Resource
-
1/ui-api/record-defaults/template/create/{objectApiName} -
- 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