on 08-14-2014 10:06 AM
Dear Experts,
maybe it is a simple question however i am having difficulties finding the answer.
when i use tokens in emails, as for example %TECH_SUPPORT_EMAIL%, where is the value for these coming from? If I want to maintain it where do I look?
Thanks in advance.
venelin
Hi Venelin,
If you want to use the tokens in email then you have to set it in the script.
You can refer to below example.
For a mail message like "User %RECIPIENT_FIRST_NAME%" have accessed the %DOCUMENT_ID% with the Supplier %VENDOR_NAME%"
To set the above token like RECIPIENT_FIRST_NAME, DOCUMENT_ID, VENDOR_NAME use below script.
Properties props= new Properties();
recepientname= doc.getDocumentOwnerUserReference().getDisplayName();
documentId= doc.getDocumentId();
supplierName= doc.getVendorRef().getDisplayName();
documentDescription=doc.getDocumentDescription();
props.put(new String("TOKEN1"), "Currency changed to ADP");
props.put(new String("RECIPIENT_FIRST_NAME"), recepientname);
props.put(new String("DOCUMENT_ID"), documentId);
props.put(new String("VENDOR_NAME"), supplierName);
Let me know if this helps.
Thanks,
Raj.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.