Help center

    Start for free    Sign in search

      Get Started Add Content Billing FAQs

      Automation action: Lambda function 

      Thy Nguyen

      Updated on August 15th, 2023

      Table of Contents

      Lambda function provides the ability to run your own script, using common programming languages such as Python, Java, etc…It allows you to manage or use the function's response payload in an effective manner.

      If you are not familiar with creating an Automation, please view the following article: Creating an Automation

      Prerequisites

      This is available for all plans, with the paid Automation action: Lambda function.

       

      Setup

      After creating the Automation, you need to configure the trigger and action.

      Add “Record updated” trigger 

      1. Click Add Trigger, then select a trigger from the dropdown list.
      2. In the Watching columns section, select a column.

      image1.png

      Add “Lambda function” action

      1. Click Add Step and select Lambda function in the list of actions. image2.png
      2. Select a Lambda function from the list, if you have not added a lambda function before, click Add function to add a new Lambda function.
      3. Input your payload: Customize your payload here, click Select input value for action and add the trigger data to your payload
      4. (Optional) Postback: Map the output fields from Lambda function to the columns in Gridly, this helps Gridly update the returned values from Lambda functions to correct columns.

      image5.png

      Add a new Lambda function: 

      Input the following fields: 

      1. Package (required): Select a zip file from the local computer
      2. Function title (required): The descriptor for the lambda functions
      3. Runtime (required): the runtime environment of the lambda function
      4. Main file name (required): The file name of the file containing the main function
      5. Handler name (required): The name of the Handler 
      6. Output fields (optional): The output values of the lambda function

      Click Add to add a new function.

      image3.png

       

      Test Automation

      1. Switch the toggle on to turn on the Automation
      2. Click Test Automation. If your Automation is not turned on, Gridly will require that you turn on the Automation in the resulting pop-up message. Click on the toggle to turn on and select Test again.
      3. Change the name of your Automation by clicking image4.png on the top-right corner. 

       To view all articles related to Automations, click here.



       

      Was this article helpful?


      1 out of 1 found this helpful

      Still need some help?

      Contact Support