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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Absolute Newbie Question
Power Automate
Unanswered

Absolute Newbie Question

(0) ShareShare
ReportReport
Posted on by 38

So I'm an absolute newbie to PA.  I had never even heard of it until a couple days ago.  So apologies in advance if what I'm asking is just plain dumb 🙂

 

My question is:  Can PA allow me to create a script (or whatever you call it) so that it monitors a particular inbox and for all emails that arrive that meet a certain criteria (eg., from a particular person and with particular words in subject), it creates a calendar entry for the same outlook account BUT it selects the calendar start and end date and time from the content of said email.  The email always contains this information in a set format, namely:

 

Date:

14/Feb/2023 23:59:00 AEST - 15/Feb/2023 06:00:00 AEST

 

Is this something that PA can do?  I can either created it in the particular mailbox or (preferred), I can create it in my mailbox BUT it is looking at a shared inbox and it needs to put the calendar item in the shared calendar of the shared inbox.  I don't think I should make this automatic upfront but instead make it do it should I flag the email in some way.  Make sense?  Is this even possible in PA?  Thought I would ask that before I even start 🙂  Presently I have to do all that manually so if it could be automated, that would be great.... jut not sure if it is something that PA could do.

 

Thanks in advance.

Categories:
I have the same question (0)
  • Fatal_Lordes Profile Picture
    38 on at

    I've had a bit of a play and created a Flow and I said that within a particular folder, if an email is flagged that has a set from email and includes particular words in subject line, create a calendar item and I worked out how to create expressions to get the to and from date/time from the body... all good, BUT I can't seem to make it run?  I have an email to meets the criteria but flagging it does nothing!  What am I missing?

  • Fatal_Lordes Profile Picture
    38 on at

    Getting closer.  It fails when I run it with "The string was not recognized as a valid DateTime. There is an unknown word starting at index 0.
    clientRequestId: 349154ba-924f-426c-a912-491fa003d5b6", so now I'm trying to work out why.  Originally I thought it was because when I first cut and paste my examples in the expression builder by examples, it included HTML.  I've tried it with plain text now, for example:  01/Aug/2023 00:01:00 AEST – 01/Aug/2023 06:00:00 AEST, but I'm getting this error.  Trying to work out how to fix it. 🙂

  • Fatal_Lordes Profile Picture
    38 on at

    Okay, I'm just not sure.  I suspect it is the expression and maybe I need to somehow tell it that it is a date and time, but I'm not sure how to do that.  Any help pointing me in right direction would be great.  Below is screen shot of what I have.  Basically, I'm telling it (I hope) to look in the body for the string similar to "01/Aug/2023 00:01:00 AEST – 01/Aug/2023 06:00:00 AEST" and just take the first part ("01/Aug/2023 00:01:00 AEST") for the start date/time and take the second part ("01/Aug/2023 06:00:00 AEST") for the end date/time.

     

    Fatal_Lordes_0-1676978890398.png

     

  • Fatal_Lordes Profile Picture
    38 on at

    Ok, it is definitely a date format issue.  I tried putting in a static start and end date and the flow ran, but I found two issues (aside from working out how to tell PA that the string it sorts from the expression is a date and time), namely:

    1. It was using American date not Australian date format.  Eg, for 01/08/2023, instead of putting the entry on 1 Aug, it put it on 8 Jan.
    2. It put it in my personal calendar instead of the shared mailbox calendar.

    So I'm slowly working out what it is doing but not sure how to fix these three issues.

     

  • Chriddle Profile Picture
    8,441 Super User 2025 Season 2 on at

    Check out date format ISO 8601

    This is the most reliable way of handling dates in Office.

     

    Your mentioned date can be parsed as follows:

     

    parseDateTime(
    	'01/Aug/2023 00:01:00 AEST',
    	'en-GB',
    	'dd/MMM/yyyy hh:mm:ss AEST'
    )

     

    Output: 2023-08-01T00:01:00.0000000

     

    If you need UTC:

     

    convertTimeZone(
    	parseDateTime(
    		'01/Aug/2023 00:01:00 AEST',
    		'en-GB',
    		'dd/MMM/yyyy hh:mm:ss AEST'
    	),
    	'AUS Eastern Standard Time',
    	'UTC'
    )

     

    Output: 2023-07-31T14:01:00.0000000Z

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
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard