Hello everyone !
A customer is asking me for a simple flow but I found an issue I can't manage.
The use case is simple : this customer needs a flow where a mail is dropped in a mail account. Depending of the domain name of this mail, it is redirected with some informations in its body to a special mail box where this mail will be processed by another service. This part is easy.
However, he's asking me to put in the Object field of the mail the 'From' expression that I get with the Outlook trigger of the flow. And this part doesn't work. The error message is this one (sorry for the translation) : The "inputs.parameters" element of the workflow operation "Envoyer_un_e-mail_(V2)" of type "OpenApiConnection" is not valid. Error details: The input parameter "emailMessage/To" must be of type "String/email". The runtime value "From" to be converted does not have the expected "string/email" format.
I thought I could use the Initialize variable function to put it as a string variable, but the issue still remains.
Would you know how to fix this issue ?
Thanks for your help !
Hello,
I am an idiot. 😃 I have misread the error message. The problem came from the way I modified the email. The correct way is to initialize the variable simply, then the replace function needs to be used in the To field of the mail, not directly in the variable initialization.
Thank you for your help ! 🙂
@Anonymous
Can you screenshot the mailToModify variable after a run - see my example below
I have this in the log :
@Anonymous
If I understand correctly, Flow is complaining about the "To" filed in the email.
Can you post a screen shot of the output of the MailToModify variable after a run?
Hello ScottShearer,
Thank you for your answer. Yes, of course. Please note that the flow I am showing you contains some tests I've done with variables.
As you can see, I tried to make a kind of parsing action. I think that the email is detected, even in string, when it's put in Object. The problem is that my client want to have this information in Object.
Thank you very much !
@Anonymous
Can you post a screen shot of your Flow? That will make it much easier to assist.
WarrenBelz
146,645
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,997
Most Valuable Professional