cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Resolver II
Resolver II

To-do lists for someone else

Using regular to-do steps you can easily add a task list and create task items in that list. No problem. I want to update another person's to-do list and add tasks. The graph api beta solution seems to be able to provide that as the regular step doesn't offer the ability to add another person's ID / DisplayName, etc...

 

Regular Steps (no option for someone else's profile)

sasrsc_0-1599995877777.png

 

If I use the Http with Azure to connect with the Graph API you can do this using the beta graph to-do 
https://docs.microsoft.com/en-us/graph/api/todo-list-lists?view=graph-rest-beta&tabs=http

 

sasrsc_1-1599995931843.png

So I set this up and I can get the call to go through. I am using the ID value for someone else (not me).

 

sasrsc_2-1599995991762.png

Earlier I grab to user profiles (me and someone else)

sasrsc_3-1599996054270.png

Here's the output showing the 2 profile responses with the id's (I am Richard)

sasrsc_5-1599996260621.png

 

Here's the graph api call and you can see I am using the id value for the other person (beginning with ba2f8)

sasrsc_4-1599996174540.png

No problem, you'd think this is working normally. But the output response from the http call shows my lists and not Heath's.

What am I doing wrong? 

The ref document lists the syntax as GET /users/{id|userPrincipalName}/todo/lists

I assume that to me ... /users/+ id or the user principal name +/todo/lists.
I assume the {} isn't required. I did try it to be safe.

BTW: I am a citizen developer so excuse any dumb statements/lingo use/questions.

0 REPLIES 0

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (29,893)