You need to sign in to do that
Don't have an account?
Katherine Rowe
Trigger for data.com records only
I am writing a trigger for Accounts that I only want to run when the Account is created via data.com, as opposed to: the user through the GUI, the user through API.
How can I write my trigger to detect whether the account is coming from data.com or not? Is there a "best practice" way of doing this?
How can I write my trigger to detect whether the account is coming from data.com or not? Is there a "best practice" way of doing this?
Hi Katherine,
On the user record, you have a boolean field API named UserPermissionsJigsawProspectingUser which if the only indicator on whether the user is allocated a Data.com user license (value is TRUE) or not (value is FALSE). The Data.com user license lets the user add Data.com contact and lead records to Salesforce in the supported editions.
I hope this answers your question; please do let me know how it works out for you.
If you feel that your question was answered then do flag the answer as the solution to your query.
Kind Regards,
Swarna.
Swarna,
But if the user has a data.com license but is creating an account manually... then I don't want the trigger to run. I think if I simply use "UserPermissionsJigsawProspectingUser" then it would run for manually created accounts as well?
What about the field "Data.com Key" (api name is "Jigsaw"), I could use that, right?