Badges
Accepted Solutions
Likes Received
Posts
Discussions
Ideas
Blog Posts
This might be where there is some coding teaching here, what is object[0]? Sorry, I'm trying based on what languages and logic structures I know, but I'm sure it's not the prettiest, apologies for that and thank you again for helping. As far as what I'm doing, maybe it will help if I user story it. ...
Got it, I've updated the first token that calls this to as follows:#if( ! $display.alt($mergedOpptyAndAVMList,"").isEmpty() ) #foreach(ITEMFROMAVM in mergedOpptyAndAVMList) #set($AVMCurrentValue=${mergedOpptyAndAVMList.get(0).ITEMFROMAVM})I get this error:
0th element? I have a few other tokens that come after that reference the created merged list, such as this:${mergedOpptyAndAVMList.get(0).ITEMFROMAVMLIST__c}
@Jo_Pitts1 Thanks for that! Silly question but how do I input the no value check? @SanfordWhiteman I updated based on the edit, and now I get:Could it be where I'm placing the Token?
This is the error I get trying that
Ah I see. I've prepared a way to send a live email to myself, with the list merge at the top of the body, but when I approve and close the email I get the following:
Gotcha. So what I've done is change the tokens that reference the AVMList to reference the new merged list, so for example: ${mergedOpptyAndAVMList.get(0).ITEMFROMORIGINALLIST__c} I've also put the the token that runs the merge at the top, but when I try and send a sample I get the following error:T...
Awesome write up!
@SanfordWhiteman I think I am getting it, sorry to be so dense. I am replacing the $oppty and $avm with the full variable name, yes, and then the void with the token name, or do I need to add another line like the below after the formula?And then with this $mergedOpptyAndAVMList, does that live spec...
I think I follow, so would this be correct in theory? Forgive me for sounding it out #foreach over (${OpportunityList)#if(${OpportunityList.get(0).Zipcode__c}.equals(${AVM_Values__cList.get(0).Zip_Code__c}))#set( $TOKEN = $ITEM FROM CONTACT LIST)#end