Page 1 of 1

Replace multiple strings with variables in text ,Conditions Not working as expected

Posted: Mon Jun 13, 2022 10:48 am
by luke
I am struggling to replace multiple strings with variables in text :cry:

Iv attached the necessary files for analysis.
please see the image in the zip file provided for clarity.

Thank you for your help. :)
Is it possible to do it only as an expression ?
{IIF(HTML.HTML_Message.Contains("{Friends.FullName}"),HTML.HTML_Message.Replace("{Friends.FullName}",Friends.FullName),"")}

Re: Replace multiple strings with variables in text ,Conditions Not working as expected

Posted: Tue Jun 14, 2022 10:21 pm
by Lech Kulikowski
Hello,

You can use the following epression:
{Replace(Replace(HTML.HTML_Message,"{People.FullName}",People.FullName), "{Friends.FullName}", Friends.FullName)}

Thank you.

Re: Replace multiple strings with variables in text ,Conditions Not working as expected

Posted: Wed Jun 15, 2022 6:42 am
by luke
Thank you for taking time to help me.

Re: Replace multiple strings with variables in text ,Conditions Not working as expected

Posted: Wed Jun 15, 2022 9:17 am
by Max Shamanov
Hello,

You are welcome!