web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Create task in folder
Power Apps
Answered

Create task in folder

(1) ShareShare
ReportReport
Posted on by 108

Hi everyone,

 

I am trying to create a task folder with Outlook Tasks and populate that same folder with the click of one button.

 

So far I am not getting it working with 2 buttons:

button 1:

UpdateContext({newTask: 'Outlook-taken'.CreateTaskFolder("Onboarding")})

button 2:

'Outlook-taken'.CreateTaskInFolderV3(newTask.Id;"Task1")

 This is  not working. Any help would be much appreciated.

 

Kind regards,

 

Roger Middleton

Categories:
  • Verified answer
    poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    @Rogermiddleton 

     

    Try like this for button OnChange:

     

    UpdateContext({newTask: "Outlook-taken"});UpdateContext({newTaskFolderName: "Outlook-taken-taskfolder"});UpdateContext({newTaskFolder: OutlookTasks.CreateTaskFolder(newTaskFolderName)});OutlookTasks.CreateTaskInFolderV3(newTaskFolder.Id,newTask);

     

     

    Here are results of testing the above - a folder and a task item in that folder created in one click, as per your original post requirements: 

     

    task101.gif

     

    outlook-taken-23784.png

     

     

     

    By the way strings do not have operable methods in Power Apps in the form of "SomeString".SomeMethod - Power Apps is not utilized in this way, the goal implied by this syntax from languages like JavaScript can be accomplished in Power Apps, but it is not in this specific syntax, as Power Apps is a low-code platform and does not use exactly same syntax as a traditional programming language, because it is a citizen developer platform, not a traditional programming environment - check if this helps as well.

  • Rogermiddleton Profile Picture
    108 on at

    Thank you for your reply! This solution helps me get back on track!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 225

#3
M Bilal Khan Profile Picture

M Bilal Khan 192

Last 30 days Overall leaderboard