cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PDT2017
Helper II
Helper II

Department Approval (participation) Question

Hello All, 

I am attempting to build a flow based on the following process below, but I am stuck on how to set up the condition or switch once the responses are received. Essentially, we create a workbook request through power automate based on form submission. The requesting department would fill out the form to departments they selected to be affected via the form. Through the approval, the affected departments would select whether they wanted to participate or not. Those who selected yes would be added to a team to complete a checklist and add documents. Those who selected need more info would be added to a chat with the adaptive card to schedule a meeting, review documentation, etc. If all selected no, it would close out the request. 

 

Appreciate any thoughts and ideas! 

PDT2017_0-1649363241943.png

 

8 REPLIES 8
Rhiassuring
Super User
Super User

Hi there, 

I want to make sure I have this straight - I'm a bit thrown off by the word "workbook" in this (because of Excel connotations), so I am going to ignore it for now. 

I have a few questions, based on this understanding. (And I am starting with a single department to understand the flow, in the diagram.) 

Rhiassuring_0-1649392813986.png

 

Questions:

 

Is this selection made on a Microsoft Form?

What happens if the request is for Marketing and IT, and Marketing says "No" but IT says "Yes" to participating. Should someone be notified, or an amendment made? Does the request have to be resubmitted?

If both say "Yes" to participating, should they have any assignments in the MS Team? (You mentioned checklists that need to be filled out.) 

If both Marketing & IT say "Need More Info", are they added to the same chat with the adaptive card, or are they separated based on department? Is this a never-ending same chat every time situation? 

 

Cheers,


Rhia

______________________________________________________________


Did this answer your question? Please mark it as the solution.
Did it contribute positively towards finding the final solution? Please give it a thumbs up.

I answer questions on the forum for 2-3 hours every Thursday!



PDT2017
Helper II
Helper II

Thanks for responding! Essentially the workbook is just a word document prefilled by the MS Form responses and converted into a PDF document.

The goal is to start a “policy workbook” to introduce a new policy or change an existing department.

 

The requesting department would fill out the MS form and select the affected departments on the form and add in the policy information.

PDT2017_7-1649425972464.png

PDT2017_8-1649425986830.png

 

Code

PDT2017_9-1649426026549.png

The “policy workbook” gets automated in a PDF with the form responses and updates our SharePoint list (tracker).

PDT2017_10-1649426193109.pngPDT2017_11-1649426217158.png

My goal is to send the approval with the attached workbook from the requesting department to the departments affected.

PDT2017_12-1649426250515.png

 

PDT2017_13-1649426264245.png

From your example, if the Marketing department said “no” and IT said “yes,” the IT department would proceed to be added to the channel with the requesting department and begin an MS Planner checklist and submit other documentation.

The Requesting department would be notified (via email) that the marketing department said “NO” to participate and be provided the comments as to why not. Then, they would have to resubmit the request to this department to start again (Unless it’s another option).

 

If IT says they “needed more information,” they would be added to an MS Teams chat (with the persons representing that department) with the requesting department to discuss scheduling a meeting or quickly clarify the more information required with the attachment (hopefully using the adaptive card).

 

If they say they need more information and it’s discussed, the chat should go away. If they proceed, everything would reroute to saying yes to the approval, and any further discussion would be in the channel created.

Rhiassuring
Super User
Super User

Oh I see! It's a policy / procedure shindig. I gotcha now. How is it going with the Approvals - will all the departments respond within the 30 day limit of whether they will or will not participate? (That is my first concern so I want to validate it...) Are you emailing individuals of the departments, or, a department email address?

Okay, let's see, how would I deal with this - I'm going to assume everyone responds within 3 days. Hmm. I hate long-running flows, so I would probably split it into Getting the Approvals, logging them into a list (because you can't really access approvals any other way yet - the MS Graph team is working on it, as I understand), and then having a Flow trigger on that list to identify the folks who said "Request More Info", and doing a "For Each" on them to add them into their chats, and then on the folks who said "Approve", drop them into the Team. The "Request More Info" folks would maybe have a button on the adaptive card that's along the lines of "I get it now, I approve" that would add a line into that Approval list, and trigger the "add into Teams" workflow.

That's my first thought - but - this is a whole out requirements gathering jamboree, haha, lots of considerations. What were your initial thoughts on approach? Is my idea similar?


 

 

______________________________________________________________


Did this answer your question? Please mark it as the solution.
Did it contribute positively towards finding the final solution? Please give it a thumbs up.

I answer questions on the forum for 2-3 hours every Thursday!



PDT2017
Helper II
Helper II

Exactly! No, to the 30 day limit. I would say if they haven’t responded in two weeks it will close (or pause the approval). I definitely want to send them reminders to review the approval after 1 day, 3 days, and a week before it warns them of closing (maybe in a later phase down the road lol going preptty big for my first flow already.)

 

It will be individuals representing each department that will be emailed. 

I did create a MS List that captures the workbook number and what phases it’s in and the submission details for the “Master List” so maybe I could send the approvals through there based on the response. 

I think splitting the responses and then creating the conditions is going to be the best way with having many different outcome scenarios. Otherwise I think I would have a whole lot of if then statements in conditions as I would have to list all scenarios individually. 

I LOVE your idea on the adaptive card action. That’s perfect for the Need More Info. 

Appreciate the feedback. 

Rhiassuring
Super User
Super User

This is your FIRST flow!? Nicely done - pretty impressive! 
Let us know how it goes - you have lots of pieces here to work through. 

______________________________________________________________


Did this answer your question? Please mark it as the solution.
Did it contribute positively towards finding the final solution? Please give it a thumbs up.

I answer questions on the forum for 2-3 hours every Thursday!



Thank you! The pieces of this puzzle are starting to fit together! I was able to get the approval responses individually on the MS List.

 

PDT2017_0-1649796828477.png

 

 

I was also able to have it add those who accepted to the team based on the response and the “Workbook number” it assigns. Then it creates the channel and sends the adaptive card.

 

PDT2017_1-1649796828481.png

 

 

Still plenty of piecing to do, but it is coming together nicely!

Rhiassuring
Super User
Super User

Great work! 

______________________________________________________________


Did this answer your question? Please mark it as the solution.
Did it contribute positively towards finding the final solution? Please give it a thumbs up.

I answer questions on the forum for 2-3 hours every Thursday!



PDT2017
Helper II
Helper II

Thank you! I have a question about the apply each to the condition. I notice when I included the create a channel option inside the apply each, it kept trying to duplicate the channel for each person on the list. I moved it outside of the apply each and it works great. My question is however if someone selected decline, would it attempt to still create a channel and post a message since I moved it on the outside? 

 

PDT2017_0-1649859440299.png

PDT2017_2-1649859676511.png

 

PDT2017_1-1649859610797.png

 

Helpful resources

Announcements

Celebrating the May Super User of the Month: Laurens Martens

  @LaurensM  is an exceptional contributor to the Power Platform Community. Super Users like Laurens inspire others through their example, encouragement, and active participation. We are excited to celebrated Laurens as our Super User of the Month for May 2024.   Consistent Engagement:  He consistently engages with the community by answering forum questions, sharing insights, and providing solutions. Laurens dedication helps other users find answers and overcome challenges.   Community Expertise: As a Super User, Laurens plays a crucial role in maintaining a knowledge sharing environment. Always ensuring a positive experience for everyone.   Leadership: He shares valuable insights on community growth, engagement, and future trends. Their contributions help shape the Power Platform Community.   Congratulations, Laurens Martens, for your outstanding work! Keep inspiring others and making a difference in the community!   Keep up the fantastic work!        

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 (6,317)