I can't find the CO data I need to create my token.
I've been tasked with creating a campaign that is requiring velocity scripting. I thought I would know how to find the data, but I'm not able to.
So far I have the following:
#foreach( $list in $account_cList )
#if( $list.listID.equals("CreditLimit") )
#set( $targetList = $list )
#break
#end
#endThe problem is that there are several products that have the CreditLimit listID and so I need to add a qualifier of product types (a range of about 15-20, 4 digit codes). I'm not sure how to accomplish this part.
One more related issue is that I need the number that this token generates and subtract the number from another CO field:
( $list.listID.equals("balance") )It would need to make sure it was referencing that same product type(s) as there are other lists that us the name balance (amount owed).
I would take the credit limit number, subtract the balance ( $math.sub), and the result would be a token that indicates that persons available amount.
Is my logic sound? Any tips in filling in the missing pieces?
Thank you Marketo Community.