cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

PowerApps, Planner task's description

I'm building canvas app with Planner connector.

I successfully created a task as below;

Planner.CreateTaskV2(Planid,Title,{bucketId:Sid, startDateTime:date , dueDateTime:date , assignments:userId})

 

But how I can write "Description" of tasks?

Based on the docs.microsoft.com, cannot find any explanation regarding "Description" part.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: PowerApps, Planner task's description

Hi @Sam44 

The QuickTask demo app that @ToddBaginski demonstrates works on the same basis - it creates the task and updates the description afterwards.

But rather than update the task description immediately afterwards, the demo app updates the description on a timer, as shown in the screenshot beneath.

 

image.png  

In the example formula I gave above, the formula calls the Set function to store the newly created task in a variable called newTask. We can then retrieve the newly created id through "newTask.id" and this is what we refer to when we call UpdateTaskDetails.

View solution in original post

5 REPLIES 5
Highlighted
Super User
Super User

Re: PowerApps, Planner task's description

Hi @Sam44 

Unfortunately, it doesn't seem possible to create a task with a description.

The workaround I would suggest is to add a new task, and to update it immediately afterwards with the description.

The formula you would use looks like this:

Set(newTask,
Planner.CreateTaskV2(Planid,Title,{bucketId:Sid, startDateTime:date , dueDateTime:date , assignments:userId})
);
Planner.UpdateTaskDetails(newTask.id, {description:"Here is my Task Description...."})

Hope that helps.

Highlighted
Helper III
Helper III

Re: PowerApps, Planner task's description

Hi @timl 

Thanks for your help!

Good idea to update task immediately right after creating task but how we get "Id" to update the task without gallery or some?

I've checked this sample app : https://www.youtube.com/watch?v=9c2NMT74xUA but cannot find how he handle this since seems this app create task with description....

Any idea?

Highlighted
Super User
Super User

Re: PowerApps, Planner task's description

Hi @Sam44 

The QuickTask demo app that @ToddBaginski demonstrates works on the same basis - it creates the task and updates the description afterwards.

But rather than update the task description immediately afterwards, the demo app updates the description on a timer, as shown in the screenshot beneath.

 

image.png  

In the example formula I gave above, the formula calls the Set function to store the newly created task in a variable called newTask. We can then retrieve the newly created id through "newTask.id" and this is what we refer to when we call UpdateTaskDetails.

View solution in original post

Highlighted
Helper III
Helper III

Re: PowerApps, Planner task's description

@timl,

Got it!! Now I understand why you put the statement within a Set formura!!

I really appriciate your help!!

 

Thank you.

Highlighted
Regular Visitor

Re: PowerApps, Planner task's description

Hi Sam did you have any issues getting the description to come through? Im reciving an error stating that the newTask.id has an invalid parameter. 

Helpful resources

Announcements
Ignite

Microsoft Ignite

This will be a conference that you do not want to miss!

secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (4,325)