findDeals — find deals for a specific entity by filtering with entity id


Minimum number of  arguments for this method is two. The first argument is the entity name and the second is the entity id.

Structure of the method:

findDeals('Entity Name', 'Entity Id')


Entity Name — The entity name like lead

Entity Id — The entity id like the id of a lead


If you are creating an email template on the leads entity, you have the lead object captured and can use its information like {{first_name}}, {{id}}, etc.

In the example below, we use the id of the lead to get all its deals.

To stay updated with the latest features, news and how-to articles and videos, please join our group on Facebook, Flexie CRM Academy.