Get SObject API Name
Overview
The Get SObject API Name component returns the API name of the object type for a given Salesforce record Id.
This is particularly useful in Flows or integrations where you are passed a record Id but do not know its object type ahead of time. Instead of hardcoding object names or adding multiple Decision branches, this component dynamically identifies the record’s SObject type.
Inputs
- recordId (Required)
- The Id of the Salesforce record.
- Can be any standard or custom object record Id.
- Must be a valid 15- or 18-character Salesforce Id.
Outputs
- sObjectApiName
- The API name of the record’s object type (e.g.,
Account,Opportunity,Case,CustomObject__c). - Returns
nullif the Id cannot be resolved.
- The API name of the record’s object type (e.g.,
Example Scenario – Identify Object Type
Scenario:
You receive a record Id in a Flow (e.g., from a platform event or related record). You need to know what type of object it belongs to so you can branch your logic accordingly.
Implementation with Get SObject API Name:
-
Input
recordId:500xx0000123ABC
-
Execution
- The component inspects the Id and retrieves the record’s object type.
-
Output
sObjectApiName:Case
Results
- Allows you to dynamically identify the object type of any Salesforce record Id.
- Removes the need to hardcode object prefixes or maintain long sets of conditions.
- Works with both standard and custom objects.
Best Practices
- Use in generic or reusable Flows where record Ids may point to multiple object types.
- Always check for a possible
nullresult in downstream logic (e.g., Decision element) to handle invalid or unexpected Ids. - Combine with other Plinqx utilities (e.g., Filter SObjects) for building robust dynamic automation.

Troubleshooting
- Null output: The record Id may be invalid, deleted, or not resolvable.
- Case-sensitive logic: API names are returned exactly as defined (e.g.,
CustomObject__c).