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: Getting values from Object by Object Key

    Initially it was all set up to store Config data using Script Tokens, but the API to manage that is gone so we switched over to Text Tokens. The config data is populated using the API from a different system, its not manually set.

    image_type
    Discussions
    2375 0 1
  • Re: Getting values from Object by Object Key

    I just tested something and I forgot to mention something important. #set($clinics = {})#set( $clinics.Map = {...} That is actually being pulled in from a text token. If i put that whole object in the same Email Script token, it seems to work fine. But this is not how its set up. The idea is that th...

    image_type
    Discussions
    2413 0 3
  • Getting values from Object by Object Key

    Hello! I'm trying to get an object value by its key. It seems to work fine if i manually get the ID (i.e. $clinics.Map.get("784423").NME) but when I use a variable instead of the manual number (i.e. $clinics.Map.get($string_item).NME) it always prints out the last item in the reminder list object, w...

    image_type
    Discussions
    2430 0 5
  • Re: Validate JSON Has Map Data

    I have no idea, and no way to tell. I just know all the IF statements and the code i used to even save a variable from the TEXT token doesn't work, and it works just fine if it's a SCRIPT token. That's the only thing that's changed. If i try to do a simple #set variable and then just print it, I ge...

    image_type
    Discussions
    1295 0 0
  • Re: Validate JSON Has Map Data

    It feels like since the switch to a TEXT token, like marketo isn't full recognizing this as an OBJECT and that, as soon as I try to assign a key into a variable or do an IF statement, it doesn't save it.

    image_type
    Discussions
    4084 0 2
  • Re: Validate JSON Has Map Data

    I don't understand what is going on, since switching from the SCRIPT token to store my hash, to storing it in a TEXT token (because we can no longer update SCRIPT with API) none of my IF statements that previously worked are functional (They always return FALSE), and I cannot find any way to get the...

    image_type
    Discussions
    4088 0 3
  • Re: Validate JSON Has Map Data

    Am I not in the velocity editor with this?

    image_type
    Discussions
    4142 0 5
  • Re: Validate JSON Has Map Data

    I"m sorry I don't understand what you mean on this? I shared the code I have do you see what I have wrong?

    image_type
    Discussions
    4148 0 7
  • Re: Validate JSON Has Map Data

    If that was the case it wouldn't be printing the value on the page.

    image_type
    Discussions
    4165 0 9
  • Re: Validate JSON Has Map Data

    No change: $lead.clinicId has a value of 123456 (Based on data in field and what i print on the page)Result clincID is null$lead.clinicId has no value in the marketo field (Based on data in field and what i print on the page)Result clincID is nullThe exact Code I did, CID is printing either the numb...

    image_type
    Discussions
    4307 0 11
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 4372 people Select to learn more
  • Ignite 1 Ignite 1 Earned on 2.08.21 Earned by 4273 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