pnp / powerplatform-samples

The website for the PnP Power Platform samples gallery, including Power Apps, Power Automate, Power Virtual Agents, Portals, etc.
https://aka.ms/powerplatform-samples
MIT License
148 stars 137 forks source link

Outlook Check if conflicts with lunch #63

Closed MattCollins-Jones closed 5 months ago

MattCollins-Jones commented 6 months ago

By submitting this pull request, you agree to the contribution guidelines

If you aren't familiar with how to contribute to open-source repositories using GitHub, or if you find the instructions on this page confusing, sign up for one of our Sharing is Caring events. It's completely free, and we'll guide you through the process.

To submit a pull request with multiple authors, make sure that at least one commit is a co-authored commit by adding a Co-authored-by: trailer to the commit's message. E.g.: Co-authored-by: name <name@example.com>

Put an x in all the items that apply ([x], without spaces), make notes next to any that haven't been addressed.

What's in this Pull Request?

A new sample that checks if an appointment with with subject, "Lunch" conflicts with new appointments being received. This sends an automatic reply that can be customised by internal or external senders.

Checklist

This checklist is mostly useful as a reminder of small things that can easily be forgotten – it is meant as a helpful tool rather than hoops to jump through.

Put an x in all the items that apply ([x], no spaces), make notes next to any that haven't been addressed.

Katerina-Chernevskaya commented 5 months ago

Hi @MattCollins-Jones,

Thank you for you contribution! The solution has been successfully built, but the flow's trigger has an issue:

{
  "error": {
    "code": 502,
    "source": "flow-apim-europe-002-northeurope-01.azure-apim.net",
    "clientRequestId": "218fafba-5b57-482a-bac5-c01dba7c292d",
    "message": "BadGateway",
    "innerError": {
      "status": 502,
      "message": "Operation: Create; Exception: [Status Code: BadRequest; Reason: The value 'https://outlook.office365.com/api/v2.0/Users('3ac5cc89-9cec-433f-be2b-0fae4127146d%40eac68690-7010-4e37-9d60-093ddbcf26e3')/Calendars('AQMkADJiMGVkM2M1LWNkNDYtNDkwYS1hZjRkLTJlZjAyYzNmNDU2MgBGAAADde-mbbJ7nU6qMqrChzT_yAcAK49FLSW4RU6KTOgj4ZdAiwAAAgEGAAAAK49FLSW4RU6KTOgj4ZdAiwAAAnosAAAA')/Events' of parameter 'Resource' is invalid.]\r\nclientRequestId: 218fafba-5b57-482a-bac5-c01dba7c292d\r\nserviceRequestId: 100c8515-af1c-4633-a903-323089e64859",
      "error": {
        "message": "Operation: Create; Exception: [Status Code: BadRequest; Reason: The value 'https://outlook.office365.com/api/v2.0/Users('3ac5cc89-9cec-433f-be2b-0fae4127146d%40eac68690-7010-4e37-9d60-093ddbcf26e3')/Calendars('AQMkADJiMGVkM2M1LWNkNDYtNDkwYS1hZjRkLTJlZjAyYzNmNDU2MgBGAAADde-mbbJ7nU6qMqrChzT_yAcAK49FLSW4RU6KTOgj4ZdAiwAAAgEGAAAAK49FLSW4RU6KTOgj4ZdAiwAAAnosAAAA')/Events' of parameter 'Resource' is invalid.]"
      },
      "source": "office365-we.azconn-we-002.p.azurewebsites.net"
    }
  }
}

May be there are any additional prerequisites required or any specific requirements for the account/license? Could you please check?

Thank you!

Katerina Ch.

Katerina-Chernevskaya commented 5 months ago

Also I would kindly ask you to create a new branch and submit PR from your branch, not from 'main'. And we accept only low case letters in the folder name.

Thank you!