Latenode

Seamlessly sync new Facebook Lead Ads to Microsoft Dynamics 365 CRM

This template starts when someone submits a Facebook Lead Ad form, maps name, email, and phone in JavaScript, and creates a lead in Microsoft Dynamics 365.

Fetch full lead details from Facebook if the trigger payload is incomplete. Connect Facebook Lead Ads and point the trigger at the form. Put the Dynamics 365 credentials in that JavaScript node.

Updated Sep 16, 2026Est. run: 6sEst. cost: $0.0003
How Latenode estimates time and cost

Latenode bills workflow runtime in CPU seconds. The first 10,000 CPU seconds are free each month, then usage follows pay-as-you-go CPU-second pricing. Plug-and-Play (PnP) AI nodes are billed separately—each PnP token is $1 USD, charged pay-as-you-go at vendor cost plus a small processing fee, with no API keys required.

Full pricing — how CPU seconds work →

Workflow preview

What this template does

  • Creates a Dynamics 365 lead as soon as the Facebook form is submitted
  • Uses Facebook Lead Ads as the trigger
  • Maps name, email, and phone in JavaScript
  • Keeps Dynamics credentials in the JavaScript node

How it works

1
Trigger

Catch the Facebook lead

The scenario starts when a Facebook Lead Ad form is submitted. Fetch the full lead details from Facebook if you need the complete form payload.

2
Logic

Map name and email

JavaScript reads name, email, phone, and custom answers into the Dynamics 365 lead fields.

3
Action

Create the Dynamics 365 lead

Use a JavaScript node to call the Dynamics 365 Web API. Put the Dynamics credentials in that JavaScript node.

Setup guide

1

Connect Facebook Lead Ads

Add a Facebook Lead Ads connection and watch the Lead Ad form you care about.

2

Store the Dynamics credentials

Put the Dynamics 365 Web API credentials in the JavaScript node. Map first name, last name, email, and phone onto the lead entity.

3

Create the lead

Call Dynamics 365 from that JavaScript node. Fetch lead details from Facebook Lead Ads when the trigger payload is incomplete. Submit a test form and confirm the CRM record.

Requirements

A Facebook Lead Ad form Latenode can subscribe to
A Dynamics 365 environment that can create leads
Dynamics 365 Web API credentials stored in the JavaScript node

FAQ

Common questions about this template

Each run uses credits on your Latenode plan. We charge for processing time (1 credit = 30 seconds). Your actual cost depends on your plan and how long the run takes. See pricing plans for plans and how credits work.

More templates

You might also like

Browse all templates →

Create a Pipeline deal from a new Discord channel message

Sales teams often miss leads buried in Discord conversations. This scenario captures every new message in a chosen Discord channel and creates a corresponding deal in Pipeline, using the message text as the deal description and the author's username as part of the deal name. Sales managers and business development reps can log inbound signals from team discussions directly into Pipeline CRM without manual data entry. The connection turns Discord into a lead source, so no opportunity slips through the cracks.

8s~$0.002

Create a Pipeline deal when a new HubSpot deal is added

Manually copying deal data from HubSpot to Pipeline wastes time and risks errors. This automation triggers on the New Deal event in HubSpot and then runs the Create Deal action in Pipeline, mapping the deal name, amount, and associated contact email and name. Sales operations teams and CRM administrators who use both HubSpot and Pipeline can eliminate duplicate data entry. HubSpot captures the initial deal, and Pipeline receives a matching record immediately, so both systems stay aligned without manual work.

8s~$0.002

Send a Gmail welcome email when ClickFunnels identifies a new contact

Manually sending welcome emails to new leads is slow and risks missed follow-ups. This scenario triggers on the New Contact Identified event in ClickFunnels and immediately sends a Send Email action in Gmail, using the contact's name and email address to personalize the message. Sales and marketing professionals who use ClickFunnels to capture leads can automate their first touchpoint. Gmail sends a custom welcome email with the contact's name in the body, so every new lead gets a timely, personal reply without manual work.

8s~$0.002