Robotics
(Bala)
1
Hi Team,
I am just extracting the email body content from asset. I want to include
the value of a variable inside the email body. For instance
Hi Ram,
Welcome to forum.
Above 2 lines comes from asset whereas name Ram will be dynamically changed. How to pass the variable value ?
Thanks
Srini84
(Srinivas)
2
@Robotics
Try as below
In asset try to put
Hi {0}
Welcome to forum
And assign a variable for example
Name = “Bala”
Now assign another variable as
Message = String.Join(AssetVariable, Name)
Hope this may help you
Thanks
lakshman
(Ganta lakshman)
3
@Robotics
In Asset mention the value like below.
Hi Name,
Welcome to forum.
After reading the asset value Replace Name with variable value as below.
getAssetValue.Replace("Name",varName)
Here, varName is variable of type String.
Robotics
(Bala)
4
As you said i am assigining
name = “Bala”
I am storing the mail content in asset
in assign
in_Config(“MailContent”).tostring
in assign
String.Join(MailContent.ToString,name)
output showing is only Bala other content is missing
Srini84
(Srinivas)
5
@Robotics
Sorry, can you try as below
String.Format(AssetVariable, Name)
Thanks
Robotics
(Bala)
6
Working as expected, marking as solution, thanks
1 Like
system
(system)
Closed
7
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.