Adam

Adam

Contact Me
Online Status
Offline
Date Last Visited
‎06-21-2023 02:49 PM
Level 2
Joined the community 13-03-2020
Rank Icon Level 2
  • Re: Validate JSON Has Map Data

    If $lead.ClinicID ) does not have a value in marketo, I want to print an alternative instead, I have tried to check if it's null, true/ false, or an empty string, but none of them are working properly. How do I check if CID has a value or not? #set( $CID = ${lead.ClinicID} )

    image_type
    Discussions
    4345 0 13
  • Re: Validate JSON Has Map Data

    So this still isn't working, it must mean that when that data doesn't exist it's something other then "null", how can we figure out what is going on? It always returns true for me, it doesn't matter if there is a clinic ID or not, and the contains never prints even if it does exist.

    image_type
    Discussions
    4354 0 14
  • Re: Validate JSON Has Map Data

    I'm sorry, I am really not getting how to check if the value is null, that's the part I have been stuck on for this entire post. Doing thisif $reference is null$display.alt($reference,"").isEmpty() is true Is always returning true for me, regardless of the value of "Reference",#set( $NME = "Physiot...

    image_type
    Discussions
    4376 0 16
  • Re: Validate JSON Has Map Data

    Ok that makes sense, so how do I check if it's null? Putting null I get an error.

    image_type
    Discussions
    4400 0 18
  • Re: Validate JSON Has Map Data

    So the first problem is if Clinic ID has no value, it's printing the variable in the email.The second issue is if the value of clinicID doesn't exist, it's still printing the variable in my email (like the below)$clinics.Map[$CID]["NME"] So that is why I am saying the IF statements are not evaluatin...

    image_type
    Discussions
    4414 0 20
  • Re: Validate JSON Has Map Data

    ClinicID is the correct name, and it has data as expected. The issue is that the IF statements are not evalutating properly.

    image_type
    Discussions
    4287 0 22
  • Re: Validate JSON Has Map Data

    I don't know why this isn't working for me, as everything below makes sense. Currently it's always returning false. I broke out the IF statements to see why, and the "IS Empty" is always returning true, and the other two are always returning false.I am testing 3 scenarios to make sure it all works, ...

    image_type
    Discussions
    4365 0 24
  • Re: Validate JSON Has Map Data

    Hi,Thank you for the detailed reply, it makes perfect sense now! However when I try to do it, if i adjust to the syntax you provided I am not getting an output in my test email, it just prints "$CID", etc. When I add the Quote and {} I get CID and NME to print, but I cannot figure out what syntax ma...

    image_type
    Discussions
    4396 0 26
  • Re: Validate JSON Has Map Data

    #set($CID = ${lead.ID})#set($NME = "$clinics.Map.get($CID).NME")#if( $CID.isEmpty() || $NME.isEmpty() )Physiotherapy#else$NME#end

    image_type
    Discussions
    4416 0 28
  • Validate JSON Hash Map Data

    I am using a JSON hash map and would like to validate that I am getting data, and if not that I provide a "Default value. I cannot get it to check properly if my hash has a value or not. For some reason the $NME is already returning true. I am trying to account for cases where I don't have a match ...

    image_type
    Discussions
    4828 0 30
Latest Tags
No tags yet

Top Badges Earned

Customize up to 8 badges at the top of your trophy case for all other Community members to see!Customize up to 8 badges at the top of your trophy case for all other Community members to see!
  • Give Back 5 Give Back 5 Earned on 2.08.21 Earned by 1285 people Select to learn more
  • Give Back 3 Give Back 3 Earned on 2.08.21 Earned by 1979 people Select to learn more
  • Give Back 10 Give Back 10 Earned on 2.08.21 Earned by 719 people Select to learn more
  • Give Back 1 Give Back 1 Earned on 2.08.21 Earned by 4373 people Select to learn more
  • Ignite 1 Ignite 1 Earned on 2.08.21 Earned by 4274 people Select to learn more
Public Statistics
Date Registered ‎03-13-2020 09:04 AM
Date Last Visited ‎06-21-2023 02:49 PM
Total Messages Posted 22
Likes given to