cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Labnerd
Frequent Visitor

Assigning Multiple Persons from Multiple Departments to PDF Documents

Hello everyone,

 

I've developed a workflow that involves uploading a Word document to a document library. Within this library, there are various columns that I populate with data. One of these columns is labeled "Afdeling," (=Dutch for Departement) which allows for multiple selections (QA, QC,......). Once the Word document is generated and all the necessary data is entered, it goes through an approval process. Once approved, the document is then converted to a PDF format and transferred to a separate document library.

 

 

Labnerd_0-1691443133530.png

 

 

Now, my objective is to establish a system for training individuals using the PDF documents. Specifically, I want to provide training to individuals belonging to the departments listed in the "Afdeling" column. To accomplish this, I've set up a distinct list where I've outlined each department along with the associated personnel.

Labnerd_1-1691443133533.png

 

 

 

In the PDF library, I've added a person column that allows for multiple selections and is labeled "Trainee."

 

Labnerd_2-1691443133535.png

 

 

 

 

However, I've encountered a hurdle at this point. I've designed a workflow that cross-references the separate list to identify the relevant department for the current document. It then retrieves the email addresses of the individuals in that department and populates the "Trainee" column in the PDF library. The workflow functions smoothly when dealing with a single department. However, when I attempt to include multiple departments, the workflow only captures individuals from the last department specified.

 

My question is: What adjustments should I make to ensure that all individuals from the relevant departments are correctly captured and displayed?

 

Labnerd_3-1691443133566.png

 

 

Thank you for your assistance.

7 REPLIES 7

Can you clarify a few things in your workflow?

  • What's the reason you are creating a file than moving it? Is there a reason you can't create the file right in the proper folder? I may have missed something in your original post.
  • Confirming that if multiple departments are selected, you want all employees assigned to those departments in your SharePoint list are to be assigned to those documents.
  • Is there a reason your SP list doesn't list each employee as a record and then is assigned a dept (or departments)? Only asking because you may want to consider having an employee tracker rather than a dept tracker as you could potentially use it more flows. 
Labnerd
Frequent Visitor

I'm quite new to the whole world of SharePoint and Power Automate. It's something I've only recently come across, and now I'm trying to convert some old paper-based workflows into a digital format.

 

  • The reason behind having two separate document libraries is to ensure that not everyone has access to the library containing the word files, where we actually create the procedures. This separation is in place to prevent any unauthorized modifications. However, there are a select few who do possess access to these word files. They're the ones who can make changes to the procedures. Whenever changes are made, these need to go through a verification and approval process by another individual. Once that's completed, a corresponding PDF file is generated, effectively overwriting the previous version in the folder. This approach is aimed at maintaining the practice of having everyone refer only to the most recently approved procedure.
  • Yes, that's accurate.
  • I hadn't considered it from that perspective. Since I'm still very much in the learning phase of all this, I appreciate your insight.
    If I understand you correctly, you're suggesting the creation of a list comprising columns like "Persons" and "Department." Then, each row would contain an individual's name, accompanied by the department(s) they belong to.
    This definitely sounds feasible. If you believe this method will prove more user-friendly and efficient down the line, I'm certainly open to adopting it.

I'm quite new to the whole world of SharePoint and Power Automate. It's something I've only recently come across, and now I'm trying to convert some old paper-based workflows into a digital format.

 

  • The reason behind having two separate document libraries is to ensure that not everyone has access to the library containing the word files, where we actually create the procedures. This separation is in place to prevent any unauthorized modifications. However, there are a select few who do possess access to these word files. They're the ones who can make changes to the procedures. Whenever changes are made, these need to go through a verification and approval process by another individual. Once that's completed, a corresponding PDF file is generated, effectively overwriting the previous version in the folder. This approach is aimed at maintaining the practice of having everyone refer only to the most recently approved procedure.
  • Yes, that's accurate.
  • I hadn't considered it from that perspective. Since I'm still very much in the learning phase of all this, I appreciate your insight.
    If I understand you correctly, you're suggesting the creation of a list comprising columns like "Persons" and "Department." Then, each row would contain an individual's name, accompanied by the department(s) they belong to.
    This definitely sounds feasible. If you believe this method will prove more user-friendly and efficient down the line, I'm certainly open to adopting it.

SP Employee List

Yes, the idea would be each row would be for an individual and you can then use a Department column to assign them to appropriate departments. You could even include another column (person) for their supervisor. Again this would make the list a lot more usable for many other cases.

 

Document Permissions

Permissions can be granted when the file is created (automatically). If you take this approach you can save yourself the extra step of needing to move a file as well. 

 

I recently uploaded a tutorial that shows how to grant item-level permissions to a list. This same concept can be applied to files.

 

