title: Accessing Contact Information in Windows Phone 8.1 Universal Apps
body: <p>I an using the following code as per the links i read in MSDN.</p>
  
  <pre><code> public async void getFavouriteList()
      {
          try
          {
              ContactStore store = await ContactStore.CreateOrOpenAsync();
  
  
              var queryOptions = new ContactQueryOptions();
              queryOptions.DesiredFields.Add(KnownContactProperties.DisplayName);
  
              ContactQueryResult result = store.CreateContactQuery(queryOptions);
  
              var contactCount = await result.GetContactCountAsync();
              var contacts = await result.GetContactsAsync(0, contactCount);
  
              //IReadOnlyList&lt;StoredContact&gt; contacts = await result.GetContactsAsync();
  
              foreach (StoredContact item in contacts)
              {
                  // I am not getting any contacts so this debug line is not printed !!!
                  Debug.WriteLine("this is not printed");
  
                  Debug.WriteLine(item.DisplayName + ":" + item.RemoteId);
              }
          }
          catch(Exception e)
          {
              Debug.WriteLine("this is not printed 7");
              Debug.WriteLine(e.Message);
          }
      }
  </code></pre>
  
  <p>Please Indicate Problems in my code .</p>
  
  <p>Things to note 
  I am using the Windows 8.1 universal App template.
  I have also added Contacts as well as Appointments to my application  capabilities.</p>
  
  <p>Every thing looks perfect to me .. please help me if i am missing something !!</p>