Create AppDirect lead in Salesforce and assign to company

Developer ToolAPI IntegrationMarketingCRM

What it does

When a new lead arrives via HTTP webhook, this automation creates a lead record in Salesforce. The lead is matched to an existing AppDirect user or a new one is created, then assigned to the correct company.

Who it's for

Sales operations teams who need leads synced from AppDirect to Salesforce with company assignments.

How teams use this

Sync leads from AppDirect to Salesforce

New leads from AppDirect flow into Salesforce automatically with company context, so the sales team has a single source of truth without manual entry.

Assign leads to companies on creation

Each lead is matched to its company in AppDirect at the moment it enters Salesforce, so account ownership is set from the start.

Create missing users during sync

If a lead's email domain does not match an existing AppDirect user, the automation creates one in AppDirect so the company membership assignment succeeds without manual intervention.

Route leads by company segment

Add a condition to check company type or size and filter the Salesforce lead to different queues or owners based on segment criteria.

How it works

  1. Receive new lead via HTTP webhook. A new lead event arrives in real time through an HTTP webhook with the lead details and company information.
  2. Create lead in Salesforce. A new lead record is created in Salesforce with the name, email, and company data from the webhook payload.
  3. Search for user in AppDirect. The automation searches AppDirect via HTTP for an existing user matching the lead email domain to determine if a new user must be created.
  4. Create or retrieve company and user. If no user exists, a new one is created in AppDirect via HTTP. The lead is then assigned to the company via a membership link.
  5. Associate lead to company. The lead is linked to the correct AppDirect company via HTTP so the sales team can track the account relationship.