How to Map Outlook Sender Names to Contact Fields in Power Automate
Question details
The user needs to separate a sender's full name into distinct Given Name and Surname fields when automatically creating Outlook contacts using Power Automate.
- Product
- Power Automate, Microsoft Outlook
- Device & OS
- not provided
- Scenario
- Creating automated workflows to extract sender information from emails and populate contact fields accurately.
- Observed behavior
- The automation flow combines the sender's first and last names into a single field instead of parsing them into separate Given Name and Surname fields.
Ensure you have an active Microsoft Power Automate license and the necessary permissions to access and create Outlook contacts before modifying your workflow.
Use Split Expressions in Power Automate
Utilize Power Automate's built-in string functions to split the display name and extract the first and last names dynamically.
When Power Automate extracts a sender's name from an Outlook email, it usually retrieves a single string containing the full display name. By applying Data Operation expressions, you can divide this string based on spaces to assign values to specific Given Name and Surname fields.
Open your flow in Power Automate in Edit mode and locate the step where you extract the Outlook sender's display name or email address.
Add an expression using the split() function to divide the display name into an array of strings based on the space character. For example: split(triggerOutputs()?['body/from'], ' ')
Use the first() expression in the 'Given Name' mapping field to extract the first element of the split array. Example: first(split(triggerOutputs()?['body/from'], ' '))
Use the last() expression in the 'Surname' mapping field to extract the final element of the array. Example: last(split(triggerOutputs()?['body/from'], ' '))
Save your workflow and run a manual test. Review the newly created Outlook contact to ensure the first and last names populate the correct individual fields.
Streamline Your Document Workflows with WPS Office
While Power Automate handles complex data mapping for Microsoft services, you might be looking for a lighter, cost-effective office suite for your daily document creation needs. WPS Office provides a robust, seamless alternative to Microsoft Office, helping you manage your files efficiently.
- 1. Download the software: Visit the official WPS Office website and download the free installation package for your operating system.
- 2. Install WPS Office: Run the downloaded installer and follow the simple on-screen instructions to set up the software.
- 3. Start working seamlessly: Open WPS Office and immediately begin opening, editing, and saving your Microsoft Office compatible documents.

Frequently Asked Questions
Why is my Power Automate flow combining the first and last name?
By default, Outlook provides the sender's name as a single 'Display Name' string. Unless you explicitly split this string using Power Automate expressions, the flow will pass the entire string into whichever individual field you map it to.
What happens in my flow if a sender only has one name?
If you use the split() function on a single name without a space, both the first() and last() expressions will return the exact same value, populating both the Given Name and Surname identically. You should add a condition to check the length of the split array to handle this scenario.
Where can I get more help with advanced Power Automate expressions?
For complex automation logic, nested expressions, and custom script debugging, it is highly recommended to post your workflow details in the official Microsoft Power Platform Community forums where experts can provide tailored solutions.




