Create tenants in Salesforce for eligible implementations

CRMMarketingRecipe ToolsDeveloper ToolWorkatoAPI Integration

What it does

When this automation runs on a schedule, it searches Salesforce for Implementation records that need tenants. For each eligible record, it calls an API to create the tenant and updates Salesforce with the tenant ID and success status.

Who it's for

Operations teams who need to provision tenants for implementations without manual API calls.

How teams use this

Automate tenant provisioning for implementations

Run the search and tenant creation on a schedule so implementations move to the next phase without waiting for manual steps. The team no longer has to call the API by hand.

Provision tenants for a new region

Change the SOQL query to filter by region so only implementations in that area get tenants. The rest of the flow stays the same and only the search criteria shifts.

Add validation before tenant creation

Include an extra Python step to check that all required fields are present on the Account before the API call. Only records that pass validation will move to the tenant creation step.

How it works

  1. Search for eligible implementations. On a schedule, run a SOQL query in Salesforce to find Implementation records that are ready for tenant creation.
  2. Filter records that need tenants. Execute Python code to remove records that do not meet the criteria for tenant creation, so only eligible ones move forward.
  3. Retrieve contact and account details. Search Salesforce for the Contact Info and Account Info linked to each Implementation record so the payload has all required data.
  4. Call the tenant creation API. Send a Windmill Lambda Proxy API call with the formatted payload to create the tenant in the external system.
  5. Update the implementation record. Update the Implementation in Salesforce with the tenant ID and mark the Tenant Creation Status as Success.