• 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 we built JavaScript based action

Use-case:

We released a way to create custom JavaScript based app actions.

The Code by Pabbly module allowed you to run the codes on the workflow builder.

But let's say you want to create an action where all the code is written on the backend and only simple form fields are given to the users to fill.

The user fills the field and the underlying JS code runs and outputs the value.

Your users don't see any JS code at all.


Step 1: Get ChatGPT to write a Javascript code to return the week number based on input date.

4WPMy2l43RPoBNXwppkJ3QC3Ow16r7NJE7Y6IQvSpP09NrX-J_znJltoir4QUN9w4cl8v1EPGmy-f_qdzuyoGYF7Yw6jqQFBvTBxWDcWPDgZ0tkyIiRkeL_9_I4j8d8PLnwdnQmkSK7le0wYFifs3ik



Step 2: Run this code on Code by Pabbly action step to check if it works or not.

XRQCa_t2rld211vUtYbtbAsVUZUEXex7Ez52cIo9YvMZ7rJzBBypJG7EHrXJFz1PTDLzT6BptcFsR7LBLNu-sdbAVkAm86eyq1MVp5f7P8_suTEb_Vi5V7-SeuT0nbvBYUuokJ1l-uMvKEAVhq4GkVw



Step 3: Now copying the entire code and creating a JSON in the following format for creating the action and running it through validation check. If there are double quotes in the code. I am escaping them by adding slash (\) in front of the double quotes. Also cleaning up the code by removing all comments.

{
“code” : “{{EntireCodeComesHere}}
}


pXdT25DCnnFRLR4Lelei_QjHcG_J1e__bc8mdKGImWT7tHMzrv5h6FP3_LpXUjN_f7pKHypSJmATT8XmX2kD188M6cfTIZ_BLeev8zQcl_3Pt6LDxFROVNtd5gqaICoQdJ922RNxLKYbQRCbFBmptJg




Step 4: Navigate to https://connect.pabbly.com/app/ developers platform of the Pabbly Connect dashboard where your own custom apps can be built. Created a new App where all these Nifty little functions will come.
nrkP9JMQSEPK6tqs7Pwi7pQ08qMQhQTajUKzSaOUyiMazJqsTndTwgYx6nclEQF9HEPc6zRFetvLyG14kxAxFKxyHOJPC4k19n_NoUkrJxiJqF2UU7OCtqufkLZmpCwbBdaeE2GGNkwBNpKf_xZ7P4A



Step 5: Now on to create the first action.

D1yFNiC6PvdxXzH8_yN4r0kW4-uzUt_GuAvfxGBHYiy5TpXp19l_Nb1cDMbRWANxGnU1jKo0HBfRE6K4RIDircsPeMvo4o53uFlu2Z4njir23ghGpdx9vfKxPC-hG8GAid2ohCa6pO7PTYO3DS3oYu0



Step 6: Inside Actions, set up the actions in the following way. Request body is taken from Step 3.

pfRe01ZZfrV-MDeAyctBweEX2kklK6FQmGgibd_ieXU7EDRDqSdaISBnPU5XqG7dMV26I1uN210ysQZiAwNanaj1sKLkaBOItGpSS2jUl6iStvPA-vx3-0GdfB-W5JK1W_2lxNxWN8LFVuStmSGfWL4




Step 7: Now try out the action on the frontend of Pabbly.

xE0swVishRIYID4UqSaceMTpDVcUXyAGZwhxpVTtPjuzH2aPOg9UiivAj2NwbudAYgmWQ6NAnAfVaN244pyif4f7fyRxDcErZ8DsvjlCxs-CRfTG_b1gzvU73fWVUVvdJsW8YICwI7Z_pBkM5eDu_ZY
 
Last edited:
Top