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

Microsoft lists

Hey all,

 

 

I'm using Microsoft Lists as an inventory/new employee "database". But now our HR has requested  that when someone ordered something and i add this device to the list, i also add a date on which the user will receive his/her asset. But they would like this entry to popup into a outlook calendar so they are aware of this.

 

the calendar in microsoft lists is no option, because then they have 'a second place to look'..

 

any ideas how to fix this with a flow?

1 ACCEPTED SOLUTION

Accepted Solutions
Redders
Continued Contributor
Continued Contributor

Hi @MitchBrouhon,

 

You need to wrap the dynamic content in this expression

 

formatDateTime(DYNAMIC CONTENT GOES HERE,'yyyy-MM-ddTHH:mm:ss')

 

Just in case you are unsure how to do this, it's fairly straight forward

 

First select the start date or end date section of the create event

 

Then the dynamic content section is displayed, click expression

Redders_0-1663315315543.png

 

Type in

formatDateTime(

you should see it in the drop down list as you start typing it and it should also automatically add a close parenthesis too

 

Redders_1-1663315476811.png

 

 

Now click the dynamic content and add in the date dynamic content that you wanted to add

Redders_2-1663315579160.pngRedders_3-1663315589390.png

 

Now click Expression again and type in the rest of the expression ",'yyyy-MM-ddTHH:mm:ss')" (make sure that you don't add a second close parenthesis in)

 

It should now look something like but with a different field in the square brackets

formatDateTime(outputs('Get_item')?['body/TestDate'],'yyyy-MM-ddTHH:mm:ss')

 

Do the same for the other field and you should now be able to create the event automatically from the SharePoint list

 


━━━━━━━━━━━━━━━━━━━━━━━━━
If I have answered your question, please mark your post as Solved.
Solved questions helps users in the future who may have the same issue or question quickly find a resolution via search.
If you liked my response, please consider giving it a thumbs up. Thank you!

 

View solution in original post

8 REPLIES 8
Redders
Continued Contributor
Continued Contributor

Hi @MitchBrouhon ,

 

You could add a trigger for if an item is created or modified within the list and add a create event action to add to Outlook. You would be able to add the person to the required attendees, add details of the asset you are providing, the location etc. You can even connect to a specific account if the calendars are not your own i.e. if there is an assets account that is used by the business

 

A few considerations, if the list item is potentially updated from time to time, you would need to add conditions in that would only create an event when it is required rather than any time that it is modified (Without knowing reasons when it is created / modified, I would find it difficult to advise) i.e. if the item is created first without the date for the asset being populated, then you would add in that the date is not null to then create the event but if the date hasn't changed then don't create the event etc.

 

Here is a basic sample of how that could work

 

Redders_0-1663225060357.png

 

MitchBrouhon
Regular Visitor

Hi Redders,

 

 

So i would create a column 'starting date' and only when this field is entered there should be an entry in a calendar. Will this be possible? So not with every new entry

Redders
Continued Contributor
Continued Contributor

Hi @MitchBrouhon,

 

Yes and you should be able to add the same date for end date too, if not, just use an expression to addhours to the start date.

 

If the list is being updated after this has been added, you will need to add some logic in that prevents new events being created if it has already been added. For example, you "could" add a column in that changes if the assets event has been created and then it looks at that column to decide whether to create an event or not. There is probably something that you can do to look at the data before the change too to decide whether to create the event or not. 

Hi Redders,

 

I can add a condition, but i need to be able to say "when field date is filled then create calendar entry". But there is no condition "filled in yes or/no"

any idea how i could work around this?

Redders
Continued Contributor
Continued Contributor

Hi @MitchBrouhon,

 

In your condition, you would put the date dynamic content on the left hand site, choose "does not equal" in the middle and add an expression "null" in the right.

 

This will then look to say whether the change includes whether this date is populated and if so, then create the event. Remember that if the record is updated again after that and the date is still populated, then it will create a new event each time that it is modified


━━━━━━━━━━━━━━━━━━━━━━━━━
If I have answered your question, please mark your post as Solved.
Solved questions helps users in the future who may have the same issue or question quickly find a resolution via search.
If you liked my response, please consider giving it a thumbs up. Thank you! 

Hi Redders,

 

we are close but the automated flow keeps giving me issues.

i have a coluln in my list "date and time" which is the only possible choice in the column section, but the flow gives following error to the field;

 

MitchBrouhon_0-1663307051298.png

 

Redders
Continued Contributor
Continued Contributor

Hi @MitchBrouhon,

 

You need to wrap the dynamic content in this expression

 

formatDateTime(DYNAMIC CONTENT GOES HERE,'yyyy-MM-ddTHH:mm:ss')

 

Just in case you are unsure how to do this, it's fairly straight forward

 

First select the start date or end date section of the create event

 

Then the dynamic content section is displayed, click expression

Redders_0-1663315315543.png

 

Type in

formatDateTime(

you should see it in the drop down list as you start typing it and it should also automatically add a close parenthesis too

 

Redders_1-1663315476811.png

 

 

Now click the dynamic content and add in the date dynamic content that you wanted to add

Redders_2-1663315579160.pngRedders_3-1663315589390.png

 

Now click Expression again and type in the rest of the expression ",'yyyy-MM-ddTHH:mm:ss')" (make sure that you don't add a second close parenthesis in)

 

It should now look something like but with a different field in the square brackets

formatDateTime(outputs('Get_item')?['body/TestDate'],'yyyy-MM-ddTHH:mm:ss')

 

Do the same for the other field and you should now be able to create the event automatically from the SharePoint list

 


━━━━━━━━━━━━━━━━━━━━━━━━━
If I have answered your question, please mark your post as Solved.
Solved questions helps users in the future who may have the same issue or question quickly find a resolution via search.
If you liked my response, please consider giving it a thumbs up. Thank you!

 

It works!!! thanks a lot

Helpful resources

Announcements

Check out the Copilot Studio Cookbook today!

We are excited to announce our new Copilot Cookbook Gallery in the Copilot Studio Community. We can't wait for you to share your expertise and your experience!    Join us for an amazing opportunity where you'll be one of the first to contribute to the Copilot Cookbook—your ultimate guide to mastering Microsoft Copilot. Whether you're seeking inspiration or grappling with a challenge while crafting apps, you probably already know that Copilot Cookbook is your reliable assistant, offering a wealth of tips and tricks at your fingertips--and we want you to add your expertise. What can you "cook" up?   Click this link to get started: https://aka.ms/CS_Copilot_Cookbook_Gallery   Don't miss out on this exclusive opportunity to be one of the first in the Community to share your app creation journey with Copilot. We'll be announcing a Cookbook Challenge very soon and want to make sure you one of the first "cooks" in the kitchen.   Don't miss your moment--start submitting in the Copilot Cookbook Gallery today!     Thank you,  Engagement Team

Announcing Power Apps Copilot Cookbook Gallery

We are excited to share that the all-new Copilot Cookbook Gallery for Power Apps is now available in the Power Apps Community, full of tips and tricks on how to best use Microsoft Copilot as you develop and create in Power Apps. The new Copilot Cookbook is your go-to resource when you need inspiration--or when you're stuck--and aren't sure how to best partner with Copilot while creating apps.   Whether you're looking for the best prompts or just want to know about responsible AI use, visit Copilot Cookbook for regular updates you can rely on--while also serving up some of your greatest tips and tricks for the Community. Check Out the new Copilot Cookbook for Power Apps today: Copilot Cookbook - Power Platform Community.  We can't wait to see what you "cook" up!    

Welcome to the Power Automate Community

You are now a part of a fast-growing vibrant group of peers and industry experts who are here to network, share knowledge, and even have a little fun.   Now that you are a member, you can enjoy the following resources:   Welcome to the Community   News & Announcements: The is your place to get all the latest news around community events and announcements. This is where we share with the community what is going on and how to participate.  Be sure to subscribe to this board and not miss an announcement.   Get Help with Power Automate Forums: If you're looking for support with any part of Power Automate, our forums are the place to go. From General Power Automate forums to Using Connectors, Building Flows and Using Flows.  You will find thousands of technical professionals, and Super Users with years of experience who are ready and eager to answer your questions. You now have the ability to post, reply and give "kudos" on the Power Automate community forums. Make sure you conduct a quick search before creating a new post because your question may have already been asked and answered. Galleries: The galleries are full of content and can assist you with information on creating a flow in our Webinars and Video Gallery, and the ability to share the flows you have created in the Power Automate Cookbook.  Stay connected with the Community Connections & How-To Videos from the Microsoft Community Team. Check out the awesome content being shared there today.   Power Automate Community Blog: Over the years, more than 700 Power Automate Community Blog articles have been written and published by our thriving community. Our community members have learned some excellent tips and have keen insights on the future of process automation. In the Power Automate Community Blog, you can read the latest Power Automate-related posts from our community blog authors around the world. Let us know if you'd like to become an author and contribute your own writing — everything Power Automate-related is welcome.   Community Support: Check out and learn more about Using the Community for tips & tricks. Let us know in the Community Feedback  board if you have any questions or comments about your community experience. Again, we are so excited to welcome you to the Microsoft Power Automate community family. Whether you are brand new to the world of process automation or you are a seasoned Power Automate veteran - our goal is to shape the community to be your 'go to' for support, networking, education, inspiration and encouragement as we enjoy this adventure together.     Power Automate Community 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  

Tuesday Tip | How to Report Spam in Our Community

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.   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!   Today's Tip: How to Report Spam in Our Community We strive to maintain a professional and helpful community, and part of that effort involves keeping our platform free of spam. If you encounter a post that you believe is spam, please follow these steps to report it: Locate the Post: Find the post in question within the community.Kebab Menu: Click on the "Kebab" menu | 3 Dots, on the top right of the post.Report Inappropriate Content: Select "Report Inappropriate Content" from the menu.Submit Report: Fill out any necessary details on the form and submit your report.   Our community team will review the report and take appropriate action to ensure our community remains a valuable resource for everyone.   Thank you for helping us keep the community clean and useful!

Users online (4,845)