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 Automate / create event using lis...
Power Automate
Unanswered

create event using list item due date

(0) ShareShare
ReportReport
Posted on by 33

Hi, new to flows and struggling to achieve what i want. A lot of it is probably not understanding the format.

I am trying to create a flow that when a new SP list item is created that it creates an event in my O365 calendar, using the due date from the item.

When creating it the end time is before the start time which I find odd, but I am entering dynamic data from the item called due date. Ive tried adding times to this but possibly using the wrong syntax.

The best I can do at the moment is get it to create an event of a half hour time slot starting at the nearest 30 minutes after the item is created. e.g. I may create a new item at 7:40 on the 16th, but the due date is the 17th. This creates a 30 minute event on the 16th from 8:00.

What I want to achieve is allocate a 1 hour time slot on the actual due date at 9AM, I don't require any further flexibility than that.

 

Any help appreciated.

Categories:
  • v-micsh-msft Profile Picture
    Microsoft Employee on at

    Hi @Federal,

     

    Could you please explain a bit regarding the "Due Date" mentioned here?

    Is this a date value from the newly created SharePoint list?

    Would you please share a screenshot of the run details (Also the configure part) for this flow?

    If yes, then we may need to take use of compose Action.

    Basically The End Time or Start would accept the time format showing in the image below, as that is similar to hard-coded time, which can't be so helpful.

    29.PNG

    Please first take a look at the thread below, which would show you how to use compose:

    Office 365 Calendar events with Dynamic date

     

     

    If you need any further assistance, please feel free to post back.

    Regards

  • Federal Profile Picture
    33 on at

    Hi,

     

    I'm still a little lost. I can get it to create an event at 8AM for an hour simply by putting in the start and end time. I'm trying to set the date using a field in the SP item where I select the date from a calendar which I have called "Due Date". I hadn't previously noticed but further down the config there is a field for start and end dates. When I try to use dynamic data here the flow does not run at all.

    Annoyingly I can't seem to paste screenshots in here to better explain. I'll try another browser in a minute in case that is the issue.

    So putting it as simply as I can the SP item has a date field which I select when creating the item, this is named "due date" and is available in the list of dynamic data displayed when creating the flow. I've tried adding it to the start and end times which creates an event but at the wrong time and date and I've tried adding it to the start and end date which stops the flow working completely.

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Do you get any error messages?

    How much is the time and date wrong? Always the same amount?

  • Federal Profile Picture
    33 on at

    This is what I get with just the time in the start and end time and "due date" in the start and end date. Nothing happens at all with this set up. If I remove "due date" from the config the event is created on todays date. I'm guessing that the "due date" field isn't producing any output from the look of it, but I can't think why.

     

    • Code
      BadRequest

    Inputs
    • Calendar id
      Calendar
    • End time
      09:00
    • Start time
      08:00
    • Subject
       
    • Id
      4209
    • ContentType
      Text
    • Content
       
    • StartDate
       
    • EndDate
       

    Outputs
    • Headers
       
    • "X-Content-Type-Options": "nosniff", "Cache-Control": "no-cache", "Date": "Fri, 17 Feb 2017 12:36:45 GMT", "Set-Cookie": "ARRAffinity=fe5113e98f6e48887513ffe16a2381e9c75e4bd9edb15ae186c00e39b7d9368e;Path=/;Domain=127.0.0.1", "Server": "Microsoft-IIS/8.0,Microsoft-HTTPAPI/2.0", "X-AspNet-Version": "4.0.30319", "X-Powered-By": "ASP.NET", "Content-Length": "170", "Content-Type": "application/json; charset=utf-8", "Expires": "-1" }
    • Body
      { "status": 400, "message": "Your request can't be completed. At least one required parameter is missing from the request. Missing parameters: Pattern.", "source": "127.0.0.1" }

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    You get an error because it's missing something.

    Try to output the due date field to an email body to see what it actually outputs. The due date is a date&time field?

  • Federal Profile Picture
    33 on at

    It's just a date only. I'm sorry but I am not very clever - how do I test the output? On the SP list view it outputs it as 17/02/2017, so the data is there in sharepoint. Is it possibly a date format error as from the other replies I can see the date in the format 2017/2/17?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at
    Just retry it once again and expand the "trigger"-action. There you can see what MSFlow actually gets from SharePoint.
  • Federal Profile Picture
    33 on at

    Well that would explain a lot of things! There is no output for the "due date" or a couple of other fields I wanted. What puzzles me is if there is no output from the trigger then how is the dynamic data listing it as an option when creating the event?

    My guess now is this is a Sharepoint issue rather than a flow issue and I should be looking for answers in a different forum?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Keep this issue in mind: Flows can't write to Lookup, Choice, People and Groups, and Taxonomy fields in SharePoint lists. We recommend using a simple string field until this is corrected.

     

    The dynamic data couldn't know at the creation of the flow which fields output some value.

    Which type of fields don't output data?

    Do you use a "my-site" or standard sharepoint site? Is it a "normal" custom-List?

     

    Currently I'm having massive problems with flow&sharepoint-lists.. so it might be you have the same issue or souce of issue.

  • Federal Profile Picture
    33 on at

    It's a standard domain.sharepoint.com based on the default tasks list and just modified to my needs.

    I'm not seeing the due date, the title (the title is created using a workflow from a dropdown so the output should be simple text) and the description which is a multi-line text box.

    I have problems today with powerapps failing to lookup dropdowns, so maybe there are a few issues.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 229 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 223 Super User 2026 Season 2

#3
Valantis Profile Picture

Valantis 136 Super User 2026 Season 2

Last 30 days Overall leaderboard