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

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Création d'un évènemen...
Power Automate
Unanswered

Création d'un évènement Outlook suite tâche planner échue

(1) ShareShare
ReportReport
Posted on by 3
Bonjour,
 
Je souhaite automatiser via un flux Power Automate la création d'un évènement dans l'agenda du collaborateur a qui la tâche est attribuée, lorsque celle-ci est échue dans planner.
J'ai créé un flux planifié, 1 x par jour.
J'ai fait l'action de lister les tâches du planner concerné.
Puis "Appliquer à chacun" = value
J'ai ajouté une condition avec l'expression : 
and(
  lessOrEquals(item()?['dueDateTime'], utcNow()),
  not(equals(item()?['percentComplete'], 100))
)
Qui doit me permettre de récupérer les tâches échues.
Mais tous mes tests finissent en "Faux" :
 
Le reste des actions ne se réalisent donc pas
(obtenir les détails de la tâche > Appliquer à chacun > Obtenir le profil de l'utilisateur V2 > Créer un évènement V4)
 
Je ne suis pas développeuse et ne comprends pas vraiment la technique. J'ai obtenu le code grâce à l'IA, mais je suis bloquée
 
Merci d'avance pour votre aide
Cordialement
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    52,965 Super User 2025 Season 2 on at
    Création d'un évènement Outlook suite tâche planner échue
     
    A couple of things
     
    1. What timezone are you in?
    2. can you please add 2 compose above your condition (within your apply to each)
    Compose one, put utcNow
    3. In the second one put item()?['dueDateTime']
    4. Add one more compose (sorry I should have said 3)
    put tem()?['percentComplete']
     
    Save your flow.
     
    You do NOT have to run your code etc again just do this.
     
    1. Once you save your flow click the little blue arrow (top left) and go back to the details page
    2. Click on the Top flow run (click the time it shows) it will open that run
    3. Click Resubmit
    4. It will automatically act as if those compose existed before
    5. Now you can visually compare the dates and times and the perfect, because I am thinking its a UTC conversion to your timezone issue.
     
    So my guess is.. you will not have any, but you can then easily see if
     
    a) the values are the wrong time zone for Planner versus utc and we can fix that by converting the time zone
    b) if anything is null
    c) that for some reason... they do not all say 100 as a bug
     
    Cheers

    If these suggestions help resolve your issue, Please consider Marking the answer as such and also maybe a like.

    Thank you!
    Sincerely, Michael Gernaey
     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 497 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 477 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 242

Last 30 days Overall leaderboard