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" 😉

_____________________________________________________________________________________
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.

View solution in original post

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" 😉

_____________________________________________________________________________________
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.

View solution in original post

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! 🙂

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (4,816)