I need to add a attachment file to an email, the file depends on the language of the document.
Some sample code:
Dim docLang
Dim generalTerms
docLang = %{lang}
Select Case docLang
Case "en-us"
generalTerms = "D:\1_PlanetPressDEV\workdir\sources\GeneralTermsUS.pdf"
Case else
generalTerms = "D:\1_PlanetPressDEV\workdir\sources\GeneralTerms.pdf"
End Select
%{termsVaue} = generalTerms
${termsValue} is not recognised in the script. How can i write to a local variable within the workflow?
Select Case docLang
Case “en-us”
watch.setvariable “termsValue”, “D:\1_PlanetPressDEV\workdir\sources\GeneralTermsUS.pdf”
Case else
watch.setvariable “termsValue”, “D:\1_PlanetPressDEV\workdir\sources\GeneralTerms.pdf”
End Select