Skip to main content

Notifications

Power Automate - General Discussion
Unanswered

Error Message

(1) ShareShare
ReportReport
Posted on by 2
I edited an exisiting flow and changed the Form ID to a new Form. I did not change anything else but now I am recieving this error message. It is under Create a task and indicates that it is a bad request.
 
The request is invalid:
Cannot convert the literal '2024-07-25T18:12:02.9969407Z7/25/2024 6:00:14 PM' to the expected type 'Edm.DateTimeOffset'.
 
These are the raw inputs. 
 
 "method": "post",
    "headers": {
        "prefer": " return=representation"
    },
    "path": "/beta/planner/tasks",
    "host": {
        "api": {
            "runtimeUrl": "https://flow-apim-unitedstates-002-westus-01.azure-apim.net/apim/planner"
        },
        "connection": {
            "name": "/providers/Microsoft.PowerApps/apis/shared_planner/connections/shared-planner-91647321-07a6-40f8-a1b3-b0eb316a64ac"
        }
    },
    "authentication": {
        "scheme": "Key",
        "parameter": "*sanitized*",
        "type": "Raw"
    },
    "body": {
        "planId": "LPH1u71cBEW86argwRxrMmUAFsC2",
        "title": "Test [\"Initial\"]",
        "bucketId": "7Nkolt9090C1HWm_cx0TL2UAAQ1_",
        "startDateTime": "2024-07-25T18:12:02.9969407Z7/25/2024 6:00:14 PM",
        "dueDateTime": "2024-07-25T18:12:02.9969529Z2024-07-25"
    }
 
This is how I set up under create a task
 
 
Categories:
  • creativeopinion Profile Picture
    creativeopinion 10,103 on at
    Error Message
    Have you tried to remove the form dynamic content from the Get Response Details action and re-insert it into the Create a Task action? If not, give it a try.

    EDIT: You need to format your Start Date Time and Due Date Time properly. The utcNow() function outputs a timestamp. The dynamic content from your form that you've inserted after the utcNow() function will cause issues. Can you provide insight on what output you are expecting? The format required is:
    yyyy-MM-ddT00:00:00Z 

    It also doesn't look like Planner displays the time on the tasks.

    In the meantime, you might be interested in these YT Tutorials:

    How to Add Microsoft Form File Uploads to a SharePoint List Item

    In this Microsoft Power Automate Tutorial I’m going to cover how to add file uploads to a SharePoint list item. First, I’ll show you how to get the file name and content from the File Uploads from your Microsoft Form, then I’ll show you how to add those files to a SharePoint item.

    IN THIS VIDEO:

    ✅ Two types of MS Forms

    ✅ Where Microsoft Personal (OneDrive) Form File Uploads are Saved

    ✅ Where Microsoft Group Form File Uploads are Saved

    ✅ How to Add a File Upload Question to an MS Form

    ✅ How to get a Microsoft Form ID

    ✅ How to get a Microsoft Form Response

    ✅ How to Get the Dynamic Content Microsoft Form File Upload Content

    ✅ How to handle Single and Multiple Microsoft Form File Uploads

    ✅ How to use a Scope action to Organize and Group Your Flow Actions

    ✅ How to Get the File Content from an MS Form File Upload

    ✅ How to Collect All Files from Multiple File Upload Questions

    ✅ How to Handle MS Form Response When a File Isn’t Uploaded

    ✅ How to Attach an MS Form Single File Upload to a SharePoint List Item

    ✅ How to Attach Multiple MS Form File Uploads to a SharePoint List Item

    ✅ How to Attach MS Form File Uploads to an Email

    -----
     

    How to Email Attachments 🖇 to Your Planner Tasks

    When you add attachments to a Planner task from your computer, the files are automatically saved in the Documents document library of the SharePoint site associated with the M365 Group of your plan.

    Instead of downloading email attachments to OneDrive or SharePoint just so you can add them to a Planner Task—automate it. In this Microsoft Power Automate Tutorial—I’m going to show you how build a flow that will take your email attachments and add them to a Planner task. All you need to do is copy a link to a task, forward the email to yourself and the attachments will be saved onto SharePoint and attached to your planner task.

    At the end of the video I’ll show you how to use Trigger Conditions so this automation only runs when specific conditions are met!

    IN THIS VIDEO:

    ✅ How to get the Message ID from an Email

    ✅ How to use the Get an Email (V2) action with a Manual Trigger

    ✅ How to use the split() function to split an email subject line

    ✅ How to use the Scope action to group your actions

    ✅ How to create a folder for email attachments on SharePoint

    ✅ How to use the Get Attachment (V2) action

    ✅ How to create attachment files in SharePoint

    ✅ How to use the Append to Array variable action to collect attachments

    ✅ How to add multiple attachments to a Planner Task

    ✅ How to switch a manual trigger to an automated trigger

    ✅ How to use Trigger Conditions in a when a New Email Arrives Trigger

    ✅ How to trigger your flow when only specific emails arrive

     
     
    Hope this helps!

    Consider giving me a ❤️ if you liked my response!

    👉 Level up your Power Automate skills by checking out my tutorials on YouTube
    👉 Tips and Tricks on TikTok and Instagram

     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,580

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,909

Leaderboard