MENU

Fun & Interesting

Salesforce Integrations with Scenarios that Every Developer Must Know

Salesforce Exclusive 51,797 lượt xem 6 months ago
Video Not Working? Fix It Now

Here are the helping notes and links for reference

SCENARIO 1:
External System link for ApexRestCallout: https://reqres.in/

SCENARIO 2:
link to get sample WSDL File: https://trailhead.salesforce.com/content/learn/modules/apex_integration_services/apex_integration_soap_callouts

Steps to do SOAP Callout
1. Get WSDL
2. Upload WSDL to generate Classes and methods
3. Add Endpoint URL in Remote Site settings.
4. Call authorize method //Not applicable for our scenario
5. Call actual service method

SCENARIO 3:

rest apis
https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_get_field_values.htm

curl command for authentication:
curl https://login.salesforce.com/services/oauth2/token -d 'grant_type=password&client_id=3MVG9Y6d_Btp4xp5OkM1b4zt4n4eqn2.VASD8jhibLV4goD.76u54WjIqaJwXtK29roDJfFFTTTTX0EO_f84q&client_secret=7894561272718739647&username=salesforcecodes@test.com&password=passwordValueSecurityToken' -H "X-PrettyPrint: 1"

curl command for Account Get API

urn:sObjects xsi:type="urn1:Account" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

SCENARIO 4:
Composite API Url
https://login.salesforce.com/services/data/v61.0/composite

Request Method: POST

Sample Body
{
"compositeRequest" : [
{
"method" : "POST",
"url" : "/services/data/v61.0/sobjects/Account",
"referenceId" : "refAccount",
"body" : { "Name" : "Salesforce" }
},
{
"method" : "POST",
"url" : "/services/data/v61.0/sobjects/Contact",
"referenceId" : "refContact",
"body" : {
"LastName" : "Vegi Sreeknath",
"AccountId" : "@{refAccount.id}"
}
}]
}

SCENARIO 6:
SOAP UI download link: https://www.soapui.org/downloads/soapui/

SCENARIO 8:
Outbound Message API:https://pipedream.com/

SCENARIO 9:
External Server URL: https://virtserver.swaggerhub.com
Swagger UI: https://swagger.io/

openapi: 3.0.0
info:
version: '1'
title: ''
description: Employee Search API
paths:
/employee:
get:
tags:
- EmployeeAPI
summary: API to search employees
operationId: searchEmployee
description: |
You can search for an employee in the system
parameters:
- in: query
name: employeeNo
description: Employee Number to search in the system
required: true
schema:
type: string
responses:
'200':
description: search results matching criteria
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Employee'
'400':
description: bad input parameter
components:
schemas:
Employee:
type: object
required:
- empNo
- employeeName
- employeeAge
- employeeJoiningDate
properties:
empNo:
type: string
format: uuid
example: emp-01
employeeName:
type: string
example: Test Name
employeeAge:
type: number
example: 19
employeeJoiningDate:
type: string
format: date
example: '2015-01-01'
servers:
# Added by API Auto Mocking Plugin
# Added by API Auto Mocking Plugin
- description: SwaggerHub API Auto Mocking
url: https://virtserver.swaggerhub.com/VEGISREEKANTH/EmployAPI/1

Comment