I want to populate current year (only year) in a correspondenced.

I want to fetch the current year in footer of a correspondence .

Please help.

@amlanC16614477 Could you try this

<%=pega_rules_datetime.CurrentDate(“yyyy”,“IST”)%>

@BhanuPrakash_G Thank you Bhanu, will try and update you.

Hi@amlanC16614477!

To populate only year value in correspondence,

  1. Create one property. (For example: Year)
  2. Use Data transform, to set the value of the property.
    • @FormatDateTime(@CurrentDateTime(),“yyyy”,“”,“”)
  3. Run this Data transform before Correspondence step (pre-action).
  4. Add the property in correspondence rule.

please go through attached documents. It might be helpful.

email .jpg

Hi @amlanC16614477,

Try to store the year in one of the property and In correspondence try to insert the rule.

I hope it will helps you.Try this

Thanks