Person Exists in SFDC? | Community
Skip to main content
Eric_Salamon1
New Participant
August 10, 2017
Solved

Person Exists in SFDC?

  • August 10, 2017
  • 2 replies
  • 2608 views

For the purpose of scaleability my VP is asking me to create a field  in the alert that explicitly states TRUE or FALSE if person exists in SFDC. One solution, I created though it isn't as clear as he would like is to put the SFDC ID token into the alert if it doesn't have an SFDC ID then FALSE. Does anyone else have ideas to work around this?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Eric_Salamon1

Figured it out. The velocity script is very easy:

#if(${lead.SFDCId}=="")

"Does not exist in SFDC"

#else

"Exists in SFDC"

#end

2 replies

Eric_Salamon1
Eric_Salamon1AuthorAccepted solution
New Participant
August 10, 2017

Figured it out. The velocity script is very easy:

#if(${lead.SFDCId}=="")

"Does not exist in SFDC"

#else

"Exists in SFDC"

#end

Casey_Grimes2
New Participant
August 10, 2017

If you're looking to just do "if true, show ID, if false, say no ID" you could do something as simple as

{{lead.SFDC Id:default=Not in Salesforce}}

for an alert. If this needs to scale out to more beyond that, you have several different options.

Eric_Salamon1
New Participant
August 10, 2017

Like I mentioned I set up the SFDC ID token = false, but to the VP it isn't as clear as preferred. I was thinking I would need to create a velocity script to update that based on the field. I am not sure how this would work though.

From a coding standpoint I am not as familiar as I would like. would it look like:

if ({{lead.SFDC Id}}==null):{

  print false

}

else{

  print true

}