Skip to main content

Some example Flows

These are a few example flows that you can refer to while creating your own custom flows.

Syncing Customers to Zenskar

  1. Get records from the Account object.
  2. Map account details to the ZenskarCustomer object.
Note: There are custom fields available in package, you show them on layout and use that in flows. Check Layout Section in Account Object in SF after package install
  1. Add fields of Transformed Data to Zenskar Sync Customer Apex Action.
  2. Update Zenskar Customer ID to Related Object so Updates can be synced.
Note: You can use provided custom field for storing Zenskar Customer ID

Syncing Contracts

  1. Retrieve all Opportunity Line Items for the triggering Opportunity.
  2. Get Related Account for Triggering Opportunity.
  3. Loop over Opportunity Line Item and Get PriceBookEntry for each Opportunity Line Item. Add Pricebookentry’s Link ID(Zenskar) to a Collection of String (ReferenceIDs List).
  4. Convert the Salesforce Opportunity to a ZenskarContract object.
  5. Add Zenskar Sync Contract Apex Action and Use Data from Transformer(Convert SF to Zenskar Contract).
  6. Update the Opportunity with the ZenskarContractId.
  7. Sync with Zenskar
  • Close the Opportunity as ‘Won’ to automatically create and sync data to Zenskar.
For managing Pricebooks and Products, see Manage Price Books.

Package components

Apex Actions

These actions are provided in our Salesforce package to sync data from Salesforce to Zenskar.

Zenskar Customer sync

Creates or updates a customer on Zenskar. This action is required to create a contract. Inputs Output

Zenskar Contract Sync

Creates or updates a contract on Zenskar. Inputs Output

Zenskar Get Contract

Fetches a contract from Zenskar. Input Output

Zenskar Get Customer

Fetches a customer from Zenskar. Input Output

Zenskar Create Product

Creates or updates a product on Zenskar. Inputs Output

Zenskar Get Pricing

Fetches pricing from Zenskar. Input Output

Zenskar Create Pricing

Creates per-unit pricing on Zenskar. Inputs Output

Apex classes

You can use Apex classes to store data.

ZenskarAddress

ZenskarBillingPeriod

ZenskarContract

ZenskarCustomer

ZenskarDiscountFeature

ZenskarPerUnitPricing

ZenskarPricing

ZenskarPricingAndProductId

ZenskarProduct

ZenskarQuantity

ZenskarTags


Custom Fields Summary

Account

  • AutoCharge Invoice (Zenskar)
  • CustomerID (Zenskar)
  • External ID (Zenskar)

Opportunity

  • Contract End Date (Zenskar)
  • Contract Renew Policy (Zenskar)

Product

  • ProductID (Zenskar)

PriceBookEntry

  • LinkID (Zenskar)
For details on creating custom fields, refer to Salesforce Custom Fields.