Skip to main content
All Collections GrowthBooster
Posting from GrowthBooster to LinkedIn with Zapier
Posting from GrowthBooster to LinkedIn with Zapier

How to set up integration between GrowthBooster and LinkedIn with Zapier.

S
Written by Sebastian Donnelly
Updated over a week ago

If you want to publish moments created with GrowthBooster on your Pinterest account, you need to set up an integration with Zapier.

First of all, go to https://zapier.com/ and create an account (if you don’t have one). You will need a Premium account to work with webhooks and looping.

  1. Create a new zap: click on “Create” and select "Zaps" from the submenu.

  2. Set the name of your zap, then click on the "Trigger" field, the "Change Trigger" popup will open. Type in “Webhook” in the search input and select “Webhooks by Zapier” in the search results list.

  3. The side panel will open. Select "Catch Raw Hook" in the "Event" field then click the "Continue" button.

  4. Copy the “webhook URL”, then go to the GrowthBooster web-application, choose your business, proceed to the “Settings” page, paste the URL into the “Add webhook” field, and click the “Update” button.


  5. Create a new moment in the GrowthBooster for your business and approve it for publishing.

  6. Go back to Zapier and click on the “Test trigger” button.

  7. It may say something like “We couldn't find a request”, which is OK, because GrowthBooster sends moments to the webhook every 10 minutes. Please wait for 10 minutes and click the “Test trigger” button again.

  8. You should see the “We found records...” message. Click the “Continue with selected record” button below.

  9. A new "Change Action" popup opens. Type in "Code" in the search field and select "Code by Zapier".

  10. The side panel will open. Select "Run Javascript" in the "Event" field then click the "Continue" button.

  11. Type in "body in the field below the "Input Data" label, then click in the "Enter text or insert data..." field and select the "Raw Body".

  12. Copy script below and paste it into the “Code” field:
    output = JSON.parse(inputData.body).map((moment) => {
    return {
    description: moment.description,
    formattedAddress: moment.from_office ? moment.business.name +' office': moment.formatted_address,
    customerName: moment.customer || 'Anonymous customer',
    employeeName: moment.employee?.name || moment.business.name,
    mainImage: moment.images.length ? moment.images[0].full_url : 'no image',
    categoryName: moment.category?.title || 'Uncategorized'
    }
    })

  13. You will get something like this. Click the “Continue” button.

  14. Click the “Test step” button.

  15. You will see something like this. Click the “+” button below the "Run Javascript in Code by Zapier".

  16. A new "Change Action" popup opens. Type in "Loop" in the search field and select "Looping by Zapier".

  17. The side panel will open. Select "Create Loop From Line Items" in the "Event" field then click the "Continue" button.

  18. Type “Description” in the “Values to Loop” field, click in the “Enter text or insert data…” field, select “Run Javascript in Code by Zapier”, and click on the "Description" field.

  19. Click the square-shaped “+” button to add a new line.

  20. Fill up the “Set up action” form as shown below.

  21. Scroll down and click the "Continue" button.

  22. Click the "Test step" button.

  23. Click the “+” button below the "Create Loop From Line Items in Looping by Zapier".

  24. A new "Change Action" popup opens. Type in "LinkedIn" in the search field and select "LinkedIn".

  25. The side panel will open. Select "Create Loop From Line Items" in the "Event" field then click the "Continue" button.

  26. Click the "Sign in" button in the Account section.

  27. The LinkedIn "sign in" dialog window opens. Type in your credentials and click "Sign in".

  28. Click the "Continue" button.

  29. Click in the "LinkedIn Company Page" field and select the company (Note: You must be an administrator of a Company Page).

  30. Click in the "Update Content" field and select "Create Loop From the Line Items in Looping by Zapier"->"Description.

  31. You can fill out the "Preview - URL", for example, put your website URL there, and specify the "Preview - Title" and "Description" as well. Then click the "Continue" button.

  32. Click the "Test Step" button. You should see something like this.

  33. Click the "Publish" button.

  34. Congratulations! You’ve successfully set up posting from GrowthBooster to LinkedIn. The moment has landed on LinkedIn if you haven't specified the "Preview - URL", "Preview - Title", and "Preview - Description" it looks like this:



Did this answer your question?