Jo_Pitts1

Jo_Pitts1

Contact Me
Online Status
Offline
Date Last Visited
3 weeks ago
Level 10 - Community Advisor
Joined the community 11-10-2017
Rank Icon Level 10 - Community Advisor
Founder/CEO
Auckland, NZ
  • solved badge Re: A basic foreach issue

    Hmm... so my code now looks like this (and seems to be working)#set( $allSeminarDetails = { "ABC" : { "blurb":"Postman Pat", "date":"24 Aug", "time":"10:30", "attendees":0, "village":"somewhere" }, "CBA" : { "blurb":"Bob the builder", "date":"14 Aug", "time":"10:30", "a...

    image_type
    Discussions
    3164 0 4
  • solved badge Re: A basic foreach issue

    @SanfordWhiteman wrote:You don't need to pre-set attendees in the details Map, though it's nicely informative if you do.You aren't using this variable: #set( $attendees = $currentRegistration[1] )​Splitting on just ; is fine, you don't need to put it in a character class [;] as it's not reservedI ...

    image_type
    Discussions
    3170 0 5
  • solved badge Re: A basic foreach issue

    @SanfordWhiteman (and for the general amusement and hopefully edification of others),I've made solid progress. My code is working as expected, and I'm getting to grips with the string maps stuff quite nicely.The output section at the end is almost 'debug' at the moment, but will go into a nice tab...

    image_type
    Discussions
    5267 0 7
  • solved badge Re: A basic foreach issue

    @SanfordWhiteman So, in my string, I actually get something like:GNG;4|POY;3 The code gives me the seminar, and the number is the attendees.Ultimately, my allSeminarDetails map will have blurb, date, time, and a URL.My currentSeminarDetails will end up with the right rows from allSeminarDetails PLUS...

    image_type
    Discussions
    5307 0 0
  • solved badge Re: A basic foreach issue

    @SanfordWhiteman ,I can switch to string keys quite happily and easily 🙂. I'm always happy to find nicer/better ways of doing things especially as it avoids the ghastly nested loop.How far off the mark am I in my desire to add more than just the details from allSeminarDetails (i.e. + the number of ...

    image_type
    Discussions
    5311 0 10
  • solved badge Re: A basic foreach issue

    So a nested loop in other words :).... Darn it I was hoping for something more elegant! Thanks for the help @SanfordWhiteman Next silly question. in this line here:#set( $void = $currentSeminarDetails.add($detail) )How can I add one extra element that is NOT in the $allSeminarDetails array. In th...

    image_type
    Discussions
    5315 0 0
  • solved badge Re: A basic foreach issue

    @SanfordWhiteman yes - this is in a token. I've tweaked things and made it behave, so now my next challenge.How to take my split string, and find each matching value in an array.I've got to this point: #set( $seminarDetails = [ {"CODE":"GNG","BLURB":"Come to GNG and learn about Poodles"}, {"CODE...

    image_type
    Discussions
    5326 0 14
  • solved badge A basic foreach issue

    Basic as in simple.. not as in BASIC (sorry - old person language joke)I have this simple piece of code #set ($seminarList = "A;1|B;5|C;3")#foreach ($myitem in $seminarList.split("[|]")) ${myitem} #end And it is spitting the dummy (completely refusing to do anything useful).I was expecting it to s...

    image_type
    Discussions
    5377 0 16
  • Re: webhook response mapping

    Sanford, doneClonedRemoved Response MappingSaved with no mappingsAdded in Response MappingSaved with mapping Called.. no joy. And I swear it was working at 02:00 this morning!

    image_type
    Discussions
    2510 0 0
  • Re: webhook response mapping

    OK. So it is still happening (i.e. nothing gets written to the field in question).There is no update blocking on the fieldAre we talking a bug in Marketo here?

    image_type
    Discussions
    2515 0 2

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!
  • Affirm 100 Affirm 100 Earned on 1.25.25 Earned by 14 people Select to learn more
  • Give Back 900 Give Back 900 Earned on 1.24.25 Earned by 10 people Select to learn more
  • Give Back 800 Give Back 800 Earned on 4.01.24 Earned by 10 people Select to learn more
  • Boost 250 Boost 250 Earned on 12.14.23 Earned by 59 people Select to learn more
  • Publish 3 Publish 3 Earned on 10.12.23 Earned by 85 people Select to learn more
  • Engage 25 Engage 25 Earned on 9.22.23 Earned by 30 people Select to learn more
  • Give Back 700 Give Back 700 Earned on 9.18.23 Earned by 13 people Select to learn more
  • Applaud 50 Applaud 50 Earned on 8.07.23 Earned by 218 people Select to learn more
Public Statistics
Date Registered ‎10-11-2017 08:35 PM
Date Last Visited 3 weeks ago
Total Messages Posted 1,023
Likes Received 376