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
    4560 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
    4569 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
    4591 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
    4615 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
    4629 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
    4502 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
    4580 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
    4611 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
    4631 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
    5175 0 30
Latest Tags
No tags yet
Sort By
  • 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 1980 people Select to learn more
  • Give Back 10 Give Back 10 Earned on 2.08.21 Earned by 721 people Select to learn more
  • Give Back 1 Give Back 1 Earned on 2.08.21 Earned by 4378 people Select to learn more
  • Ignite 1 Ignite 1 Earned on 2.08.21 Earned by 4281 people Select to learn more
  • Applaud 1000 Applaud 1000 Earned by 3 people Select to learn more
  • Applaud 5 Applaud 5 Earned by 1844 people Select to learn more
  • Validate 500 Validate 500 Earned by 2 people Select to learn more
  • Boost 250 Boost 250 Earned by 59 people Select to learn more
  • Affirm 250 Affirm 250 Earned by 4 people Select to learn more
  • Shape 50 Shape 50 Earned by 7 people Select to learn more
  • Give Back 400 Give Back 400 Earned by 33 people Select to learn more
  • Ignite 70 Ignite 70 Earned by 19 people Select to learn more
  • Publish 70 Publish 70 Earned by 4 people Select to learn more
  • Validate 250 Validate 250 Earned by 3 people Select to learn more
  • Give Back 300 Give Back 300 Earned by 41 people Select to learn more
  • Ignite 60 Ignite 60 Earned by 24 people Select to learn more
  • Engage 100 Engage 100 Earned by 3 people Select to learn more
  • Publish 60 Publish 60 Earned by 4 people Select to learn more
  • Applaud 500 Applaud 500 Earned by 16 people Select to learn more
  • Boost 100 Boost 100 Earned by 121 people Select to learn more
  • Affirm 100 Affirm 100 Earned by 14 people Select to learn more
  • Give Back 200 Give Back 200 Earned by 57 people Select to learn more
  • Ignite 50 Ignite 50 Earned by 30 people Select to learn more
  • Publish 50 Publish 50 Earned by 4 people Select to learn more
  • Give Back 100 Give Back 100 Earned by 108 people Select to learn more
  • Ignite 40 Ignite 40 Earned by 42 people Select to learn more
  • Publish 40 Publish 40 Earned by 6 people Select to learn more
  • Validate 100 Validate 100 Earned by 3 people Select to learn more
  • Boost 50 Boost 50 Earned by 204 people Select to learn more
  • Affirm 50 Affirm 50 Earned by 25 people Select to learn more
  • Give Back 50 Give Back 50 Earned by 176 people Select to learn more
  • Ignite 20 Ignite 20 Earned by 116 people Select to learn more
  • Publish 30 Publish 30 Earned by 7 people Select to learn more
  • Boost 25 Boost 25 Earned by 356 people Select to learn more
  • Affirm 25 Affirm 25 Earned by 51 people Select to learn more
  •  Give Back 25 Give Back 25 Earned by 332 people Select to learn more
  • Ignite 10 Ignite 10 Earned by 296 people Select to learn more
  • Affirm 3 Affirm 3 Earned by 214 people Select to learn more
  • Boost 3 Boost 3 Earned by 1809 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