cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
CarlesMartin
Post Patron
Post Patron

Help creating an item in a list from an Email TITLE

Hi guys!

I was wondering if it is possible to create an item with specified columns from a title in the mail. I will explain with more details what I did and what I need next:

First of all, I created a flow that "when item created" --> "send an email (V2) because I need it sensitivity in it. This is how the flow looks:

CarlesMartin_0-1680014525789.png

As you can see, I highlighted the subject which contains the values of the item I created and in the body I have always the same message + comments I will add in the item. I will show you how the list and the items look like forward:

CarlesMartin_1-1680014764505.png

So, the workflow I have is: I receive an email which contains documents and information that I attach to the item I create in the list. Then, with the flow I attached before, I send that information to others or "destinatarios" ("adresses" which is also one column in the list). Then I have another flow which sends those attachments to a library (it creates a folder and sends there the attachments outside I I don't know why I have this topic open Re: When item in list is created, create a folder ... - Power Platform Community (microsoft.com)).

So the thing is: try to create a flow when I receive a mail from manager with those attachments, create an item which contains all the metadata I need to then activate correctly the other flow without any manual work. 

Is that possible? Hope it is, any help would be appreciate it.

Thanks!!

1 ACCEPTED SOLUTION

Accepted Solutions
v-jefferni
Community Support
Community Support

Hi @CarlesMartin ,

 

Do you want to create an item in SharePoint list from the title of an email?

 

Based on your description, I have made a simple test for your reference.

 

This is SharePoint list for test:

 

vjefferni_0-1680157393340.png

 

This my test email:

The title of the email is concatenated from the required fields, separated by commas.

vjefferni_1-1680157393342.png

 

 

This is my flow:

In flow, the title of the email is separated into an array by the Split function, and each element is the value of each field.

vjefferni_2-1680157393345.png

 

Result:

vjefferni_3-1680157393346.png

 

Best regards,

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

22 REPLIES 22
v-jefferni
Community Support
Community Support

Hi @CarlesMartin ,

 

Do you want to create an item in SharePoint list from the title of an email?

 

Based on your description, I have made a simple test for your reference.

 

This is SharePoint list for test:

 

vjefferni_0-1680157393340.png

 

This my test email:

The title of the email is concatenated from the required fields, separated by commas.

vjefferni_1-1680157393342.png

 

 

This is my flow:

In flow, the title of the email is separated into an array by the Split function, and each element is the value of each field.

vjefferni_2-1680157393345.png

 

Result:

vjefferni_3-1680157393346.png

 

Best regards,

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

Okey so I tried what you showed me. I understand I have to put all the info in the title of the mail with "," as a separator for each column of the item. 
The initial part looks like that (I will send the mail to me once I received from others because they sent it forwards and would create problems, that's why I put myself in "From"):

CarlesMartin_0-1680166437501.png

So the first part, I think it's correct (correct me if not).
Next, is the create item which includes every column in the item and I fulfill it with the "variables" expression. I suppose it will takes every word between each ",".  

CarlesMartin_1-1680169574163.png

So after these 2 steps we have the last, which is apply to each it appears another apply to each and I dont know why. Also it takes a different output, mine is "INFO" and yours it's "attachment".... Would it run correctly?

CarlesMartin_0-1680190637652.png

 

Hi @CarlesMartin ,

 

The last step is to save the attachments in the email to SharePoint, such as pictures or files. If you are sure there are no attachments in the email, you can ignore this step.    Because there may be multiple attachments in the email, there will be a Apply to each action. Its input is "attachments". The Apply to each "INFO" needs to be removed.

 

Best regards,

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

Hi @v-jefferni ,
Sorry for being so late answering this.
The thing is if I do that it will take every image in the body + the attachments of the mail. So I would need to apply a filter array = attachment is inline is equal false right? The thing is I don't know where should I put that. So following your steps, where should I put the filter array? (please attach an image where should it be for my understanding)

CarlesMartin_0-1681821862928.png

 

Hi @CarlesMartin ,

 

You can do it as below:

vjefferni_0-1681870929762.png

 

Best regards,

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

Hi @v-jefferni ,

 

but in this case, the create file indicates to put the attachments in a folder/library which it's not necessary in the flow. I just need to attach them in the create item I created before. Or what should I put in Create File
In the create item action I can't add any attachments.

Hi @CarlesMartin ,

 

The create file action is just an example, use Add attachment instead.

 

Best regards,

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

Hi @v-jefferni ,
Okay so the thing now is in the ID of Add Attachment, what should I pick?

CarlesMartin_0-1681897678772.png

And another question: could I make that can only happen if one person sends me the mail with an specific title of the mail? Like adding something in the subject filter, because it's a person that send me tons of mails, but I only want to create those items in specific cases. So putting in subject filter "Item" or something else:

CarlesMartin_1-1681897808083.png

 

Hi @CarlesMartin ,

 

It's the ID of create item, it means to which item the attachment will be add. For the second question, the subject filter is exactly used for the purpose you want to achieve. But this parameter only accepts static string. 

 

Best regards,

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

Hi @v-jefferni ,
So I sent a Mail to myself with this tittle:

CarlesMartin_0-1681900278700.png

And this happens to the flow:

CarlesMartin_1-1681900310365.png

So maybe I misunderstood something of the flow. I thought that the title of the mail would be the item columns separated by commas. Maybe I should put in the subject filter "Transmittals" as is the thing they will send me but the question now is: where I should put the other metadata with the columns of the items? Look where the run fails: 

CarlesMartin_2-1681900591400.png

Is it because the blanks spaces in the title?



 

Hi @CarlesMartin ,

 

It failed because of a typo:

triggerOutouts

 

it should be "triggerOutputs".

 

Best regards,

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

Hi @v-jefferni ,

 

It succeeds now but the item didn't appear in the list with the metadata...

CarlesMartin_0-1681983090838.pngCarlesMartin_1-1681983121392.png

I created with the name of the column look:

CarlesMartin_2-1681983442312.png

CarlesMartin_3-1681983471264.pngCarlesMartin_4-1681983493967.png

 

Didn't attach any file yet, want to try first with the item and how it was created. How do I look where is this item now created?

Hi @CarlesMartin ,

 

If the flow run successfully, new entry will be created in the list. You can wait seconds then refresh the list and see the result.

 

Regards,

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

Hi @v-jefferni ,

Hi it was 30 min ago that the succeded message arrived.
It appears this sign (synchronizing changes) in the list:

CarlesMartin_1-1681984640964.png

Does this mean is still processing the flow and waiting to add the item in the list?

 

Okay @v-jefferni it finally appeared... 
But it lasts 52 minutes for it haha. Will try now to add some attachments and will tell you how it goes as well. 
I accepted your answer as the solution because it worked!

 It's been more than 3 hours from the last succeed run flow and it's still synchronizing... Is this normal? Is there any faster way than this? I do not have 3 or more hours to do this job... It must be faster so I don't know if it's something wrong with it. 

Hi @CarlesMartin ,

 

I have not encountered the synchronizing issue in SharePoint Online. There are three columns with strange Id values in the screenshot in previous post:

vjefferni_0-1682040960093.png

 

could you please tell what are their column types? Have you got correct values in these columns?

 

Best regards,

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

Hi @v-jefferni , 

This columns are "option" type. Maybe that's why its taking so long, because what I typed in the mail was just a try to see what happens. I will try again with the options, because I tried with "single line" option, and it gets me this error:

CarlesMartin_0-1682070397445.png

Should I change anything? I don't get what is wrong now changing the type of the column.

Hi @CarlesMartin ,

 

Please check below video and see how to add Choice column value in create item action:

Power Automate - How To Update SharePoint Choice Column - YouTube

 

Best regards,

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

Helpful resources

Announcements

Calling all User Group Leaders and Super Users! Mark Your Calendars for the next Community Ambassador Call on May 9th!

This month's Community Ambassador call is on May 9th at 9a & 3p PDT. Please keep an eye out in your private messages and Teams channels for your invitation. There are lots of exciting updates coming to the Community, and we have some exclusive opportunities to share with you! As always, we'll also review regular updates for User Groups, Super Users, and share general information about what's going on in the Community.     Be sure to register & we hope to see all of you there!

April 2024 Community Newsletter

We're pleased to share the April Community Newsletter, where we highlight the latest news, product releases, upcoming events, and the amazing work of our outstanding Community members.   If you're new to the Community, please make sure to follow the latest News & Announcements and check out the Community on LinkedIn as well! It's the best way to stay up-to-date with all the news from across Microsoft Power Platform and beyond.    COMMUNITY HIGHLIGHTS   Check out the most active community members of the last month! These hardworking members are posting regularly, answering questions, kudos, and providing top solutions in their communities. We are so thankful for each of you--keep up the great work! If you hope to see your name here next month, follow these awesome community members to see what they do!   Power AppsPower AutomateCopilot StudioPower PagesWarrenBelzDeenujialexander2523ragavanrajanLaurensMManishSolankiMattJimisonLucas001AmikcapuanodanilostephenrobertOliverRodriguestimlAndrewJManikandanSFubarmmbr1606VishnuReddy1997theMacResolutionsVishalJhaveriVictorIvanidzejsrandhawahagrua33ikExpiscornovusFGuerrero1PowerAddictgulshankhuranaANBExpiscornovusprathyooSpongYeNived_Nambiardeeksha15795apangelesGochixgrantjenkinsvasu24Mfon   LATEST NEWS   Business Applications Launch Event - On Demand In case you missed the Business Applications Launch Event, you can now catch up on all the announcements and watch the entire event on-demand inside Charles Lamanna's latest cloud blog.   This is your one stop shop for all the latest Copilot features across Power Platform and #Dynamics365, including first-hand looks at how companies such as Lenovo, Sonepar, Ford Motor Company, Omnicom and more are using these new capabilities in transformative ways. Click the image below to watch today!   Power Platform Community Conference 2024 is here! It's time to look forward to the next installment of the Power Platform Community Conference, which takes place this year on 18-20th September 2024 at the MGM Grand in Las Vegas!   Come and be inspired by Microsoft senior thought leaders and the engineers behind the #PowerPlatform, with Charles Lamanna, Sangya Singh, Ryan Cunningham, Kim Manis, Nirav Shah, Omar Aftab and Leon Welicki already confirmed to speak. You'll also be able to learn from industry experts and Microsoft MVPs who are dedicated to bridging the gap between humanity and technology. These include the likes of Lisa Crosbie, Victor Dantas, Kristine Kolodziejski, David Yack, Daniel Christian, Miguel Félix, and Mats Necker, with many more to be announced over the coming weeks.   Click here to watch our brand-new sizzle reel for #PPCC24 or click the image below to find out more about registration. See you in Vegas!       Power Up Program Announces New Video-Based Learning Hear from Principal Program Manager, Dimpi Gandhi, to discover the latest enhancements to the Microsoft #PowerUpProgram. These include a new accelerated video-based curriculum crafted with the expertise of Microsoft MVPs, Rory Neary and Charlie Phipps-Bennett. If you’d like to hear what’s coming next, click the image below to find out more!   UPCOMING EVENTS Microsoft Build - Seattle and Online - 21-23rd May 2024 Taking place on 21-23rd May 2024 both online and in Seattle, this is the perfect event to learn more about low code development, creating copilots, cloud platforms, and so much more to help you unleash the power of AI.   There's a serious wealth of talent speaking across the three days, including the likes of Satya Nadella, Amanda K. Silver, Scott Guthrie, Sarah Bird, Charles Lamanna, Miti J., Kevin Scott, Asha Sharma, Rajesh Jha, Arun Ulag, Clay Wesener, and many more.   And don't worry if you can't make it to Seattle, the event will be online and totally free to join. Click the image below to register for #MSBuild today!   European Collab Summit - Germany - 14-16th May 2024 The clock is counting down to the amazing European Collaboration Summit, which takes place in Germany May 14-16, 2024. #CollabSummit2024 is designed to provide cutting-edge insights and best practices into Power Platform, Microsoft 365, Teams, Viva, and so much more. There's a whole host of experts speakers across the three-day event, including the likes of Vesa Juvonen, Laurie Pottmeyer, Dan Holme, Mark Kashman, Dona Sarkar, Gavin Barron, Emily Mancini, Martina Grom, Ahmad Najjar, Liz Sundet, Nikki Chapple, Sara Fennah, Seb Matthews, Tobias Martin, Zoe Wilson, Fabian Williams, and many more.   Click the image below to find out more about #ECS2024 and register today!     Microsoft 365 & Power Platform Conference - Seattle - 3-7th June If you're looking to turbo boost your Power Platform skills this year, why not take a look at everything TechCon365 has to offer at the Seattle Convention Center on June 3-7, 2024.   This amazing 3-day conference (with 2 optional days of workshops) offers over 130 sessions across multiple tracks, alongside 25 workshops presented by Power Platform, Microsoft 365, Microsoft Teams, Viva, Azure, Copilot and AI experts. There's a great array of speakers, including the likes of Nirav Shah, Naomi Moneypenny, Jason Himmelstein, Heather Cook, Karuana Gatimu, Mark Kashman, Michelle Gilbert, Taiki Y., Kristi K., Nate Chamberlain, Julie Koesmarno, Daniel Glenn, Sarah Haase, Marc Windle, Amit Vasu, Joanne C Klein, Agnes Molnar, and many more.   Click the image below for more #Techcon365 intel and register today!     For more events, click the image below to visit the Microsoft Community Days website.      

Tuesday Tip | Update Your Community Profile Today!

It's time for another TUESDAY TIPS, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.   We're excited to announce that updating your community profile has never been easier! Keeping your profile up to date is essential for staying connected and engaged with the community.   Check out the following Support Articles with these topics: Accessing Your Community ProfileRetrieving Your Profile URLUpdating Your Community Profile Time ZoneChanging Your Community Profile Picture (Avatar)Setting Your Date Display Preferences Click on your community link for more information: Power Apps, Power Automate, Power Pages, Copilot Studio   Thank you for being an active part of our community. Your contributions make a difference! Best Regards, The Community Management Team

Hear what's next for the Power Up Program

Hear from Principal Program Manager, Dimpi Gandhi, to discover the latest enhancements to the Microsoft #PowerUpProgram, including a new accelerated video-based curriculum crafted with the expertise of Microsoft MVPs, Rory Neary and Charlie Phipps-Bennett. If you’d like to hear what’s coming next, click the link below to sign up today! https://aka.ms/PowerUp  

Super User of the Month | Ahmed Salih

We're thrilled to announce that Ahmed Salih is our Super User of the Month for April 2024. Ahmed has been one of our most active Super Users this year--in fact, he kicked off the year in our Community with this great video reminder of why being a Super User has been so important to him!   Ahmed is the Senior Power Platform Architect at Saint Jude's Children's Research Hospital in Memphis. He's been a Super User for two seasons and is also a Microsoft MVP! He's celebrating his 3rd year being active in the Community--and he's received more than 500 kudos while authoring nearly 300 solutions. Ahmed's contributions to the Super User in Training program has been invaluable, with his most recent session with SUIT highlighting an incredible amount of best practices and tips that have helped him achieve his success.   Ahmed's infectious enthusiasm and boundless energy are a key reason why so many Community members appreciate how he brings his personality--and expertise--to every interaction. With all the solutions he provides, his willingness to help the Community learn more about Power Platform, and his sheer joy in life, we are pleased to celebrate Ahmed and all his contributions! You can find him in the Community and on LinkedIn. Congratulations, Ahmed--thank you for being a SUPER user!

Tuesday Tip: Getting Started with Private Messages & Macros

Welcome to TUESDAY TIPS, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.   As our community family expands each week, we revisit our essential tools, tips, and tricks to ensure you’re well-versed in the community’s pulse. Keep an eye on the News & Announcements for your weekly Tuesday Tips—you never know what you may learn!   This Week's Tip: Private Messaging & Macros in Power Apps Community   Do you want to enhance your communication in the Community and streamline your interactions? One of the best ways to do this is to ensure you are using Private Messaging--and the ever-handy macros that are available to you as a Community member!   Our Knowledge Base article about private messaging and macros is the best place to find out more. Check it out today and discover some key tips and tricks when it comes to messages and macros:   Private Messaging: Learn how to enable private messages in your community profile and ensure you’re connected with other community membersMacros Explained: Discover the convenience of macros—prewritten text snippets that save time when posting in forums or sending private messagesCreating Macros: Follow simple steps to create your own macros for efficient communication within the Power Apps CommunityUsage Guide: Understand how to apply macros in posts and private messages, enhancing your interaction with the Community For detailed instructions and more information, visit the full page in your community today:Power Apps: Enabling Private Messaging & How to Use Macros (Power Apps)Power Automate: Enabling Private Messaging & How to Use Macros (Power Automate)  Copilot Studio: Enabling Private Messaging &How to Use Macros (Copilot Studio) Power Pages: Enabling Private Messaging & How to Use Macros (Power Pages)

Users online (5,088)