web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Print selected items f...
Power Automate
Unanswered

Print selected items from a form into approval notification.

(0) ShareShare
ReportReport
Posted on by 15

I have a sequential approval flow for a submitted list item. When a user submits a document, they select departments that the document impacts (45 total departments to choose from). I would like to show only the impacted departments in the approval notification for each approval. 

 

The approval flow is sequential.

 

Would like the formatting to be:
Effected Depts: DeptX, DeptY, etc

 

By no means am I a coding expert but rather know enough to be dangerous so please explain in simple newbie terms.

Categories:
I have the same question (0)
  • Andrew_J Profile Picture
    1,962 Moderator on at

    @KHines 

     

    The subject is confusing but I belive I understand the body of the query.  But to ensure I have this correct I shall put it my own words:

     

    An internal user uses a SharePoint List to upload one or many docments.  In the list is a multi select the departments that need to review the document or documents.

     

    And you want to send an individual approval to each department to aprove or not as the case maybe.

     

    If this is the case then we maybe able to assist but you need to give me more information on the approval process, like do all of the departments need to approve the documents before they can be issued externally or would five of ten be good to issue.  Do certian departments need to approve first with others being last.   How are any changes being undertaken and where will thse take place.

     

    I do not want to provide an answer that may not give you the right information but looking at this it is likley that I will be unable to complete this.  And you being a New Member this type of Flow seems to a very complicated one to start off on.

     

    Regards,

     

    Andrew

     

     

     

  • KHines Profile Picture
    15 on at

    A person uploads a document and provides information about the document in a form ie; first suspense date, action date, summary of the document etc. They then select departments that the document effects or has tasks to accomplish.

     

    The approvers are established and are not affected by the inputs. 

     

    Approvers would like to know which depts are effected/tasked when approving.

    I would like to list those selected depts in the approval notification.

  • Andrew_J Profile Picture
    1,962 Moderator on at

    @KHines 

     

    So that is helping more.  Your List has the standard entry form per the below:

     

    Andrew_J_0-1712336557414.png

     

    They upload the attachment that requires approval and complete the necessary information that is required. 

     

    If as you said above you have 45 departments that need to be involved in the process, I see that as not being a problem but it is who in that department receives the approval request and then how the results are recorded back in the master list before the document can be issued.  If you say we use a shared email of for department.01@domain.com then that will go to many.  But an approval needs to go to person1@domain.com and person2@domain.com.  Therefore others or I need to know this before we can proceed.  But this then says to me that I am going to do your work for you.  And so far I have spent 30-60 minutes on this.  However if I have more information I can advise and send you in the right direction to try yourself.  Look at the following for this:

     

    TaskFLOW Operation 
    Collect Data and FileSP List 
    Send for ApprovalSP List and Aproval Action 
    Record ResponcesSP List 
       

     

    That is why I said this seems a simple process to talk about, it is less so when you try to put the automation in. 

     

    Regards,

     

    Andrew

  • KHines Profile Picture
    15 on at

    See the form below:

    KHines_0-1712338841592.png

    When a user selects/toggles those depts I want to notify the approver that those depts are impacted. Regardless of which depts are toggled the notification always goes to the same approver. I want to show the approver which depts are toggled in his approval notification.

     

    Basically what I need is an expression IF selected append depts to string to add the dynamic content to the approvers Power automate notification/email.

  • Andrew_J Profile Picture
    1,962 Moderator on at

    @KHines 

     

    That has provided me a better understanding.  But this is all about the Deptments as per the below:

    Andrew_J_1-1712339831587.png

     

    I have checked in MS Forms but cannot see a way of recreating the above.  How have you created the above and if you have used the SP List form, which column type have you used below.

    Andrew_J_0-1712339809398.png

     

    We will get there with this. 

     

    Andrew

  • KHines Profile Picture
    15 on at

    The column is a Yes/No data type.

    The form is a Power app form

    Basically what I think I need is an expression IF selected append depts to string to add the dynamic content to the approvers Power automate notification/email.

  • Andrew_J Profile Picture
    1,962 Moderator on at

    @KHines 

     

    Okay now I understand.  I will say PowerApps are not my thing.  But I think you bering with me on this if the Kudos are to be element of trust between us.

     

    The user of the PowerApp does the selection, updloads the docment, adds any other data, then presess send or submit, this populates the SP List behind.  I am assuming that each department has its own Y or N column.  You may also have a seperate SP List for the approvers of each department that is referenced by the PowerApp as I think you can have multiple sources in that package. 

     

    If the above is generally true then we need to use both SP List to construct your flow.  But I think from above that each department operates in a silo, i.e. they do not interact and are not relient on others to complete an approval before the next one starts their approval.

     

    I think you are going to need to have 45 indivual paralle branches with a condition on each to test the Y part fo the Y or N outcome of the department choice. A bit like the following:

     

    Data

     

    Andrew_J_0-1712344606011.png

    flow

    Andrew_J_1-1712344648541.png

    But you then need to refrence the list of department emails into the equation.

     

    Is the above where you were lookign to get to with this question.

     

    Regards,

     

    Andrew

  • KHines Profile Picture
    15 on at

    WOW, so once I define those departments with a true value in compose, I assume I have to append a string to build the list of depts that are selected so that my approver knows what depts are selected?

  • Andrew_J Profile Picture
    1,962 Moderator on at

    @KHines 

     

    No the compose was to check the VERY BASIC flow was working as follows:

     

    so the data for the ID 05 below was:

    Andrew_J_0-1712346061433.png

     

    The result of the flow was as follows:

    Andrew_J_1-1712346238916.png

    This proved that the BASIC FLOW worked and that parralle branches were the way to go for you.

     

    It is up to you to take forward and add the approval process in each departments branch and work out the email side of things.  As much as we are getting on okay I am not going to do all of this for you.  But do come back to me once you are much further forward and have one, two or three branches in that you have tested.

     

    Regards,

     

    Andrew

  • KHines Profile Picture
    15 on at

    Their is not a different approval branch, Im just trying to collect and collate the depts that are selected. If 10 of the 45 depts are selected I want to collect that information to add to the email.

    I want to add this information to the pictured notification below;

    Departments Selected: DEPTX, DEPTY, DEPTXX

    KHines_0-1712347067183.png

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard