Loading...
「ツール」は右上に移動しました。
利用したサーバー: natural-voltaic-titanium
1533いいね 63016回再生

Salesforce Integrations with Scenarios that Every Developer Must Know

Here are the helping notes and links for reference

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

SCENARIO 2:
link to get sample WSDL File: trailhead.salesforce.com/content/learn/modules/ape…

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
developer.salesforce.com/docs/atlas.en-us.api_rest…

curl command for authentication:
curl 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="www.w3.org/2001/XMLSchema-instance"

SCENARIO 4:
Composite API Url
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: www.soapui.org/downloads/soapui/

SCENARIO 8:
Outbound Message API:pipedream.com/

SCENARIO 9:
External Server URL: virtserver.swaggerhub.com/
Swagger UI: 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: virtserver.swaggerhub.com/VEGISREEKANTH/EmployAPI/…

コメント