WorkBuddy

Interact with WorkBuddy API - Field service management

Actions227

Sales Opportunities → Create opportunity

AI-generated

Summary

Create a new sales opportunity in WorkBuddy by providing required fields like opportunity name, customer ID, billing company ID, and owner ID, along with optional details to capture full contextual and financial information about the opportunity.

Inputs

  • Name (required) — Name of the sales opportunity; required by the legacy form.
  • Customer Id (required) — Select an existing active customer ID associated with the opportunity.
  • Billing Company Id (required) — Provide the WorkBuddy billing company ID, distinct from CRM company account IDs.
  • Owner Id (required) — Select the employee owner ID responsible for this opportunity.
  • Area Manager Id — Optionally specify an area manager ID.
  • Description — Provide a detailed textual description of the opportunity.
  • Amount — Specify the monetary amount related to the opportunity.
  • Probability — Estimated probability of closing the opportunity, affecting stage probability logic.
  • Expected Close — Expected closing date or timeframe for the opportunity.
  • Job Type Id — Job type identifier associated with this opportunity.
  • Source Id — Lead source label ID from system tags categorizing the lead source.
  • Tag Ids — Opportunity label IDs for categorization; empty or null clears any selection.
  • Site Id — Optionally select a CRM site linked to the customer; mutually exclusive with ad-hoc site.
  • Site — Optional ad-hoc site snapshot; cannot be used with Site Id.
  • Contact Id — Optional contact ID belonging to the customer or selected site.
  • Site Contact Id — Site contact snapshot ID from contacts linked to the customer or site; null clears it.
  • Contact — Optional name-only ad-hoc contact snapshot; cannot be used with Contact Id.
  • Customer Site Id — Customer-side address site ID linked to the selected customer.
  • Stage Id — Open opportunity stage ID; omitting uses the default new-stage pipeline setting.

Output shape

a single record representing the created sales opportunity

The output includes all fields of the newly created opportunity as stored in WorkBuddy. Errors are returned as node execution errors. No pagination applies since this operation creates a single item.

Examples

Example 1: Basic required creation

Set Name, Customer Id, Billing Company Id, Owner Id, optionally Description and Amount to create a new opportunity.

Example 2: Creation with custom stages and contacts

Specify Stage Id and Contact Id along with required fields to create an opportunity assigned to a specific stage and contact.

Links

Discussion