General SFDC API questions2 Flashcards

1
Q

What Is a Salesforce Call In?

A

Call In is used for exposing our webservices for other users

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What Is a Salesforce Call Out

A

Call Out is used for invoking or consuming our webservices for others

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How Soap Can Be Accessed ?

A

SOAP communicates through the WSDL file, without WSDL file we can’t do integration.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the message format for SOAP?

A

XML

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How To Do Callout Integration ?

A

Generate WSDL code from class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How do you read the Root Element In the Xml Dom?

A

getroot element

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How do you read the all the child elements In the Xml Dom?

A

getchild element

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How do Soap And Rest communicate?

A
  1. SOAP communicates through the WSDL file

2. REST communicates through the HTTP file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the methods in Rest?

A
  1. HTTPGET
  2. HTTPPUT
  3. HTTPPOST
  4. HTTPDELETE
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Which message formats does REST Supports

A

REST supports both:

  1. XML
  2. JSON
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is an external id in salesforce?

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).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Which all field data types can be used as external ids?

A

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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What Is Salesforce 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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is a WSDL?

A

WSDL stands for Webservices Description Language.

It contains types, messages, port types, and Binding.

17
Q

Trigger is an Apex Code that executes before or after.

A
The following types of DML Operation:
o	Insert
o	Update
o	Delete
o	Merge
o	Upsert
o	Undelete
18
Q

What are the limitations of WSDL file?

A

The file must be in the .WSDL extension.

  1. Multiple port types and binding will not be allowed
  2. Import and Inheritance operations are not supported
19
Q

How to do callout integration?

A

Generate WSDL code from the class

Path: setup\develop\apex class

20
Q

What is the difference between SOQL vs SOSL in salesforce?

A

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.

21
Q

What Is Json?

A

JSON stands for JavaScript Object Notation. JSON is light weight compared to XML.

22
Q

What does Protocol mean?

A

Protocal contains a set of instructions or rules.

23
Q

How many ways are there for XML parsing?

A

They are two ways of XML parsing:

  1. XML streams
  2. XML DOM