Performs REST API calls using the oAuth token

Last published at: May 2nd, 2023

Description:

Perform Rest API calls using the oAuth token.  

Inputs

  • selOAuthProvider - Select OAuth provider form dropdown list
  • restCallURI - Rest call URL
  • httpMethod - Select http method to use (get, put, post, patch, delete)
  • headers - Define headers information
  • payloadType - Select Payload Type (FORMURL, XML, JSON)
  • payloadData - Define payload information key & values pairs 
  • payloads - Define payload raw data 
  • sourceFilePath - Path of the source file to be uploaded
  • resultJson - Store result values in variables or global

Returns

  • True – step executed successfully
  • False – step failed to execute

Usage:

To use this step, you must configure any oAuth source (eg : google drive, Facebook, hotspot etc..) in Flow Wright application. 

Example:

Let’s build and execute the clsOauthREST Step example.             

  • Create a new definition called “clsOauthREST”
  • Select the definition and click the “design” button
  • Drag a "clsOAuthREST" step to the canvas
  • Connect the dots between the start and "clsOAuthREST" step
  • Click on the "clsOAuthREST" step to configure its properties
  • Example how to send the outlook email
  • Configure the following values for the properties as shown on the below graphic 
  • Define the headers
  • Either one of below way to pass the payload information to service 
    • Payload raw body refer properties figure
    • Define payload information in given multiline box, refer above figure
  • Save the process definition, create a new process instance and execute. The process Step should send an email and store the response of the URL in the variable or global, as configured.