cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Getting planner task details

Dear all,

 

another newbie question - I am afraid

 

I linked planner to my powerapps. i then created a gallery. with Planner.ListMytasks().value I can see all tasks assigned to me. so far . . . great.

Now I want to show navigate to a next page from the gallery to see the details of a selected task (From the gallery).  How can I do that? 

 

Thanks a lot for the help

 

1 ACCEPTED SOLUTION

Accepted Solutions

I found this one somewhere recently and it works great.  When you create a task you can just wrap a Collect around it and store the data (such as the TaskID) in a collection that can be easily called with CollectionTask.ID whereever you need it. 

 

I used this to create new tasks and immediately update their details (description specifically) without having to manually take two steps to do it.

View solution in original post

11 REPLIES 11
dimi
Impactful Individual
Impactful Individual

Hey there

 

Have a look at this: https://powerusers.microsoft.com/t5/General-Discussion/powerapps-and-planner-task/td-p/47785

Thanks to patrick_S_hexa  !

 

Quote from him:

On planner First dropdown list all plan you can access Planner.ListMyPlans() => (this would be your gallery)

When you select a plan in this list second drop down display all buckets from this plan Planner.ListBuckets(Plan.Selected.id) => this would be your second screen with another gallery

Third drop down list tasks from the selected plan Planner.ListTasks(Plan.Selected.id)

 

 

Anonymous
Not applicable

Thanks a lot, I appreciate the fast answer, and yes, I saw your posting regarding this. However, I do not want to use drop down menues. the background is a CRM APP, where people can write a visit report. so once a report is written, I would like to create tasks out of that. Once a task is created, I would like to get the ID of that task, save it and later use the ID to access the task directly and mark it as finished or even delete it. hope it makes sense apologies if I was not clear in the original posting.
dimi
Impactful Individual
Impactful Individual

Have you taken a look at his PowerApp example that he is sharing in provided link?

You can change the DropDown to a Gallery Smiley Very Happy

 

 

Anonymous
Not applicable

Yes, I did. However, I do not want to select a task first, but to get the task ID straight after creating a task. I now just use a filter function to filter again all tasks against the newly title of created ones to get the task ID. Seems like a waste of computing power. So I wondered if there is no easier way to automatically obtain the task id, after I created a new task.
dimi
Impactful Individual
Impactful Individual

As far as I am conerned there is no pre built way to retrieve the Task Id after insertion.

 

You could use the  MS Flow connector for planner and write this Id in a Source (SharePoint list or Sql, ...).

You can than have a tracking of everything if constructed properly.

 

Planner docs can be found here

 

Let me know if everything is clear.

Anonymous
Not applicable

Thanks my friend, you are right, there is no direct way to get the task ID after creating it. I am now simply list my tasks and filter it with the title of the newly created task to get the ID. Not really elegant. Any idea how to do it with flow?
dimi
Impactful Individual
Impactful Individual

You can use the Flow "when a task is created"  and retrieve the Id of the Task (or any available property or action)

See below screenshot/attachment, try it out and if you are stuck somewhere let us knowCat LOL

Anonymous
Not applicable

Thanks Dimi,

 

I am this week away with no access to my PC. Will try it this weekend and let you know. So basically I can use a command like

MYnewtaskID = MYFLOW (MyPLANID, MyTASKNAME), where I supply the plan I’d and the taskname?

task you

dimi
Impactful Individual
Impactful Individual

Hello there, es something alon those lines, have a look at these 2 articles that elaborate more on returning data from a Flow to a PowerApp.

 

1) https://flow.microsoft.com/en-us/blog/return-data-to-powerapps/

2) https://sergeluca.wordpress.com/2018/04/22/powerapps-returning-values-from-flow/

 

Good luck! If you have questions, post them here 😉

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,034)