Referencing Program Membership Data from Velocity Script in a Different Program | Community
Skip to main content
Employee
December 15, 2023
Solved

Referencing Program Membership Data from Velocity Script in a Different Program

  • December 15, 2023
  • 1 reply
  • 1360 views

Hi All, 

I am trying to reference an CID value stored in Program Membership Data in velocity script, from another Program.

 

Essentially, we have a CID "controller" default program, we are setting the values in a Program Membership field. This will used to set the CID value globally. In email default programs, I want to populate content, based on the "controller"s Program Membership CID value. 

 

I am struggling to understand if I can specify the program id, where the pmCampaignId is set.

 

##Set field variables #set ( $recentcampaignid = $member.pmCampaignId )
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SanfordWhiteman

The {{member.}} context is always the current Program. This is true outside Velocity as well!

 

I would venture that if there’s one central Program it’s not substantively different from setting Person fields. The idea of PMCFs is the one-to-many relationship.

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
December 15, 2023

The {{member.}} context is always the current Program. This is true outside Velocity as well!

 

I would venture that if there’s one central Program it’s not substantively different from setting Person fields. The idea of PMCFs is the one-to-many relationship.

lsimonAuthor
Employee
December 15, 2023

Thanks @sanfordwhiteman Yeah, I will resort to a person field!