Hi all,
I have a SharePoint list with names of people and some columns ("Product" by example), and I have a button that creates messages to send based on this list of people, so the body of the message is taken from a text template and I want to replace some tags inside the text template for values of the user:
ForAll('PAX INFORMATION',
Patch('Messages', Defaults('Messages'),
{Title:ThisRecord.PaxName,
Phone:ThisRecord.Mobile,
Body:Substitute(LookUp('PUM Template Messages', Lang = Language , Message), "#PRODUCT#", ThisRecord.Product),
Language:ThisRecord.Lang,
Status:"Pending"}));
The message is created but with the default text template message, the Substitute is doing nothing here.
How can I solve this issue?
Thanks in advance,