Hi All,
I have been struggling to get this working and I am not sure if its possible.
I am trying to compose an email address from a full name. To test I am using my own name instead of a dynamic expression. For this example, I am using 'Andrew Tyrrell' but this name will change once it's live.
Then using 'First' & 'Last' to separate the name and create an email address as an output.
First(Split('Andrew Tyrell', ' '))last(Split('Andrew Tyrell', ' '))
Output: Andrew
last(Split('Andrew Tyrell', ' '))Output: Tyrrell
Compose both these outputs to form an email address:
@{outputs('Compose')}.@{outputs('Compose_2')}@***************.orgOutput: Andrew.Tyrrell@*****************.org
I then want to store this email address in a variable to then use later on as a recipient for outlook
Doing it this way spits out the following error:
"InvalidTemplate. Unable to process template language expressions in action 'Send_an_email' inputs at line '1' and column '2503': 'The template language expression 'json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$connections']['shared_office365']['connectionId']' cannot be evaluated because property 'shared_office365' doesn't exist, available properties are ''. Please see https://aka.ms/logicexpressions for usage details.'."
The variable doesn't match the input format of outlook. But I don't know why, I have tried storing the variable in various ways, but I can't get it working.
Any help would be appreciated, there is most likely a much simpler way of doing this.
Thanks in advance!