cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

Create new Outlook Task - returning the Task ID

Hi ,  I have sucessfully used the OutlookTasks connector to create a Outlook Task from PowerApps.  What I want to do is to be able to store the ID of the task created in so I can reference the again in the App.  

 

Is there a way to do this?  I was hoping OutlookTasks.CreateTask() would return the ID.

1 ACCEPTED SOLUTION

Accepted Solutions
Power Apps
Power Apps

When you call OutlookTasks.CreateTasks it returns the task it created as a result, so you can set that result in a variable and access the Id property to get the new task id.

 

For example, if you have this expression in a button:

Set(newTask, OutlookTasks.CreateTask("Test task"))

Then once the task creation succeeds you can access the new task id via

newTask.Id

View solution in original post

2 REPLIES 2
Power Apps
Power Apps

When you call OutlookTasks.CreateTasks it returns the task it created as a result, so you can set that result in a variable and access the Id property to get the new task id.

 

For example, if you have this expression in a button:

Set(newTask, OutlookTasks.CreateTask("Test task"))

Then once the task creation succeeds you can access the new task id via

newTask.Id

View solution in original post

HI Carlos,

 

Perfect - Thanks

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

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!

Top Solution Authors
Top Kudoed Authors
Users online (49,106)