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 / Power Apps to Planner ...
Power Apps
Unanswered

Power Apps to Planner - Catch error of Create Task

(1) ShareShare
ReportReport
Posted on by 45

Hello, I want to catch the error of Planner.CreateTaskV4 response
When the users don't have access to the planner, they are getting a Notify error that they can't understand

belhajlaila_2-1720518475156.png


I want to display a Tab notification to tell the users they don't have access to the planner, because that's the only issue that occurs for till now
I tried this (below screenshot), the issue with is function IfError is : it impact Planner.UpdateTaskDetailsV2, it doesn't save the description, because if the TaskAdded.id

belhajlaila_0-1720518282019.png

I have this

belhajlaila_1-1720518391244.png

 

 Thanks in advance

Categories:
I have the same question (0)
  • mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at

    hey @belhajlaila 

     

    please copy paste your code here so we do not need to retype. Please use the </> button.

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

  • belhajlaila Profile Picture
    45 on at

    Here us the code, thanks

     

     

    Set(TaskAdded, 
     IfError(
     Planner.CreateTaskV4(
     "" , //GroupId
     "MtJBOiQuC0KZVaf_iQzU-JcAA9UJ",
     "INC" & Text(Now(), "yymmdd-hhmm") & " [" & Combo_project.Selected.Value & "]" &" - " &TextInput_Task.Value, 
     {
     bucketId: "S0QfGBcuxE20PzSZ93JLUpcABZqn",
     dueDateTime: DueDatePicker.SelectedDate
     }
     ) , Notify ("Error creating incident, Please request for Access"),
     Blank()
     )
    );
    Notify(TaskAdded.id); // just to test
    Planner.UpdateTaskDetailsV2(TaskAdded.id,{description: User().FullName & ": " & DescriptionText.Value});// Is not working, it works only when I remove IfError

     

     

  • belhajlaila Profile Picture
    45 on at
    @mmbr1606 Could you kindly check this
  • belhajlaila Profile Picture
    45 on at

    @mmbr1606 Could you kindly check this

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 762

#2
11manish Profile Picture

11manish 640

#3
Valantis Profile Picture

Valantis 548

Last 30 days Overall leaderboard