/
Object Schema Information
Object Schema Information
Retrieving Schema Metadata
Pulsar can provide Salesforce sObject Describe metadata using the getSobjectSchema API. This includes database-level descriptive information about the Salesforce object and it’s fields. The response is a string that matches the DescribeSObjectResult JSON format from salesforce according to , and it must be parsed in order to be used as a javascript object.
Example:
var request = {
type: 'getSobjectSchema',
object: 'Account', // Required: SObject unique name
data: { } // empty
};
bridge.sendRequest(request, function (result) {
if (result.type === 'sobjectschemaResponse') { // case-sensitive
var describeSObjectJSON = result.data; // you must parse this JSON string
var describeSObject = JSON.parse(describeSObjectJSON);
//....
}
else {
console.log('error: '+ result.data)
}
});
The response looks like the following:
{
"type": "sobjectschemaResponse",
"object": "Account",
"data": "<JSON_OBJECT_STRING>"
}
Where JSON_OBJECT_STRING will have the format described in the Salesforce DescribeSObjectResult documentation.
Related content
Object Layout Information
Object Layout Information
More like this
Pulsar Platform - JS Bridge API
Pulsar Platform - JS Bridge API
More like this
Pulsar General Information API
Pulsar General Information API
More like this
Picklist Information
Picklist Information
Read with this
Local Database API (CRUD requests)
Local Database API (CRUD requests)
More like this
Native Pulsar UI Interaction API
Native Pulsar UI Interaction API
Read with this