Created
December 22, 2018 01:00
-
-
Save floofydugong/815c4a630e8d8a01d037c59dd6fd4fed to your computer and use it in GitHub Desktop.
test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CASE | |
WHEN t.calltype = 'Inbound' AND t.type = 'Inbound' THEN 'Call' | |
WHEN t.calltype = 'Inbound' AND t.type IS NULL AND t.calldurationinseconds >= 90 THEN 'Conversation' | |
WHEN t.calltype = 'Outbound' AND t.type IS NULL AND t.calldurationinseconds >= 90 THEN 'Conversation' | |
WHEN t.type IS NOT NULL THEN t.type | |
ELSE 'Call' | |
END AS SALESFORCE_TaskTypeImputed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment