1
0
-1

We have a custom email template that accesses some data from submission object. We are able to access data from Submission objects Form Data Map but not from Property Map

  • ${submission.formDataMap.customerName} returns XYZ
  • ${submission.propertyMap.referenceId} doesn't return the data

Referring to form transaction / properties, we are able to see the properties including referenceId.
Is there a way to reference/retrieve submission/propertyMap in the velocity template

    CommentAdd your comment...

    1 answer

    1.  
      2
      1
      0

      Hi,

      Can you check if submission.submissionPropertyValue('yourpropertyname') gives you what you want?

      1. Sathiyachalam Baskar

        We tried the below options and they did not work,

        • ${submission.submissionPropertyValue.referenceId} 
        • ${submission.submissionPropertyValue('referenceId')} 
        • ${submission.submissionPropertyValue("referenceId")}
      2. Bill Frost

        Hi,

        Where is your referenceId property defined?

      3. Sathiyachalam Baskar

        The reference Id is received from a service invoked via groovy scripts and is added to the Txn object 

        TxnUpdater(txn).setProperty("referenceId", referenceId).update()
      4. Bill Frost

        Can you try submission.getSubmissionPropertyValue('referenceId') ?

      5. Sathiyachalam Baskar

        Hi Bill,

        This works!

        $!{submission.getSubmissionPropertyValue('referenceId')}

        Thank you!

      CommentAdd your comment...