Documents
HomeAcademyContactInstallation Guide
User Manual
User Manual
  • Introduction & High Level Architecture
  • 200 OK Versions
    • Prerequisites
      • Internal Authentication Setup
      • Configuration for Email Threshold
    • Release Notes 200 OK Version 5.68.0
    • Release Notes 200 OK Version 5.36.0
    • Release Notes 200 OK Version 5.0.0
    • Release Notes 200 OK Version 4.26.0
    • Release Notes 200 OK Version 4.22.0
    • Release Notes 200 OK Version 4.6.0
    • Release Notes 200 OK Version 4.1.0
    • Release Notes 200 OK Version 3.47.0
    • Release Notes 200 OK Version 3.41.0
  • 200 OK UI Walkthrough
  • Access Configuration
  • Integration Channel
    • How to Create an Integration Channel.
    • Run Your Integration Channel: Let’s Make It Happen!
  • Integration Actions
    • Data Store
    • sObject
    • Apex Class
    • File
    • Platform Event
    • Quick Action
    • Global Action
    • Big Object
    • External Object
    • Integration Channel
    • Auto-launched Flow
    • Callback (client callback)
    • Custom Settings
    • Custom Metadata Type
    • Custom Label
    • Push Notification
  • ETL
    • Create Your ETL
      • Data Source
      • Transform
      • Load
      • Additional Features of ETL
  • Webhook
    • Setting Up Your Webhook!
    • Create Your Webhook!
    • Putting Your Webhook to the Test!
  • Invoke Integration Channel
    • Flow into Action: Invoking Your Integration Channel!
    • Unleash the Power: Invoke with Apex!
  • LWS
    • Transform Data on Demand: ETL as an API!
    • Supercharge Your Workflow: Invoke Integration Channel via API!
  • Built-in Functions
    • Text
      • getChar
      • extract
      • proper
      • len
      • trim
      • rightPad
      • leftPad
      • left
      • right
      • mid
      • getCharIndex
      • coalesce
      • toBoolean
      • toDecimal
      • split
      • replace
      • remove
      • toLowerCase
      • ascii
      • begins
      • capitalize
      • contains
      • deDuplicate
      • escapeHtml
      • generateRandomString
      • getValueFromResponseHeader
      • join
      • reverse
      • startCase
      • stripHtml
      • toBinaryBase64
      • toInt
      • toString
      • toUpperCase
      • escapeMarkDown
    • Math
      • abs
      • acos
      • asin
      • average
      • base64Decode
      • base64Encode
      • ceil
      • generateRandom
      • max
      • min
      • parseNumber
      • round
      • sum
      • switch
      • floor
    • Date & Time
      • toSeconds
      • daysBetween
      • dayPrecision
      • setHour
      • daysInMonth
      • dateTimeNow
      • netWorkDays
      • dateAdd
      • dateDiff
      • addMonths
      • date
      • dateTimeValue
      • dateValue
      • day
      • dayofYear
      • formatDate
      • formatDateToday
      • formatDateTodayFormat
      • formatDateTodayUnix
      • formatDateUnix
      • formatDateUnixFormat
      • toTime
      • toDate
      • toDateTime
      • toDateTimeUnix
    • Advanced
      • generateUUID
      • uncompress
      • compress
      • exists
      • dwTransform
      • discard
      • currencyRate
      • decodeUrl
      • encodeUrl
      • getChannelData
      • getLink
      • invokeFlow
      • invokeETL
      • lookup
      • md5
      • sha1
      • sha256
      • sha512
      • toJson
    • Logical
      • and
      • blankValue
      • case
      • if
      • isBlank
      • isNull
      • isNumber
      • not
      • nullValue
      • or
  • Custom Function
  • Filters for Integration Action
  • Data Mapping Types
    • Key/Value
    • JSON
  • Global variables for Data Mapping
    • Index
    • Record field
    • User
    • Organization
    • Custom Settings
    • Custom Metadata Type(MDT)
  • Advance Setting
  • Schedule
  • Utilities
    • Add Remote Site
    • Json To Apex
    • JSON parser invocable method
    • Export/Import Functionality
    • Import from Postman
    • Curl Import
    • Apex Class Template Creation for Header, Request and Response.
  • Logging
  • Monitor
    • Measure and track the usage
    • Integration channel (total active channels)
    • Callouts (total monthly callouts)
  • Most frequently used scenarios
    • Efficient Bulk Data Handling Using "!index"
    • How to access authentication data from a custom setting?
    • How to set up auth provider and named credentials?
    • How to use named credentials in an integration channel?
    • How to invoke integration channels from flow?
      • Screen flow
      • Record trigger flow
      • Platform event
      • Scheduled flow
    • How to set up a quick action with the integration channel flow?
Powered by GitBook
On this page
  1. 200 OK Versions
  2. Prerequisites

Internal Authentication Setup

PreviousPrerequisitesNextConfiguration for Email Threshold

Last updated 5 months ago

As authentication token is required for callout, Named Credential needs to be set up for establishing the connection.

Steps to set up Named Credential

  1. Create a Connected App to generate Consumer ID and Consumer Secret

  2. Setup -> App Manager -> New Connected App

b. Fill in the required details:

Connected App Name, API Name, Contact Email

c. Enable OAuth Settings and provide below details.

Select OAuth Scopes as Manage user data via APIs(api) and Perform requests at any time (refresh_token, offline_access).

d. Leave other fields as it is and Save the record. Click on the Manage Consumer Details button and copy the Consumer Key and Secret.

Note: This will require verification code which will be sent to the current user email address.

  1. Create an Auth. Provider using the Consumer ID and Consumer Secret generated in above step

  • Setup -> Auth. Provider -> New

  • Select Provider Type as ‘Salesforce’

  • Provide Name, URL suffix, Consumer Key and Consumer Secret

  • Save the record

  1. Copy the call back URL from Auth. Provider and update the same in the Connected App created in Step 1.

Note: Callback URL will be auto populated based org domain URL(i.e., Sandbox or Production).

Go to Setup -> App Manager -> <Connected App Created in Step 1> -> Edit

Update the Call Back URL and Save the record.

Click on Manage button on this Connected App record.

Click on the Edit Policies.

Set the OAuth Policies as below and Save the record.

Note: IP Relaxation should be considered as per company policy.

  1. Create an External Credential with the Auth. Provider, Permission Set

Click on the "New" button.

Fill in the required fields and add Auth. Provider created in above step, and click on the save.

Under Principals, create a new Named Principal in External Credential.

Add the above created principal access in the current user's Profile or using a Permission Set.

Note: If providing access through a Permission Set, the current user should be assigned with the same permission set.

  1. Create a Named Credential using the above External Credential

Click on New, fill in required fields.

Use the current org domain of the Callback URL in the URL field.

Select the External Credential created in above step.

Enable allow Formulas in HTTP Header and provide allowed Namespace as ‘lwapic’.

Save the record.

  1. Authenticate the Named Principal on External Credential

a. Navigate to the External Credential and under Principals section, Authenticate the principal added.

b. It will redirect to authenticate the current user login page.

c. Upon successful authentication, the Authentication Status will change from Not Configured to Configured.

  1. Copy the API name of the Named Credential created above.

In App Settings custom setting, add the above API name in the Current Org Named Credential field as value under Default Organization values.

a. Setup -> Custom Settings -> App Settings -> Manage

b. Add new record or edit existing record

c. Set Current Org Named Credential field with Named Credential API Name value

After passing the value click on the save .

Initially set Callback URL as a dummy URL(e.g., ). This value can be updated in further steps.

https://test.salesforce.com