Adding note to Office 365 contact

Hi there!
I'm using the Office 365 REST API to interact with contacts. I know that Exchange is behind Office 365, so maybe you can help me with this question...
First, I get the contact ID by querying:
https://outlook.office365.com/ews/odata/Me/Contacts
Then I need to add a note to a contact with a specific ID. I'm using the following code:
public void UpdateContact(string id, string note)
JObject updateRequest = new JObject();
updateRequest["Body"] = note;
byte[] byteArray = Encoding.UTF8.GetBytes(JsonConvert.SerializeObject(updateRequest));
HttpWebRequest webRequest = WebRequest.Create(String.Format("https://outlook.office365.com/ews/odata/Me/Contacts('{0}')", id)) as HttpWebRequest;
webRequest.Method = "PATCH";
// Add the Authorization header with the basic login credentials.
string authHeader = "Basic " + Convert.ToBase64String(Encoding.UTF8.GetBytes(user + ":" + password));
webRequest.Headers.Add("Authorization", authHeader);
webRequest.Accept = "application/json";
webRequest.ContentType = "application/json";
webRequest.ContentLength = byteArray.LongLength;
using (Stream dataStream = webRequest.GetRequestStream())
dataStream.Write(byteArray, 0, byteArray.Length);
// Send the request.
webRequest.GetResponse();
But I'm getting a 400 Bad Request response.
I found that notes are the body of the Contact, but how can I set that value? What am I doing wrong here?
Any hint will be greatly appreciated!
Thanks!

Hi Ernesto,
Not very much sure if you are targetting the correct attribute.
However the NOTES attribute is called "info" in AD.
Below is an example:
SET-ADUSER john.smith –replace @{info=”John Smith is a Temporary Contractor”}
As for Exchange Online, you might be missing 'S' in notes :
Notes
System.String
The Notes parameter specifies additional information about the user.
Set-User -Identity Contoso\Jill -DisplayName "Jill Frank" -Notes "Jill Frank is a Permanent Employee"
Regards,
Satyajit
Please“Vote As Helpful”
if you find my contribution useful or “MarkAs Answer” if it does answer your question. That will encourage me - and others - to take time out to help you.

