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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (10,943)