Can we change the data value of a lead field through Velocity Script?
We have a specific language requirement for certain types of emails and I am trying to update a lead field with a code for the the language sent in the email for a consumer.
#if (${lead.accntsolflag}=="1" && ${lead.crlcccode}=="N" && ${lead.cnsmrlangspkn}=="E")
Disclosure Text1
#set ($SOLDisclosureID = "1")
${lead.SOLDisclosureID} = $SOLDisclosureID
#end
Is it possible to update the lead field in velocity script?