cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
chris_tortuga
Regular Visitor

How do I extract "Joe" from the output: ["Smith- Joe"]

I have a flow that pulls Bookings appointments from Outlook.

 

It takes the assigned staff member from the appointment, but the result is always (example): ["Smith- Joe"]

 

chris_tortuga_1-1620908575974.png

 

chris_tortuga_0-1620908562326.png

 

How can I extract the first and last name as content? For instance, First Name: "Joe" and Last Name: "Smith"

 

Thank you,

Chris

 

3 REPLIES 3
ScottShearer
Super User
Super User

@chris_tortuga use a split expression and split on - followed by a space.  Let me know if you need an example.

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

Thank for the reply @ScottShearer 

 

I'm a novice. Could you provide an example?

 

I'm guessing that I need to add an action "Set Variable (Staff Member)"

 

The value would be?

 

Thank you! Let me know if you need any additional screenshots!

Chris

@chris_tortuga 

This was a little more complicated than I realized...  Power Automate wants to treat your string as an array.  See my example below and let me know if you have any questions.

image.png

image.pngimage.png

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,925)