Integration Task: Lambda

AWS Lambda is a serverless compute service that runs your code in response to events and automatically manages the underlying compute resources for you.

We have provided an AWS Lambda Integration task to use on processes for a variety of functions based on your organization's needs.

AWS Lambda Tasks Available in Integrify

The following is a list of the publicly available lambda functions and how you can configure them.

Function

Description

Use Case Example

Input Parameters

Fields to Capture

Fills a docx or pptx template (Resources)

Push Integrify data into a Word or PowerPoint document.

Create a certification document based on completed training.

templateUrl, fileName, fileExtension

fileKey, fileName

Get a CSV Export of an Integrify Report

Grab Integrify report data as part of a process.

Allow loan supervisors to request a list of recent loan applicants.

reportSid, csvFileName

fileKey, fileName

Google Doc - Copy to the Integrify Cloud

Get a Google doc and attach it as part of a process.

Pull the latest version of a project plan and include it an alert.

fileId, newFileName, newTitle, makeEditable

fileId, mimeType, name, url, embedUrl, anyoneWithLinkRole,

Google Doc - Set to Editable of Read-Only

Edit access to a Google document as part of a process.

Lock a contract once it's been approved by Legal.

fileID, makeEditable

permissionId, role

Google Sheet - Extract Values

Grab data from a Google Sheet and use in a process.

Fill a travel request form with values from a shared Google Sheet.

spreadsheetId, sheetName, range, valueSelectors, valueRenderOption

value_0, role

Rename a File Attachment Based on Parameters

Dynamically change the name of a file as part of a process.

Rename an attachment with a job number.

numeric, requestSid, file, name_part_1, name_part_2, name_part_3, name_part_4, name_part_5, name_part_6, name_part_separator, append_time_stamp

fileKey, fileName

Send a Post to a Slack Webhook URL (Resources)

Trigger Slack messages from a process.

Alert a Slack channel that a process has completed.

string, requestId, requestSid, requestName, requestStatus, message, includeLink

messageStatus

Upload an Integrify file to a SharePoint folder

Push files attached in a process to SharePoint.

Store completed, approved expense request forms in a Sharepoint folder.

requestSid, file, sharePointUrl, destinationFolder, username, password, fba, checkin, checkinType, checkinMessage

sharePointFileUrl

Note: You can easily import the relevant parameters by clicking "Import Parameters" after selecting a Lambda Task and saving it. See the example below.

Lambda Task Example - Fill a Word Document or Powerpoint template file

In the following example, we are using the AWS Lambda Task to insert a username into an word template that will be automatically generated and sent out. 

The first step is to insert the AWS Lambda Task into your process. You can find the Lambda Task under Integration Task to the left of the process builder view.

In this case we have added the lambda task after a Form Task (where name and description will be entered) and before a General Notification Task.

 

Screen_Shot_2017-04-25_at_10.29.53_AM.png

The task is then configured by selecting the Configuration>Configure Task option which will display the configurations page.

Screen_Shot_2017-04-25_at_10.33.02_AM.png

We selected the SETTINGS option on the top menu and added the email template that will be used.

Screen_Shot_2017-04-25_at_10.33.55_AM.png

We then clicked on "Input Parameters" tab, clicked "Import Parameters," and entered the Template URL which is the location of the template, a filename which contains the Request ID, the file extension of the template document, the name which will contain the User name and the description which will contain the description on the email that will be sent. 

Screen_Shot_2017-04-25_at_10.34.09_AM.png

Then we select FIELDS TO CAPTURE and add the fileKey and fileName which are the fields needed to specify the datatypes.

Screen_Shot_2017-04-25_at_10.34.18_AM.png

Lastly, we select the TEST option to confirm the connection, mappings and response.

Screen_Shot_2017-04-25_at_10.34.32_AM.png

Screen_Shot_2017-04-25_at_10.34.39_AM.png

Once the configuration is complete, the process is ready to execute.

The following is the end result template email with the name and description fields added from the Form task during the process run.

Screen_Shot_2017-04-25_at_12.52.58_PM.png