cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

Excel sheet to Google Calendar/agenda events

Hi,

 

I'm trying to build a flow that takes rows from an excel file in onedrive and make a new event in google calendar or update an existing one.


How the flow should work: I add a new line in the excel file with all the details. In the first collumn I enter "NEW".
The flow should find all the cells with "New" in the first collumn and then use those rows for new events in google calendar.

 

 

When the event has been made, it should change "New" to "Done" and also add the Event ID and HTML ID in the row.

 

Furthermore, if I change "Done" to "Change", it means I have modified that row. And the flow should update the event in google calendar to match the details in the excel sheet.

 

I'm currently having troubles with the date format. I saw in another post that I should change formatting to "text" but that did not fix the problem for me. I've tried both "text" formatting and "Date" formatting.

I'll show you how the Flow looks like now. What the Excel File looks like. And the Error Message.


Flow Image
Excel image
Flow Error Image

 

Body text of Error Message:

{
  "error": {
    "errors": [
      {
        "domain": "global",
        "reason": "invalid",
        "message": "Invalid value for: Invalid format: \"06/08/2019 03:00:00\" is malformed at \"/08/2019 03:00:00\""
      }
    ],
    "code": 400,
    "message": "Invalid value for: Invalid format: \"06/08/2019 03:00:00\" is malformed at \"/08/2019 03:00:00\""
  }
}

Please help me,

 

Ectra

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Hi @Ectra that purely looks to me like it's not happy with the format of the datetime string.

 

You could reformat the datetime into something which is usuall recognised such as:

2019-08-06T03:00:00

 

So try using this expression to transform your datetime:

formatDateTime(<Field containing date>,'yyyy-MM-ddThh:mm')

If you still have no luck with that I'll build my own example Flow this evening to run it through.





Did my reply help? Please give it a thumbs up.
Did I answer your question? Please mark my post as a solution!
If you liked my response, please consider giving it a thumbs up. THANKS!


Proud to be a Flownaut!





Community Leader: Black Country PowerApps & Flow User Group

View solution in original post

2 REPLIES 2
Highlighted
Super User
Super User

Hi @Ectra that purely looks to me like it's not happy with the format of the datetime string.

 

You could reformat the datetime into something which is usuall recognised such as:

2019-08-06T03:00:00

 

So try using this expression to transform your datetime:

formatDateTime(<Field containing date>,'yyyy-MM-ddThh:mm')

If you still have no luck with that I'll build my own example Flow this evening to run it through.





Did my reply help? Please give it a thumbs up.
Did I answer your question? Please mark my post as a solution!
If you liked my response, please consider giving it a thumbs up. THANKS!


Proud to be a Flownaut!





Community Leader: Black Country PowerApps & Flow User Group

View solution in original post

Highlighted
Community Support
Community Support

Hi @Ectra ,

 

I have made a test on my side, please format the Date with expression as below and the flow would work:

formatDateTime(body('Get_a_row')?['Status'],'yyyy-MM-ddTHH:mm:ssZ')

You could replace the Status expression with yourselves.

 

1.png

And the flow would run successfully as below:

2.png

 

Please let me know if your problrm could be solved.

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (7,162)