To Create a Deal in a Pipeline once a Contact is created or Updated with a "Tag" or a Field using workflows, follow below mentioned steps -
- Click on your Profile Icon at the top right corner of your screen
- Go to Setup > Sales Automation > Workflow Management
- Add a Workflow - Create a "New Rule"
- Under Basic Information, Select Module: Contact
- Give it a Name: Create Deal when a Contact is created or updated
- Description: Create Deal when a Contact is created or updated with Tag = "Lead" - For Example
- Execute On (Choose an action based on which the rule will be executed): Create or Update
- Criteria: Add Condition > Tags - equals to - Lead (Choose TAG as per your requirement)
- Also, add a "STOP" tag so that it does not create a deal every time you update the contact record in case you chose to set it on Contact Update.
- Choose Actions: Update Field
- Contact >> Tags >> Append >> STOP [ This prevents the deal from being created repeatedly upon UPDATE of contact ]
- Choose Actions: Call Webhooks
- Give the action name: Create Deal on Contact update
- Method: POST, URL To Notify : https://apis.salesmate.io/v1/deals
- Header Tab: Add 3 Keys as under
- Content-Type: application/json
- x-linkname: <>.salesmate.io (example: demo.salesmate.io - you can find it in the address bar of your browser
- SessionToken: 817bb2f0-a486-11e7-8d3c-************ (You cand find below details under - Profile Icon> My Account> Access / API Key)
- Body Tab: Select option : raw: Json(application/json)
- {
"title": "{{Contact.name}} - {{Company.name}} - Deal",
"owner": 1,
"primaryContact": "{{Contact.id}}",
"primaryCompany": "{{Company.id}}",
"estimatedCloseDate": "{{Contact.createdAt}}",
"dealValue": 0,
"currency": "USD",
"pipeline": "Sales",
"stage": "New (Untouched)",
"source": "Ads",
"priority": "Low",
"status": "Open",
"tags": "{{Contact.tags}}",
"followers": []
} - Note: Above Pipeline, Stage, Priority, Status, Currency should be of your choice i.e. as per your Setup. In case you have added any custom fields or made any other fields as mandatory (required) do not forget to include them in the body. Failing which will not allow the workflow to execute.
- Click Save
- Then Click Save at the top
- Note: Status should be Active - Marked in Blue Colour for the workflow to execute
Comments
0 comments
Please sign in to leave a comment.