Similar Messages

  • I get a message I can not download office 365

    I have new Windows 8 computer with only 4 programs.  the message says I am not connected to Internet but I am.  I have turned off firewall antivirus software still the same problem

    Hi,
    It will be great that if you can provide the complete error message, or attach a screenshot here, so that it will be easy for us to understand you.
    Are you referring to the error message ‘We're sorry, we had a problem installing your Office program. Is your internet connection working? Do you have enough free space in your main drive?’?
    If so, please refer to the article below and check if that helps:
    http://support.microsoft.com/kb/2696484
    Also, make sure your network is not blocking Office 365 URLs/IPs which mentioned in this article:
    http://technet.microsoft.com/en-us/library/hh373144.aspx
    Regards,
    Ethan Hua
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • MerpAD Office365  in trash and I have not used Office 365.

    At startup I get an empty file in my trash called MerpAD Office365 and I have not used Office 365.  Does anyone know how to permanently stop this, please as it is annoying?  It appears to have materialised following the latest update for Office for mac 2011.

    According to the latest answer by Xferno on 9/27/2013 there is a way to stop this:
    I found that if you disable Office error reporting the recovered files folder will stop to appear in the trash at each start. Here's the procedure:
    1. Open application Office error reporting, the application is located in this folder
          /Library/Application Support/Microsoft/MERP2.0
    2. Go in preferences
    3. Uncheck enable office error reporting

  • Outlook 2013 not saving Office 365 Credentials in Roaming Profiles

    Hi,
    We have migrated one of our Exchange Mailboxes to our Office 365 Environment, we have had all the relevant DNS entries put in place, so when the user logs on and opens Outlook 2013, the Wizard picks up there Office 365 Mailbox and configures, it
    asks you for User Credentials, and you type them in and select remember and then Outlook open fine with all the emails presented,
    THE PROBLEM: After this user logs off and logs back on to either the same computer or another computer, and they open Outlook, you are yet again asked for your Credentials again, it remembers the username and not the password, once you enter the
    password and click remember password it opens Outlook fine
    Looking in Credential Manager, I can see that after selecting Remember Credentials, it is putting an entry in Generic Credentials, however when you log off and on again these disappear, I have added Manual Entries in Credential Manager and these
    are saving!
    I have noticed that in %USER%\AppData\Local\Microsoft\Credentials when you open Outlook and select remember password, it is adding a system file in here, so I decided to try copy the file to %USER%\AppData\Roaming\Microsoft\Credentials, when I log
    off this is writing back to the server, and when I log back on it is downloading, HOWEVER when I open Outlook, it still asks for the password! And when I type it in and select remember, it adds the system file back in %USER%\AppData\Local\Microsoft\Credentials,
    and ignores the Roaming one,
    So currently I am using a Logoff and Logon Script to copy these Files too and from the relative folders and this works, however it is not ideal
    The Script:
    LOGOFF
    'Test
    xcopy %LOCALAPPDATA%\Microsoft\Credentials %APPDATA%\Microsoft\Credentials\ /H /Y
    rmdir I:\MSCRM /S /Q
    xcopy %LOCALAPPDATA%\Microsoft\MSCRM I:\MSCRM /H /Y /I /E
    LOGON
    xcopy %APPDATA%\Microsoft\Credentials %LOCALAPPDATA%\Microsoft\Credentials\ /H /Y
    xcopy I:\MSCRM %LOCALAPPDATA%\Microsoft\MSCRM /H /Y /I /E
    MY QUESTION:
    So I guess my question is how can you get Outlook to look at the %USER%\AppData\Roaming\Microsoft\Credentials instead of the Local one?
    Regards
    Andy

    Hi Andy,
    According to your description, I understand that Outlook always ask for password even through you have selected remember password after migrate mailbox to Office 365.
    If I misunderstand your concern, please do not hesitate to let me know.
    I want to double confirm some points, please help to collect answers for following questions:
    1. Is there still any Exchange server On-premise?
    2. All user or any special account experience this issue?
    By default for On-Premise environment, the Outlook client finds AutoDiscover also by using SCP first, if it can’t success. It will turn to use DNS.
    Please try to remove SCP by ADSI Edit then try again, I find an thread about remove SCP and a similar thread about your question, for your reference:
    https://social.technet.microsoft.com/Forums/en-US/3559c142-2c42-4749-9476-422ab7449853/autodiscover-url-migration?forum=exchangesvrdeploylegacy
    https://social.technet.microsoft.com/Forums/en-US/566616d9-d4c0-4d66-bf23-70541faf2c88/disabling-ad-autodiscover-while-migrating-to-office-365?forum=exchangesvradminlegacy
    Besides, this issue may be related to Office 365. Please contact Office 365 Team so that you can get more professional suggestions, please refer to:
    http://community.office365.com/en-us/default.aspx
    Best Regards,
    Allen Wang

  • Office 365 contacts and public folders

    Hi all, I am looking for some help with Office 365, detailed below:
    We have a CRM system that emails in multiple contacts meant for particular users within the organisation, and we are looking for how to get these contacts automatically added to particular users contacts lists behind the scenes, this will need to be automated
    with no input other than initial setup required. Does Office 365 have the capability to manage this.
    If you require any more information, please let me know.
    Thanks in advance for any advice or assistance.

    Hi,
    I'm not aware of such an automatic way to have these contacts added to particular users' Contacts folders. The workaround is to import these contacts from a .csv file, but you need to do this manually for several times. Or we can send the .csv file via an
    email to the particulars, then let them import these contacts by themselves.
    Regards,
    Melon Chen
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Adding Licenses for Office 365 Pro Plus and Power BI

    Hello. I have one license for Office 365 Pro Plus and one Power BI license. I want to buy another Power BI license to assign to a prospective client so he can log on to my Power BI site and view Power Pivot reports in the browser. I think that I need to
    purchase an additional Office 365 Pro Plus license ($12/mo) as well as an additional Power BI license ($40/mo). Is this correct?
    My other question has to do with what I believe is referred to as my Organizational account. I have one for Office 365 and a different one for Power BI. That is, my logins are different for the two subscriptions. I'm not sure how this happened or even if
    it's important. I have had no issues installing Office 365 on my desktop, laptop and tablet and I can upload files to my Power BI site and access them. Does it matter that my organizational accounts are different?
    Finally, if I have it correct in paragraph 1 that I need an additional license for both Office 365 Pro Plus and Power BI, do I just login to the two separate organizational accounts and add a license to each one?
    Thank you.
    Regards
    Arthur

    Hi Guy. I went ahead and purchased both licenses. The Office 365 is only $12/mo so it's not a big deal. 
    After getting that great information from you on the other post, I contacted Microsoft support and got this issue straightened out. I did have two accounts (domains). They had me cancel my Office 365 subscriptions on the account that I purchased those subcriptions
    on and then resubcribed to Office 365 on the Power BI account.
    Thanks again for all of your help.
    Regards
    Arthur Jenkins

  • GAL Sync - Office 365 - Contacts in all devices synced with O365 GAL

    Dear Team,
    We are deploying Office 365 and want a script\option where we can synchronize the GAL with the contacts of Outlook\Mobile devices on a periodic basis. Please assist
    Regards,
    Deepti

    You will need to post O365 questions in the O365 forums.
    The GAL is automatically sync'd  with all devices.  Changes to address lists are immediately available.  It is up to the device to sync to Exchange which should be automatic for supported devices.
    ActiveSync technology is "active"  it is not periodic.
    If you are having problems here are some causes of address book failures:
    https://www.google.com/#newwindow=1&q=exchange+2013+gal+not+updating
    Post any further issues in O365 forums.
    http://community.office365.com/en-us/f/default.aspx
    ¯\_(ツ)_/¯

  • Delegated Access will not remove - Office 365 email

    Hi Guys,
    We run our email purely on Office 365 and attach it to Outlook 2010 for our users. I have had no problems in the past delegating full access and then removing it. However I have a single user that when I remove their access, it seems to take (no error messages)
    but then when I go back into the mailbox they still have full access. 
    I have checked the users Outlook's and they have not delegated access between them from there, tried it both with and without caching and neither user is on any sort of litigation hold (the few things I have seen asked to try on forums). 
    This user will not remove from any mailboxes they have access to.
    Similar to the problem described here: http://community.office365.com/en-us/f/148/t/175474.aspx 
    Any help would be much appreciated. 
    Thanks
    Gav

    Hi,
    The issue may occur when the delegate cache gets corrupted. Please try the steps below to check the result:
    Go to File -> Account Settings -> Account Settings -> Double click on the account name -> Uncheck "Use Cached Exchange Mode" -> Next -> Finish -> Exit Outlook.
    Then please start Outlook in Safe Mode:
    Press Win + R, type "outlook.exe /safe" in the blank box, press Enter.
    Go to File -> Account Settings -> Delegate Access -> Add anyone as delegate -> Close Outlook.
    Then re-open Outlook in Safe Mode again, go to Delegate Access to remove all the delegates.
    If the steps above doesn't help, we may need to remove the permission at the mailbox level. Since you are using Office 365, I suggest you post the question in Office 365 Community:
    http://community.office365.com/en-us/f/default.aspx
    Regards,
    Melon Chen
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Exchange Connector 3.0 not processing Office 365 mailbox

    Hi,
    I have Service Manager 2012 SP1 configured with Exchange Connector 3.0. The mailbox to be monitored is in Office 365. everything was running fine last week until I removed the federation trust and connectors from our On-premise Exchange servers as part of
    the On-premise Exchange server decommissioning process to remove the Exchange Hybrid configuration.
    Now the Exchange Connector does not monitor the mailbox of the configured user in the "run as account", no new incidents are displayed when users sent an email to the run as account. No errors are logged in the Event Viewer for the Exchange Connector.
    Any suggestions?

    Hi,
    Set up the detailed logging and then see in the Operations Manager's log what happens when the Exchange Connector is running.
    Cheers,
    Marat
    Site: www.scutils.com  Twitter:
    LinkedIn:
    Graveyard:

  • Notes Dissappeared Office 365

    After I created, managed and installed an Office 365 account. I tried synchronizing with my Ipad. This worked, my mail was now being imported from this e-mail using Office 365.
    I only checked synchronisation with my mail and calendar, because that's all I currently need from this program.
    However... Once I installed all of this, I checked my notes, and they all disappeared. These notes did include valuable information about work-related issues. I did not synchronize my notes with the cloud, and also didn't delete anything manually. In my Ipad settings it says my notes are being stored locally, so I have no idea how this could have happened.
    I don't want to know why this happened, i only need help on how to possibly get my notes back!
    With kind regards,
    WaltherC

    Hi,
    This error may occur if the Click-To-Run registry key is corrupted. Try to clear out the contents of the Office 15 folder in the Registry Editor.
    Go to the following registry location and delete the Click-to-Run registry key.
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\15.0
    Note: Please backup the registry before editing or deleting any key from the registry.
    Hope this helps.
    Thanks,
    Ethan Hua CHN
    TechNet Community Support

  • Nokia 1020 Office 365 contact sync

    Hi all
    New to office 365, i have a big difficulty syncing my contacts on all the phones i use :
    Iphone 4 (Personnal Phone) - ios7
    HTC One (Personal Phone) - Android 4
    Nokia Lumia 1020 (Job Phone) - WP8
    Indeed, sync contacts all appear as : No Name and contain a unique email adress..
    Contact list is of about 200 contacts, with phone numbers, and several contact details, that  i need to have to cope incoming call identification on WP8 on nokia lumia
    Data can provide from several means in office 365 account : 
    GAL
    Outlook Contacts
    Lync Contacts.
    This is getting me angry, as i come from an exchange 2010 on prems environnement where activesync problems of this sort didn't exist...
    Is there a way, to get sync to work correctly from data coming from office365...
    Please, any advice or steps to follow will be tested...
    Thanks by advance
    Tugdual

    Hi,
    Are emails synced perfectly?
    When you set up an Exchange account on your device, you should be able to access and synchronize your email, calendar, and contacts. If the account is set up via POP or IMAP, only emails are synced.
    Here are some steps you can refer to when using a Windows Phone:
    Use Office 365 on your Windows Phone 
    http://office.microsoft.com/en-in/office365-suite-help/use-office-365-on-your-windows-phone-HA103787376.aspx
    Hope this can be helpful.
    Regards,
    Melon Chen
    TechNet Community Support

  • IPhone mail app is not pushing Office 365 emails to show in my lock screen

    Hello,
    I transferred from one college to another last semester and set up my iPhone to receive school emails as I had at my previous school. Both colleges use the same email system, Microsoft Office 365. At my first college, my email functions worked perfectly fine, and everything showed up in my lock screen as I had set it to do. But upon transferring, only my personal emails would push to the lock screen. That semester, this issue caused me a good amount of trouble. Professors would email me asking if I could stop by their office between certain hours during the day, but only much later would I receive the email, and their office hours were long over. I am the type who checks her lock screen for notifications during the day, and only when I'm bored or have a certain purpose in mind do I unlock it, so I -desperately- need a way to resolve this issue. Does anyone have any tips or suggestions?

    Mail has to be running in order for you to be notified of new mail. It doesn't need to have any windows open. If you're sure that it is running in the background, open the Notifications preference pane and check the settings for Mail.

  • Dirsync not for Office 365

    Hi
    Is it possible to synchronise AD accounts from one Domain to anoher, without FIM? For example by modifying Dirsync?
    Regards
    Peter

    Actually DirSync has been around a lot longer than O365, both ADAM and ADLDS leverage dirsync. FIM itself started as MIIS, which Microsoft acquired in 1997. It has gone through various iterations since them from ILM to FIM.
    It is not reverse engineering to use Dirsync to synchronize objects between directories. FIM gives one the ability to transform objects and attributes during the synchronization and easily connect multiple LDAP sources.

  • Migration from Lotus Note / Domino to Microsoft office 365

    Core functionality has been agreed to be tested which include:
    - Provisioning of user account (create, delete, amend)
    - Authentication
    - Data Migration and
    - Usability. 
    The Background of the project is the migration of data from Lotus note/Domino to Microsoft Office 365. 
    A: How would we go about testing the product?
    B: What are the main features to look out for in order to  achieve test coverage in this type of project?

    For migrating Lotus Notes (NSF files) & Domino Server Mailboxes in Office 365 accounts use only a Good-Quality Lotus Notes to Office 365 migration application. The product executes Bulk migrations with high-speed and data security. Perform migration
    of emails, contacts (mailing lists), calendars and task (to-do lists) completely into Office 365.
    Get Product Overview at:
    http://www.export-notes.com/lotus-domino-to-office365.html
    (Facility to Migrate Lotus Notes as well as Domino Server Mailboxes)

  • Office 365 Calendar Not Syncing with my Z10

    I have Office 365 Plan P1 and have set up my email Exchange 365 account on my Z10. Emails, Contacts & Memos sync correctly on all my devices - desktop, iPad (sorry!) and on my Z10, but Calendar does not sync at all. Can anyone help please? Am I using the correct Office 365 Plan (P1)?

    Hi DT655,
    Thanks for your reply.  Since my original post I have upgraded and subscribed to Office 365 Midsize Business.  All has gone well, everything has been migrated over and all has been synced correctly.
    Except my BlackBerry Z10 where Calendar syncs everything going forward, but only three months back.  My BB PlayBook is the same (only three months back).  However, my desktop and iPads sync all events going back many years.
    I have followed your instructions by deleting my old e-mail accounts on both my Z10 and my PlayBook and reinstalled them using the Microsoft Exchange ActiveSync, but it is still the same - only three months back on both BB devices.
    As my other devices sync all events going back many years, and as there used to be an option within the old BB Desktop Manager to sync All Events, I am sure the restriction I now have must be a BB issue and not an Office 365 issue.  Do you agree, and do you know where I can get to some settings that allow me to change the three month default?
    Thanks.

Maybe you are looking for

  • BS not available to assign in Integration Directory

    Hi all - I changed Business System in SLD. When I try to reassign BS in SLD, it's not showing up in list to selct. Please help me in resolving this error, your input is greatly appreciated. Thanks, Pat

  • Exchange server 2010 DAG failover

    Hi team , We have configured exchange server 2010 in DAG environment . We have added 3 mailbox server in DAG . but my active mailbox copy failed the database are failover to another passive copy server & status is mounted . after failover emails serv

  • Songs listed under incorrect artist in Ipod (listed correctly in Itunes)

    So I'm having an issue getting songs to appear under the correct artist. The artist's name is 3lau.  several of his songs are listed with him as the artist.  Other list him as the Album artist.  It is all grouped correctly on Itunes. When i sync my i

  • TS1702 I cannot download the App GarageBand.

    Hello, Attempts to download take an eternity and then after about an hour of very very slow loading progress, I get the message that I have been unsuccessful. I am new to the iPad and Apps and I wonder if I'm doing something wrong. Thanks for any gui

  • Can I password protect any one application on my iPhone?

    I would like to password protect specific applications i.e. SMS and Mail on my iPhone. Is this possible?