Badges
Accepted Solutions
Likes Received
Posts
Discussions
Ideas
Blog Posts
I was editing this script in Notes and I couldn't work out how to change between curly vs straight quotes - apparently that tool does it automatically as I watched it change as I typed in " (it looks like it's auto-italicising them). IYes, that’s a common struggle. I have a Windows addon that change...
1) Marketo segmentations can often replicate some personalization logic with better performance.Marked your post as correct, though I doubt you can substantiate this claim for scenarios where Velocity and Segmentations can both do the job. (That is, when you’re not doing things that can only be done...
Yep, although I’d use a real Boolean as your check as opposed to an empty String. Plus a little cleanup in there to use .equals() and avoid unnecessary output.## --- Set required Velocity variables for timezone and formatting ---#set( $defaultTimeZone = $date.getTimeZone().getTimeZone("America/New_Y...
Looking much more manageable and nice work with the sets/lists. See that you’re using curly quotes in several places, though, which will not work. Gotta be straight quotes "! Also, a few syntax errors remained. So you can start from here:## Determines discount offering based on audience targeting se...
Unfortunately, don’t think there’s a way to do this. Only place where the user who scheduled a campaign — a dubious proxy for “owning” a campaign in many organizations anyway— is logged is in the Asset Audit Trail. And that’s only kept for 6 months.
How do I reference the set later on in the script? Would I use a command like this:$lead.Support_Type__c.equals("Gold Success Plan")#if( $interestingPublicSectorSubsegments.contains( $lead.Public_Sector_Subsegment__c ) ) You’re checking if the list of interesting values contains the field value.
@michellechopin wrote:Excuse the noob question but what do you mean when you say I'm "not outputting any fields"? I'll go through and connect the fields from the list to make sure everything is pulling in properly but will remove the {} as I go!Meaning you’re not printing any fields as-is. Printing ...
With your suggestion in mind, where does the #set section fit in the PubSec area?🙂You can put all such “interesting lists” at the top of the token (which also makes them much easier to edit). They have to be declared before they’re used. Additionally, question in terms of how to read the script - d...
Given that I have a LOT of fields to update in here, what option is best? I don't want to remove them all and then have to add them back in (or vice versa) 😛There is no one best option. It depends on where they’re used. In your case you aren’t outputting any fields, so don’t use ${formal.references...
I find these giant boolean conditions way over the border into unreadability, even after the rewrite. Don’t do stuff that way. Instead, declare your lists of interesting values at the top:#set( $interestingPublicSectorSubsegments = [ "SLED - Higher Ed - CML", "SLED - Higher Ed - ENT", "SLED - Loc...