cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Fourthlaw
Level: Powered On

Separated values into SharePoint fields

I have an email that has three strings separated by semicolons in the body.  For instance: {name};{city};{date}.  It will ultimately be 10-15 values, but I just want to understand the methodology.  Each email will only have ONE value for each spot.  In other words it will NOT be five {name} values, just one for each email.

 

I want to assign those values into their proper columns in a SharePoint list.  In other words, SharePoint has a column named "City" that matches up.

 

I have the following Flow...which I believe can read the emails just fine, but I think there's a step missing to assign my items() to variables?  I'm thinking that the variables can then be dropped into the SharePoint fields in the next step.

 

Or I could just be going the wrong direction here.  

 

Thanks for any help!

 

compose-flow.jpg

 

 

4 REPLIES 4
Community Support Team
Community Support Team

Re: Separated values into SharePoint fields

Hi @Fourthlaw,

 

Could you please share more details about the email body?Does the {name};{city};{date} is the full content of the email body?

 

Could you please share more details about your sharepoint list?Does the list have a name column,city column,date column to save the {name},{city} and {date}?

 

Please share more details so we would try to provide a proper workaround for you.

 

Best regards,

Alice

Fourthlaw
Level: Powered On

Re: Separated values into SharePoint fields

The email is completely free-form.  It can be anything I want to make it.  So, let's make it look like:

 

firstName:{first_name}

lastName:{last_name}

city:{city}

date:{date}

 

And that is the complete body of the email.

 

Or... I could set it up like:

 

firstName;lastName;city;date

{first_name};{last_name};{city};{date}

 

I prefer to use semicolons because some of the fields will have spaces and commas.

Community Support Team
Community Support Team

Re: Separated values into SharePoint fields

Hi @Fourthlaw,

 

I would offer you the workaround to get the {first_name},{last_name},{city} and {date} when the email body would as below:

 

firstName:{first_name}

lastName:{last_name}

city:{city}

date:{date}

 

 

Please refer to screenshot below to create the flow:

Capture.PNG

The expression in the {first_name} action as below:

first(split(first(skip(split(outputs('Compose'),'firstName:'),1)),'</p>'))

 

The expression in the {last_name} action as below:

 

first(split(first(skip(split(outputs('Compose'),'lastName:'),1)),'</p>'))

 

The expression in the {city} action as below:

 

first(split(first(skip(split(outputs('Compose'),'city:'),1)),'</p>'))

 

The expression in the {first_name} action as below:

 

first(split(first(skip(split(outputs('Compose'),'date:'),1)),'</p>'))

 

When an email arrives with body as below:

firstName:{first_name}

lastName:{last_name}

city:{city}

date:{date}

 

 

The flow would run successfully as below:

Capture.PNGCapture1.PNG

 

You could insert the out put dynamic content of the {first_name},{last_name},{city} and {date} action to the special field in the sharepoint list item.

 

 

Please let me know if your problem could be solved.

 

Best regards,

Alice

 

 

 

 

 

 

 

Administrator
Administrator

Re: Separated values into SharePoint fields

Hello, @Fourthlaw!

Have you had an opportunity to apply @v-yuazh-msft‘s recommendation to adapt your Flow? If yes, and you find that solution to be satisfactory, please go ahead and click “Accept as Solution” so that this thread will be marked for other users to easily identify! Thank you for being an active member of the Flow Community!

 

-Gabriel

Flow Community Manager

-Gabriel
Microsoft Flow Community Manager

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 167 members 4,413 guests
Please welcome our newest community members: