cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RichRandle
Level: Powered On

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 Staff CarlosFigueira
Power Apps Staff

Re: Create new Outlook Task - returning the Task ID

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 Staff CarlosFigueira
Power Apps Staff

Re: Create new Outlook Task - returning the Task ID

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

RichRandle
Level: Powered On

Re: Create new Outlook Task - returning the Task ID

HI Carlos,

 

Perfect - Thanks

Helpful resources

Announcements
thirdimage

Power Platform 24

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

Top Solution Authors
Top Kudoed Authors
Users online (5,662)