cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RichRandle
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
CarlosFigueira
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
CarlosFigueira
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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (76,064)