December 27, 2024

Although Microsoft Planner has an amazing UI to update tasks, there’s a lot of added value on updating tasks automatically when things change. The “Update a Task” action opens the door to the basic information, making your life easier, especially when you have a huge backlog of tasks that you need to process.

Let’s explore the “Update a task” action and how to use it efficiently.

Where to find it?

To find it, you can search for the “Update a task” action.

Alert:
Microsoft changed the way that Power Automate displays the steps. Now you have a huge list of actions that you can search for. It’s arguable that this is simpler or not, but now I’ll only provide the search string you have to write to find the action.

It looks like this:

Usage

Let’s start with what you can’t do. In the “Update Task,” you can’t:

  1. Edit the description
  2. Add references
  3. Add checklist items.

To do this, you need to use the “Update Task Details” action. Microsoft decided to separate these actions and for a good reason. Having it all in one action would make things complex, so I enjoy this separation of responsibilities.

So let’s see what you can do. You can edit the:

  1. Title
  2. Due Date-Time
  3. Start Date-Time
  4. Progress
  5. Add assigned users
  6. Remove assigned users

Let’s look at them individually since there are some details to explore:

Title

The task title is one of the most important pieces of information since it’s the one you’ll see on a list. If you have a lot of tasks, finding a task fast is essential, so keep the title as to the point as possible.

You can only insert 255 characters. If you add more, you’ll get the following error message:

Schema validation has failed. Validation for field 'Title', on entity 'Task' has failed: The field cannot be longer than 255 characters.

255 is a fair limitation, especially for a title. If you want more, it doesn’t make sense to use the title since you won’t see all those details in the UI anyway. Instead, I recommend using the “Update Task Details” action and fill in the description.

Due & Start Date-Time

It’s a tiny detail, but it’s funny that Flow presents the Due date before the start date. I think this is because the due date is much more important than the start date for a task, but I digress.

Although there are thousands of variations of dates, we need to use the ISO format in Flow to set the correct date; the format is as follows:

  1. Year (4 digits)
  2. Month (2 digits)
  3. Day (2 digits)
  4. Hour (2 digits)
  5. Minute (2 digits)
  6. Second (2 digits)
  7. Millisecond (3 digits)

In all cases, we need the full digits. The flow will return an error if the date is not correct. For example:

But adding a zero fixes the problem.

You can’t insert only the date. You need to insert also the time, even if it’s zeros.

Finally, the milliseconds part is optional, as you’ve seen above. There’s a limit to how much you can plan your tasks 😀.

Progress

The options are defined by Microsoft Planner so you can have:

  1. Not Started
  2. In Progress
  3. Completed

Some people would like more, but Flow will return an “OpenApiOperationParameterValidationFailed” error even if you force a new value. This is because flow validates the value that you have against the possible values, and if the value is not found, it won’t allow you to proceed.

Assigned users

It’s possible to have multiple people in the Planner tasks, and this is an awesome feature. In addition, you can use Power Automate to add and remove people automatically if things change. But there are some limitations.

You can only add Office 365 users that are part of your organization. So, for example, if I try to add another user outside my organization.

I’ll get:

Referenced User or Group (MTGOMES@OUTLOOK.COM) is not found.

If you add or remove users that are already assigned or don’t exist in the Task, Power Automate won’t return an error. Instead, it will simply ignore the ones that don’t make sense.

Limitations

You can only select from the dropdown tasks that are assigned to you. This is for a good reason since there may be thousands of tasks in the combination of multiple planners, so it’s a smart move by Microsoft. You can, however, search and provide an ID for any task to change it. It’s quite rare that you’ll pick a specific task from the dropdown since tasks are quite ephemeral.

Recommendations

Here are some things to keep in mind.

Don’t generate the Process Value.

Whenever you can pick the “process” from the list and don’t create a custom value, any typo or capitalization error will return an error, and we don’t want that if you can’t, please consider the proper capitalization and ensure that the values are correct.

Name it correctly

The name is super important to have a good name for the action, especially where the tasks can be in multiple plans. Always build the name so that other people can understand what you are using without opening the action and checking the details.

Always add a comment.

Adding a comment will also help to avoid mistakes. Indicate the plan of the task, for example, and what you’re trying to achieve with the action. It’s important to enable faster debugging when something goes wrong to know your intent when you created the Flow.

Always deal with errors.

Have your Flow fail graciously and notify someone that something failed. It’s horrible to have failing Flows in Power Automate since they may go unlooked for a while or generate even worse errors. I have a template, and a template that you can use that will help you make your Flow resistant to issues. You can check all details here.

Am I missing something? Leave a comment or interact on Twitter. Let’s work together to make this reference as complete as we can

Back to the Power Automate Action Reference.

Photo by Hanna Morris on Unsplash

Manuel Gomes

I have 18 years of experience in automation, project management, and development. In addition to that, I have been writing for this website for over 3 years now, providing readers with valuable insights and information. I hope my expertise allows me to create compelling, informative content that resonates with the audience.

View all posts by Manuel Gomes →

Leave a Reply

Your email address will not be published. Required fields are marked *

Mastodon