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

Create outlook tasks and place them into a created folder

Hi All,

I am creating an onboarding application and have stored the lists of tasks into a Common Data Service Entity.
I have created the folder. However, I noticed that I cannot specify the folderId when creating it (Since the only parameters that can be passed are Name and GroupId).
So my issue is that I cannot store my tasks into that created folder since I cannot seem to identify it.

Additionally, these task lists will be created everytime a new employee is hired, so no values can be hard coded. 

Attached is a snippet of the function in question.

Thank you in advance for any help!

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Create outlook tasks and place them into a created folder

@ebDev 

OutlookTasks.CreateTasksFolder will return a payload of information.  If you assign that to a variable, you will have the ID.

UpdateContext({newTask: OutlookTasks.CreateTasksFolder(empLastNameInput.Text & empFirstNameInput.Text & " | Onborading")});

...
..... , folderId: newTask.Id})
...

 

Hope this gets you "back on task" Smiley Wink

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
2 REPLIES 2
Super User
Super User

Re: Create outlook tasks and place them into a created folder

@ebDev 

OutlookTasks.CreateTasksFolder will return a payload of information.  If you assign that to a variable, you will have the ID.

UpdateContext({newTask: OutlookTasks.CreateTasksFolder(empLastNameInput.Text & empFirstNameInput.Text & " | Onborading")});

...
..... , folderId: newTask.Id})
...

 

Hope this gets you "back on task" Smiley Wink

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
ebDev
Level: Powered On

Re: Create outlook tasks and place them into a created folder

thank you so much!

and that pun made my day! Smiley Happy

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 64 members 4,924 guests
Please welcome our newest community members: