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
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.

Power automate tips 768x460 v2.png

Restore a Deleted Flow

Did you know that you could restore a deleted flow? Check out this helpful article.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Users online (3,626)