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 / Power automate - Creat...
Power Automate
Suggested Answer

Power automate - Create outlook event in draft mode

(0) ShareShare
ReportReport
Posted on by 2
Hi All,
 
 
My use case is as below:
 
  • Trigger: The flow starts when a new email arrives in your Office 365 inbox.
  • Run a Prompt: The email body is sent to AI Builder to extract meeting details (date, time, duration).
  • Initialize Variables: The extracted meeting date, time, and duration are stored in variables.
  • Set Defaults: If no duration is found, it defaults to "30 mins".
  • Calculate Start/End: Start and end datetimes are calculated using the extracted values.
  • Create Event: A calendar event is created in Outlook with these details.
     
but facing issue with datetime as email sender may write in free text there is no format 
but Outlook needs it in specific format, som suggest how to develope this automation.

my prompt is:


"""
 

You are tasked with analyzing email content to determine if the sender is requesting a meeting. If a meeting request is identified, extract the relevant meeting details including meeting date, time, and duration from the free-text email body.

 

### Instructions:

1. **Identify Meeting Request:** Analyze the email body to detect if the sender is asking to schedule or hold a meeting.

2. **Extract Meeting Details:** If a meeting request is present, extract the following details:

- Meeting Date

- Meeting Time

- Meeting Duration (if specified)

3. **Format Output:** Present the extracted information in a structured JSON format with keys: `meeting_date`, `meeting_time`, and `meeting_duration`.

4. **Handle Missing Details:** If any detail is not mentioned in the email, represent its value as `null` in the JSON output.

5. **No Meeting Request:** If the email does not contain a meeting request, respond with an empty JSON object `{}`.

 

### Example:

**Email Body:**

"Hi, I would like to schedule a meeting on March 15th at 3 PM for about 30 minutes to discuss the project updates."

 

**Output JSON:**

```json

{

"meeting_date": "March 15th",

"meeting_time": "3 PM",

"meeting_duration": "30 minutes"

}

```

 

### Guidelines:

- Extract only from the provided email text.

- Do not infer or assume details not explicitly mentioned.

- Ensure the JSON output is valid and parsable.

 

Provide the email content here:

 

 




"""


Kindest Regards,
 
Categories:
I have the same question (0)
  • CU30121719-0 Profile Picture
    on at
    And what's your question?
  • SD-27010529-0 Profile Picture
    2 on at

    I am facing an issue while creating the calendar event because the datetime is not in the proper format. The sender can write meeting details in any free-text format, such as:

    • “Can we discuss today for 30 mins?”

    • “Let’s connect for 10 mins now.

    • However, the Create Event action requires a properly formatted start time and end time.

    • Additionally, I want to save the event in draft mode and not send it to anyone. This is for my internal use only. When someone requests a meeting, the flow should block my calendar temporarily. I will review the event later and send the invite manually if needed.



    •  
  • Suggested answer
    CU30121719-0 Profile Picture
    on at
    To retrieve the start and end datetime of event from the email body, follow these instructions:  Using AI prompts in Power Automate to extract key information
    There is no such thing as a draft event. Create the "DraftEvents" calendar in Outlook  just for your flow.

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard