web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Power Automate Desktop...
Power Automate
Unanswered

Power Automate Desktop: Using email "From" variable for office 365 email on same domain doesn't return email address

(0) ShareShare
ReportReport
Posted on by 228

I am retrieving email that match by subject using "Retrieve email messages from Outlook".

I am then trying to respond to these emails by picking up the variable %CurrentItem['From']% from "For Each" "Current Item" .

The value "From" is not an email address as expected. Instead it's a very long string that has DN information and cannot be used when trying to send emails back in reply to sender. Example Below:

 

From value returned:

r96359_0-1619673628411.png

 

When trying to use the From variable value I get this message:

 

Robin.Core.ActionException: Failed to send email message ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException: Outlook does not recognize one or more names.
--- End of inner exception stack trace ---
at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)
at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
at System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, CultureInfo culture)
at Robin.Modules.Outlook.Actions.OutlookActions.InvokeMethod(Object o, String methodName, Object[] methodArgs)
at Robin.Modules.Outlook.Actions.OutlookActions.SendEmailThroughOutlook(Variant outlookInstance, Variant account, Variant from, Variant to, Variant cc, Variant bcc, Variant subject, Variant body, Variant attachments, Boolean isBodyHtml, Int32 sendEmailFrom)
--- End of inner exception stack trace ---
at Robin.Modules.Outlook.Actions.SendEmailThroughOutlook.Execute(ActionContext context)
at Robin.Runtime.Engine.ActionRunner.RunAction(String action, Dictionary`2 inputArguments, Dictionary`2 outputArguments, IActionStatement statement)

 

Anyone know how to solve this? 

Thanks!

I have the same question (0)
  • r96359 Profile Picture
    228 on at

    Of course it's always when I type in a message for help that I find some other way to search for an answer.

    So it looks like I need to use "Respond to Outlook Message" instead of  Send email message through Outlook.

    Using this way, it automatically takes the variable of FROM and can send it properly even when on the same domain.

    This tests out and works great.

    Found this video: https://www.youtube.com/watch?v=zKEjiqb0SBU 

  • r96359 Profile Picture
    228 on at

    Anyone know why a DN string is stored as FROM when retrieving email from other employees within the domain?

    Doesn't happen from outside email.

     

    Looks like this and it not usable for replying.

    r96359_0-1619923495639.png

     

    This is still an issue because I want to capture the Email Address so I can use it later but it's un usable as is.

  • r96359 Profile Picture
    228 on at

    This should really get fixed so that we can store a "From" variable and not have to rely on the "Respond to Outlook Message". 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 276 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 169

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard