General SFDC API questions2 Flashcards
What Is a Salesforce Call In?
Call In is used for exposing our webservices for other users
What Is a Salesforce Call Out
Call Out is used for invoking or consuming our webservices for others
How Soap Can Be Accessed ?
SOAP communicates through the WSDL file, without WSDL file we can’t do integration.
What is the message format for SOAP?
XML
How To Do Callout Integration ?
Generate WSDL code from class
How do you read the Root Element In the Xml Dom?
getroot element
How do you read the all the child elements In the Xml Dom?
getchild element
How do Soap And Rest communicate?
- SOAP communicates through the WSDL file
2. REST communicates through the HTTP file
What are the methods in Rest?
- HTTPGET
- HTTPPUT
- HTTPPOST
- HTTPDELETE
Which message formats does REST Supports
REST supports both:
- XML
- JSON
What is an external id in salesforce?
An external id is a custom field which can be used as a unique identifier in a record. External ids are mainly used while importing records/ data. When importing records, one among the many fields in those records needs to be marked as an external id (unique identifier).
Which all field data types can be used as external ids?
An important point to note is that only custom fields can be used as external ids. The fields that can be marked as external ids are text, number, e-mail and auto-number.
How many callouts to external service can be made in a single apex transaction?
Governor limits will restrict a single apex transaction to make a maximum of 100 callouts to an http request or an api call.
What Is Salesforce SOQL?
A query language that allows you to construct simple but powerful query strings and to specify the criteria that should be used to select the data from the platform database. SOQL Stands for Salesforce Object Query Language.
What are the types of SOQL statements in salesforce?
Salesforce object query language is used to query that records from the database.Com based on the requirement.
There are 2 types of SOQL statements:
- Static SOQL
- Dynamic SOQL
What is a WSDL?
WSDL stands for Webservices Description Language.
It contains types, messages, port types, and Binding.
Trigger is an Apex Code that executes before or after.
The following types of DML Operation: o Insert o Update o Delete o Merge o Upsert o Undelete
What are the limitations of WSDL file?
The file must be in the .WSDL extension.
- Multiple port types and binding will not be allowed
- Import and Inheritance operations are not supported
How to do callout integration?
Generate WSDL code from the class
Path: setup\develop\apex class
What is the difference between SOQL vs SOSL in salesforce?
SOQL- Salesforce Object Query Language
o Using SOQL we can Search only on one object one time.
o We can query on all fields of any data type
o We can use SOQL in the Triggers and the classes.
o We can perform DML operation on SQL query results.
SOSL(Salesforce Object Search Language)
o Using SOSL we can search on many objects at one time.
o We can query only on fields whose data type is text, phone, and Email.
o We cannot use in Triggers but can in classes.
o We cannot perform DML operation on search results.
What Is Json?
JSON stands for JavaScript Object Notation. JSON is light weight compared to XML.
What does Protocol mean?
Protocal contains a set of instructions or rules.
How many ways are there for XML parsing?
They are two ways of XML parsing:
- XML streams
- XML DOM