Salesforce Integration Interview Questions and Answers

Q1 : What is an external ID in Salesforce? Which all field data types can be used as external IDs?
A : 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).
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 TextNumberE-Mail and Auto-Number.

Q2 : What is integration?
A :  Integration is a process of connecting two applications

Q3 :  How many callouts to external service can be made in a single Apex transaction?
A : Governor limits will restrict a single Apex transaction to make a maximum of 100 callouts to an HTTP request or an API call.

Q4 : What is Call In and Call Out?
A :  Call In is used to exposing our web services to other users
Call Out is used to invoking or consuming our web services to others.

Q5 : What is SOQL?
A : 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.

Q6 : What Are The Types of SOQL Statements in SalesForce?
A : 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.
1. Static SOQL
2. Dynamic SOQL

Q7 : What is WSDL?
A. WSDL stands for Webservices Description Language.
It contains types, messages, port types, and Binding.

Q8 : What is the Apex Trigger in Salesforce?
A : Trigger is an Apex Code that executes before or after.
The following types of DML Operation:
1. Insert
2. Update
3. Delete
4. Merge
5. Upsert
6. Undelete

Q9 : Limitations of WSDL file?
A :  File must be in .WSDL extension.
Multiple port types and binding will not be allowed
Import and Inheritance operations are not supported.

Q10 :  How to do callout integration?
A :  Generate WSDL code from class
Path: setup-develop -apex class

Q11 : What is SOAP?
A : A protocol that defines a uniform way of passing XML-encoded data. SOAP Stands for Simple Object Access Protocol.

Q12How SOAP can be accessed?
A :  SOAP can be communicated through WSDL file, without WSDL file we can’t do integration.
Message format in SOAP is XML

Q13 :  How many types of API’s available in Salesforce?
A :  SOAP API, REST API, Bulk API, and Streaming API.

Q14 : Difference between SOQL Vs SOSL in salesforce?
A : SOQL- Salesforce Object Query Language

    • Using SOQL we can Search only on one object one time.
    • We can query on all fields of any data type
    • We can use SOQL in the Triggers and the classes.
    • We can perform DML operation on SQL query results.

SOSL(Salesforce Object Search Language)

  • Using SOSL we can search on many objects at one time.
  • We can query only on fields whose data type is text, phone, and Email.
  • We cannot use in Triggers but can in classes.
  • We cannot perform DML operation on search results.

Q15 : What is JSON?
A : JSON stands for JavaScript Object Notation. JSON is light weighted than XML

Q16 : What is remote site settings?
: Remote site settings is used to authorize the endpoint and allow us to whom integrate(end user)

Q17 : What is Protocal?
A :  Protocal contains a set of instructions or rules.

Q18 : How many ways to XML parsing?
A :  They are two ways of XML parsing
1. XML streams
2. XML DOM

Q19 : What are methods in REST? 
A :  HTTPGET, HTTPPUT, HTTPPOST and HTTPDELETE

Q20 : How SOAP and REST will Communicate?
A :  SOAP will communicate through WSDL file
REST will communicate through HTTP file