Get Mail Variable from Config.xlsx

Hi,

I want to setup Config variables like this and later use it in send outlook message activity:

image

Can you help me with syntax in Config?

Thx and kind regards,
Vanja

Hi @VanjaV

Try this

ErrorMailBegin=Config("str_ErrorMailBegin").ToString

ErrorMailEnd=Config("str_ErrorMailEnd").ToString

Hi @VanjaV

I think this can be done using the assing activity. Have you tried assigning a variable from the Config file with the assing activity?

@lrtetala
I did and I got this in the received Mail:

image

I need instructions for

  • how to pass variables like “str_ProcessName” or “date.time.now.toString(“dd.mm.yyyy”)”
  • how to pass newline.

@VanjaV

How about the following?

Input.Replace("<first line of e mail>",vbCrLf).Replace("<Last line of emaIL>",vbCrLf).Replace("str_ProcessName",str_ProcessName).Replace("datetime.now.tostring(""dd.mm.yyyy"")",DateTime)

@lrtetala
Thank you. :heart:

I want my eMail Body to look like this:
image