Skip to content

Instantly share code, notes, and snippets.

@lfreeland
Last active September 27, 2019 10:13
Show Gist options
  • Save lfreeland/17dcc527e75c0102d1fad9cda039b85a to your computer and use it in GitHub Desktop.
Save lfreeland/17dcc527e75c0102d1fad9cda039b85a to your computer and use it in GitHub Desktop.
Valid Related To Account Example
SELECT Id,
WhatId,
TypeOf What
WHEN Account THEN BillingState, BillingCity
END
FROM Task
WHERE WhatId In (SELECT Id
FROM Account)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment