List my plans action for Planner in Flow

%3CLINGO-SUB%20id%3D%22lingo-sub-287611%22%20slang%3D%22en-US%22%3EList%20my%20plans%20action%20for%20Planner%20in%20Flow%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-287611%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20are%20setting%20up%20a%20flow%20to%20enable%20users%20that%20manage%20a%20specific%20O365%20group%20to%20pre-populate%20the%20linked%20Planner%20with%20tasks%20stored%20in%20an%20Excel%20file.%20In%20short%2C%20the%20flow%20consists%20of%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CUL%3E%3CLI%3ESending%20an%20Excel%20file%20to%20a%20mail%20address%20(let's%20say%2C%20user%20X)%3C%2FLI%3E%3CLI%3EThe%20file%20is%20stored%20onto%20user%20X's%20OneDrive%3C%2FLI%3E%3CLI%3EA%20second%20flow%20then%20kicks%20in%20that%20reads%20the%20Excel%20and%20adds%20the%20tasks%20to%20Planner%20(by%20first%20looking%20up%20the%20plans%20where%26nbsp%3Buser%20X%20is%20a%20member)%26nbsp%3B%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20already%20saw%20that%20in%20order%20to%20achieve%20this%2C%20the%20recipient%20account%20of%20the%20Excel%20file%20(user%20X)%20needs%20to%20be%20member%20of%20the%20O365%20group%20for%20which%20you%20want%20to%20add%20the%20Planner%20tasks.%20However%2C%20when%20running%20our%20flow%2C%20Flow%20does%20not%20find%20all%20Plans%20when%20it%20executes%20the%20%22List%20my%20Plans%22%20action.%20It%20now%20appears%20that%2C%20in%20order%20to%20get%20the%20correct%20result%20for%20the%20%22List%20my%20plans%22%20action%2C%20the%20user%20for%20whom%20you%20are%20listing%20the%20plans%20needs%20to%20have%20accessed%20the%20plans%20first%2C%20i.e.%20%3CEM%3Eyou%20need%20to%20sign%20on%20with%20that%20account%20(user%20X)%2C%20open%20Planner%20and%20open%20the%20plan%20in%20question.%3C%2FEM%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20is%20a%20bit%20of%20a%20problem%20as%20our%20%22user%20X%22%20is%20a%20service%20account%20that%20we%20use%20to%20handle%20a%20number%20of%20other%20flows%2C%20so%20it's%20not%20a%20real%20user.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20a%20way%20around%20this%3F%20And%20if%20not%2C%20is%20there%20a%20way%20to%20be%20alerted%20(by%20means%20of%20a%20flow%20maybe)%20when%20%22user%20X%22%20has%20been%20added%20to%20this%20or%20that%20Plan%2C%20so%20that%20we%20can%20log%20in%20to%20that%20Plan%20with%20the%20%22user%20X%22%20account%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%2C%3C%2FP%3E%3CP%3EFilip%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-287611%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Flow%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-391510%22%20slang%3D%22en-US%22%3ERe%3A%20List%20my%20plans%20action%20for%20Planner%20in%20Flow%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-391510%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F240269%22%20target%3D%22_blank%22%3E%40Filip%20Wuyts%3C%2FA%3E%26nbsp%3Bwould%20a%20%22Do%20until%22%20action%20solve%20this%20for%20you%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Screenshot%202019-03-31%20at%2023.53.47.png%22%20style%3D%22width%3A%20707px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F100696i35F50A75201FED7A%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Screenshot%202019-03-31%20at%2023.53.47.png%22%20alt%3D%22Screenshot%202019-03-31%20at%2023.53.47.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hi,

 

We are setting up a flow to enable users that manage a specific O365 group to pre-populate the linked Planner with tasks stored in an Excel file. In short, the flow consists of:

 

  • Sending an Excel file to a mail address (let's say, user X)
  • The file is stored onto user X's OneDrive
  • A second flow then kicks in that reads the Excel and adds the tasks to Planner (by first looking up the plans where user X is a member) 

 

We already saw that in order to achieve this, the recipient account of the Excel file (user X) needs to be member of the O365 group for which you want to add the Planner tasks. However, when running our flow, Flow does not find all Plans when it executes the "List my Plans" action. It now appears that, in order to get the correct result for the "List my plans" action, the user for whom you are listing the plans needs to have accessed the plans first, i.e. you need to sign on with that account (user X), open Planner and open the plan in question.

 

This is a bit of a problem as our "user X" is a service account that we use to handle a number of other flows, so it's not a real user.

 

Is there a way around this? And if not, is there a way to be alerted (by means of a flow maybe) when "user X" has been added to this or that Plan, so that we can log in to that Plan with the "user X" account?

 

Thank you,

Filip

1 Reply

@Filip Wuyts would a "Do until" action solve this for you?

 

Screenshot 2019-03-31 at 23.53.47.png