Lead Scoring Assistance
I need some help creating a formula to build Lead Scoring. I have created a formular field in all Lead Records called Engagement Score. I want it to build a score based on their status value with each status being a separate number worth, for example "Applicant" equals 50 points. Then I want it to look at the Chrono subrecords and add up points based on "Successful Phone Calls, "Opened Emails", "Texted Back" I just need a good way to build this so I can tweak it as I continue on to also include other variables as well. Any assistance is greatly appreciated!
12 replies
-
One way is the generous use of switch commands. For the Status you can do something like:
let xStatus := switch Status do case 2: 50 case 12: 25 end
For the chrono subrecords, I don't see a nice choice field that has those options, so I guess you are putting those phrases into the Chronos text block. Which makes filtering a bit more complicated.
One idea is to create an engagement score in the Chronos table with something like:
switch true do case contains(Chronos, "successful phone"): 5 case contains(Chronos, "text back"): 3 end
The problem with this method is that it is case sensitive and switch statements stop after it encounters a successful case.
Then in the Leads table engagement score field you would do:
xStatus + sum(Chronos.'Engagement Score')
-
said:
One way is the generous use of switch commands. For the Status you can do something like:
let xStatus := switch Status do
case 2:
50
case 12:
25
endWhere would I put this switch command? I also just added toggle switches in my chronos for opened email and text response to make this easier.
-
This is what I've started to put into the Engagement Score field and it doesn't return any values.
let xStatus := switch Status do case 2: 50 case 12: 20 case 22: 60 case 13: 70 end; void
-
Never mind, didn't add number() to the values
-
Now getting stuck on the Chronos section. Using this code
let xStatus := switch Status do case 2: number(50) case 12: number(20) case 22: number(60) case 13: number(70) end; let xEmail := switch Chronos.'Open Email' do case "Yes": number(10) end; let xText := switch Chronos.'Text Response' do case "Yes": number(10) end; xStatus + xEmail + xText
-
Real quick. With this code snippet, I want it to score any multiple choice that includes Phone Call which is ID #1. Here is the code:
let xPhone := switch 'Type of Contact' do case contains(chosen (1)): 10
I receive this error: Cannot read properties of undefined ('reading base')
-
Perfect. Used the first option!
Content aside
- Status Answered
- 1 yr agoLast active
- 12Replies
- 66Views
-
2
Following