Extracting sender name for mail

Hello Team,
I’m trying to fetch sender name from email.

,
i have applied regex
‘?(\w+(?:\s+\w+)*)’?\s+<?(\S+@[\w.-]+.[a-zA-Z]{2,4}\b)

image

Expected O/p - XYZ_Name,Please guide

@Mayyur Can you send your XAML workflow ?

Fetch Customer Data from mail.xaml (9.2 KB)

Any guidelines ?

@Mayyur item.sender.displayname.tostring will give you just the name

Thank you…This works

1 Like

You are using wrong assign result “Sender_Name” =Regex_Op.ToString use Regex_Op(0).ToString to get the first match result this gives the array of matches so you get this as a output

I think this resolve your query

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.