Alternatively, you can set specific permissions on a folder that contains all the Word documents with appropriate access granted to those who can make modifications. Ideally, these Word documents should be stored on a Team site. A site specifically designed for procedures where all team members are granted edit access so they can easily edit and collaborate on documents. This makes it a lot easier to manage permissions when done this way. 

 

When the file is ready to be PDF'd it should then be moved to a Communication site. The Comms site is where all users are granted read access (few granted edit access).

 

More on the difference between a Team Site and a Communication Site in this video tutorial.

 

Hope this helps!

 

Thank you for your response.

 

I appreciate your suggested solution, and I implemented it. However, I still have an unresolved concern related to the training aspect.

 

After conducting further research, I came across a YouTube video that shows what I want. Specifically, I'm interested in the content at the 1:34 mark, as it appears to address my issue of tracking who has read and confirmed the new procedure.

 

To address this, I created a new SharePoint list dedicated to training records. Additionally, I set up a Power Automate flow that triggers exclusively when an new procedure is approved. And adds an item to the list.

Labnerd_0-1691760986455.png

 

The functionality is working smoothly, consistently generating new list items with titles reflecting the "document name" and its associated version number. 

 

However, a new question has arisen: Is it possible to create a filter that exclusively displays the most recent version of each document? If so, I'm curious about the process of implementing this filter. Because now it keeps showing all versions.

Labnerd_1-1691760986460.png

 

Or alternatively, do I need to remove the previous version? But then I keep losing the information of who read which version when. I was think something like delete item when the title is "document name" "version number - 1". But if this is the recommended approach, can you explain me how I should do it?

I wouldn't recommend you remove previous versions. It would defeat the purpose of tracking who's read the version. 

 

Alternatively you could add a couple columns to store the version number and one to store the document name only (no version). You can adjust your SP list view to group by document name then by version (sorting by version number in descending order).

 

Another way you could handle it would be to add a YES/NO column to your SP list in addition to the two columns above. 

 

If an item is marked YES it would be considered the latest version. Adjust your SP list view to add a filter for that column.

 

In your flow you would have work in logic to uncheck the old versions and check new versions. With a separate column to store the version number this would make it easier to do. 

Thank you very much Creativopinion for your answers. 

 

You put me on the right track and I was able to build the flow and list I wanted.

 

 

 

 

Helpful resources

Announcements

Community will be READ ONLY July 16th, 5p PDT -July 22nd

Dear Community Members,   We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd.   During this period, members will not be able to Kudo, Comment, or Reply to any posts.   On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities.   What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!

Summer of Solutions | Week 4 Results | Winners will be posted on July 24th

We are excited to announce the Summer of Solutions Challenge!    This challenge is kicking off on Monday, June 17th and will run for (4) weeks.  The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions to as many questions as you can. Answers can be provided in all the communities.    Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”)   - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024   Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods.  You must enter into each weekly Entry Period separately.   How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different.    Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers.  At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing.  Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner.  A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random.  Individuals will be contacted before the announcement with the opportunity to claim or deny the prize.  Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners.   Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event.   ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE**   Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Community MembersNumber SolutionsSuper UsersNumber Solutions Deenuji 9 @NathanAlvares24  17 @Anil_g  7 @ManishSolanki  13 @eetuRobo  5 @David_MA  10 @VishnuReddy1997  5 @SpongYe  9JhonatanOB19932 (tie) @Nived_Nambiar  8 @maltie  2 (tie)   @PA-Noob  2 (tie)   @LukeMcG  2 (tie)   @tgut03  2 (tie)       Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 2: Community MembersSolutionsSuper UsersSolutionsPower Automate  @Deenuji  12@ManishSolanki 19 @Anil_g  10 @NathanAlvares24  17 @VishnuReddy1997  6 @Expiscornovus  10 @Tjan  5 @Nived_Nambiar  10 @eetuRobo  3 @SudeepGhatakNZ 8     Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 3:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji32ManishSolanki55VishnuReddy199724NathanAlvares2444Anil_g22SudeepGhatakNZ40eetuRobo18Nived_Nambiar28Tjan8David_MA22   Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 4:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji11FLMike31Sayan11ManishSolanki16VishnuReddy199710creativeopinion14Akshansh-Sharma3SudeepGhatakNZ7claudiovc2CFernandes5 misc2Nived_Nambiar5 Usernametwice232rzaneti5 eetuRobo2   Anil_g2   SharonS2  

Check Out | 2024 Release Wave 2 Plans for Microsoft Dynamics 365 and Microsoft Power Platform

On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners.    The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights.    Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.    

Updates to Transitions in the Power Platform Communities

We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for.  We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer.   Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together.   Here's to new beginnings and endless possibilities!   If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport.   To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages

Users online (878)