GithubHelp home page GithubHelp logo

Comments (3)

jasonjoh avatar jasonjoh commented on August 22, 2024

Thanks for reporting. This sample does need an update as the authentication libraries have been significantly re-worked since this was last touched. However it should still work.

Can you check something for me? Can you go to Graph Explorer, login with the same account you're using to reproduce this, and run a GET https://graph.microsoft.com/v1.0/me/mailboxsettings? If that works, do you see a value for timeZone? You may see it inside workingHours or automaticRepliesSetting, but specifically I'm looking to see if it's set at the top level (like the third line below).

{
    "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users('xxx')/mailboxSettings(timeZone)",
    "archiveFolder": "AAMkAGVl...AAA=",
    "timeZone": "Eastern Standard Time",
    "delegateMeetingMessageDeliveryOptions": "sendToDelegateAndPrincipal",
    "dateFormat": "",
    "timeFormat": "",
    "automaticRepliesSetting": {
        "status": "disabled",
        "externalAudience": "none",
        "internalReplyMessage": "",
        "externalReplyMessage": "",
        "scheduledStartDateTime": {
            "dateTime": "2021-02-25T20:00:00.0000000",
            "timeZone": "UTC"
        },
        "scheduledEndDateTime": {
            "dateTime": "2021-02-26T20:00:00.0000000",
            "timeZone": "UTC"
        }
    },
    "language": {
        "locale": "en-US",
        "displayName": "English (United States)"
    },
    "workingHours": {
        "daysOfWeek": [
            "monday",
            "tuesday",
            "wednesday",
            "thursday",
            "friday"
        ],
        "startTime": "09:00:00.0000000",
        "endTime": "17:00:00.0000000",
        "timeZone": {
            "name": "Eastern Standard Time"
        }
    }
}

from aspnet-snippets-sample.

andrewbaker-uk avatar andrewbaker-uk commented on August 22, 2024

Ahh this is slightly embarrassing. I'm using a Office 365 Developer account and I hadn't yet accessed the mailbox.

I didn't have an value for timeZone on the top level like in the example. As soon as I went to the mailbox and tried again, the value was populated :)

Thanks for the help

from aspnet-snippets-sample.

jasonjoh avatar jasonjoh commented on August 22, 2024

Thanks for confirming! I suspected this was the case as someone else had a similar issue with the tutorial that this is based off of. The fix hasn't come over to this repo yet :D.

from aspnet-snippets-sample.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.