GithubHelp home page GithubHelp logo

Comments (8)

garimak29 avatar garimak29 commented on June 21, 2024 1

You were right, when i signed in https://graph.microsoft.com/v1.0/me/mailfolders/inbox/messages my name was missing and as soon as I added that it fetched all the required details.
Thanks a ton !! 👍

from outlook-dev-docs.

jasonjoh avatar jasonjoh commented on June 21, 2024

I'm sorry to hear that. It looks like you're following along with the Node tutorial. Can you try the finished sample I have posted at https://github.com/jasonjoh/node-tutorial and see if you get the same error? I've tried to force error conditions and cannot reproduce what you're seeing.

If the finished sample works for you, try comparing your version with that one to see if you can spot a difference.

from outlook-dev-docs.

garimak29 avatar garimak29 commented on June 21, 2024

The tried the finished sample, now I am able to see the inbox without any errors but it is not fetching the username and not the emails either.

from outlook-dev-docs.

jasonjoh avatar jasonjoh commented on June 21, 2024

Can you explain more detail what's not working? Also, are you logging in with an Outlook.com or an Office 365 account?

from outlook-dev-docs.

garimak29 avatar garimak29 commented on June 21, 2024

I implemented your finished sample with the steps you have provided in [https://github.com/jasonjoh/node-tutorial]. After signing in my OUTLOOK account in place of username I'm getting 'undefined' (in debug as well), when I go to Inbox to view the emails fetched, there also the value is coming "null".

from outlook-dev-docs.

jasonjoh avatar jasonjoh commented on June 21, 2024

Ok. Let's verify that your account works with the Microsoft Graph. Can you go to the Graph Explorer, login with the same account, and run the default query using the Run Query button? What is the response?

from outlook-dev-docs.

garimak29 avatar garimak29 commented on June 21, 2024

I performed below steps :

  1. I clicked on the Graph Explorer Link provided by you.
  2. Signed in to my outlook account.
  3. Agreed to the permissions.
  4. Clicked on Run Query button.

Please find the response I'm getting, below :
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users/$entity",
"id": "e9754b849d7066c8",
"userPrincipalName": "[email protected]",
"businessPhones": [],
"displayName": null,
"jobTitle": null,
"mail": null,
"mobilePhone": null,
"officeLocation": null,
"preferredLanguage": null
}

As you can see all the responses that I am recieving is null.

from outlook-dev-docs.

jasonjoh avatar jasonjoh commented on June 21, 2024

Ok. This could either be normal or a problem with your specific account.

  • Go to https://account.microsoft.com/profile/ and sign in. Do you have a name listed there? Fields will be null if they have no value set there, and things like officeLocation just don't exist on personal accounts.
  • You said the listing of mail was coming back null as well. If you run the query in Graph Explorer for https://graph.microsoft.com/v1.0/me/mailfolders/inbox/messages, do you get any results? Assuming no, if you login to https://www.outlook.com, are there any messages in your inbox?

from outlook-dev-docs.

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.