• Instructions to Ask a Question

    Click on the "Ask a Question" button and select the application for which you would like to ask questions.

    We have 5 different products namely - Pabbly Connect, Pabbly Subscription Billing, Pabbly Email Marketing, Pabbly Form Builder, Pabbly Email Verification.

    The turnaround time is 24 hrs (Business Hours - 10.00 AM to 6.00 PM IST, Except Saturday and Sunday). So your kind patience will be highly appreciated!

    🚀🚀Exclusive Discount Offer

    Just in case you're looking for any ongoing offers on Pabbly, you can check the one-time offers listed below. You just need to pay once and use the application forever -
     

    🔥 Pabbly Connect One Time Plan for $249 (🏆Lifetime Access) -  View offer 

    🔥 Pabbly Subscription Billing One Time Plan for $249 (🏆Lifetime Access) - View offer

  • Important: Any reported problems and issues with your integration will be reported to you and we will encourage the app developers help to resolve those integration issues.

How to Setup Multi-Step Action

In Pabbly Connect, multi-step actions allow users to automate complex processes by executing a series of API calls where each step depends on the response of the previous one.

This guide will demonstrate how to set up a multi-step action in Pabbly Connect, using the LinkedIn API to illustrate the process.

By the end of this guide, you will be able to learn how to build custom actions by chaining multiple API requests.



To start let me first tell you that I need to execute 3 separate APIs one by one to share text with image on LinkedIn.

The 3 APIs are:

1. InitializeUpload (Initializes the upload and generates a upload URL for the image file to be uploaded)
2. Upload Image via AWS Lambda (This API is a custom API to upload the image file to LinkedIn)
3. Post Text Content with Image (This API finally creates a post on LinkedIn with image in it)

The screenshot of the 3 APIs in a Postman Collection is shown below.

1712027170246.png


Chained API's to share text with image on LinkedIn.

API 1. InitializeUpload (Initializes the upload and generates a upload URL for the image file to be uploaded)

1712031147317.png


API 2. Upload Image via AWS Lambda (This API is a custom API to upload the image file to LinkedIn)

In API 2, the uploadUrl from the execution of API 1 will be used in the value of linkedInUrl in the API 2.

The fileUrl is any public image URL that you want to upload to LinkedIn.

1712031270283.png


API 3. Post Text Content with Image (This API finally creates a post on LinkedIn with image in it)

1712031615964.png


Follow below on how we built the integration:
 
Last edited:

Harsh Bajpai

Moderator
Staff member
Steps to chain all these 3 API requests in a single action inside Pabbly Connect: (Example: LinkedIn)

Step 1: Create a main action "Share Text with Image" and use the API 1. InitializeUpload (Initializes the upload and generates an upload URL for the image file to be uploaded) as shown in the screenshot.
1712209712472.png




Step 2: Create an inbuilt action of API 2 Upload Image via AWS Lambda (This API is a custom API to upload the image file to LinkedIn) and use it below the main action with the help of Multi-Step Action.

  1. Click on the "Inbuilt Action" and create an inbuilt action here. In this case, we have created "Upload Media Image to LinkedIn".
  2. Select the Inbuilt action type as "Multi-Step" and choose Multi Step Executes At "Each Execution (Default)".
  3. We have used the API 2 "https://nwom3r2fmd.execute-api.us-west-2.amazonaws.com/prod/upload" and entered all the required Headers and Parameters. Click on "Save and Send Test Request" to check if this action is working fine.
    1712294147824.png


  4. Click on the "settings" icon of the "UploadUrl" parameter and select the "Endpoint" option in the "Response Of" and "Response" in the "Input Type". This depicts that we are taking value for this parameter from the response of the main endpoint. Please note that you have to enter the Response Key inside {{}} brackets and in the form of ==>. For Example. {{value==>uploadUrl}}.
    1712213014086.png


  5. Now go back to the main action step and click on the "Multi-Step Action", and choose the inbuilt action "Upload Media Image to LinkedIn".
    1712214303271.png

    1712214386849.png
Step 3: Create an inbuilt action of API 3 Post Text Content with Image (This API finally creates a post on LinkedIn with the image in it) and use it below the main action and previous inbuilt action with the help of Multi-Step Action.
  1. Click on the "Inbuilt Action" and create an inbuilt action here. In this case, we have created "Create New Post with Image".
  2. Select the Inbuilt action type as "Multi-Step" and choose Multi Step Executes At "Each Execution (Default)".
  3. We have used API 3 "https://api.linkedin.com/v2/ugcPosts" and entered all the required Headers and Parameters. In this inbuilt action, there will be 3 parameters that will ask the user to input their values. (Refer to the below screenshots Click on "Save and Send Test Request" to check if this action is working fine.
    1712216609338.png
  4. We have set up these 3 parameters: "personid", "textContent" and "visibility". Please refer below screenshots to set up how to take these 3 inputs from users.
    Click on the "Settings" icon and select "Static Parameter Value". Choose the "Endpoint" option in the "Response Of" and "User Input" in the "Input Type". This depicts that we are taking value for this parameter from the user through the main endpoint. Please note that you have to enter the Response Key inside {{}} brackets. For Example. {{personid}}.
    1712217310973.png
  5. For "digitalmediaAsset" parameter setup, we have followed the steps mentioned in "Step 2" to take its value from the response of the endpoint.
    1712217572026.png
  6. Now go back to the main action step and click on the "Multi-Step Action", and choose the inbuilt action "Create New Post with Image" which will be set up below "Upload Media Image to LinkedIn".
    1712217959036.png
The action "Share Text with Image" is fully set up now and we will check this in our Pabbly Connect dashboard.
1712218413580.png



CONCLUSION:

The action is working fine and in this way, we can set up multiple endpoints in a single action for different use cases: For Example: In this case, a main endpoint API 1 "Initialize Upload" is executed where we get the upload URL and then an inbuilt action API 2 "Upload Image to LinkedIn" where the uploaded URL from the execution of API 1 will be used in the value of linkedInUrl in the API 2. Finally, the API 3 "Post Text Content with Image" is used to post the image with text on LinkedIn.
 
Last edited:
Top