none
I am not able to clear the Attendees list RRS feed

  • Question

  • Hi,

    Below is code snippet to get the room attendees list. Through which I can get attendees list successfully.

     Office.cast.item.toItemCompose(Office.context.mailbox.item).requiredAttendees.getAsync(function (result) {
                            if (result.error) {
                                showMessage(result.error);
                            } else {
                                var msg = "";
                                result.value.forEach(function (recip, index) {
                                    result.value
                                    msg = msg + recip.displayName + " (" + recip.emailAddress + ");";
                                });
                                showMessage(msg);
                            }
                        });

    But using below code snippet I am not able to set(i.e. Clear) the Attendee list.

     var newRecipients = [
                                               {
                                                    "displayName": "Allie Bellew",
                                                    "emailAddress": "allieb@contoso.com"
                                               },
                                              {
                                                    "displayName": "Alex Darrow",
                                                   "emailAddress": "alexd@contoso.com"
                                             }
                                          ];

                        Office.cast.item.toItemCompose(Office.context.mailbox.item).requiredAttendees.setAsync(newRecipients, function (result) {
                           if (result.error) {
                                showMessage(result.error);
                            } else {
                                showMessage("Recipients overwritten");
                            }
                        });

    Please help if anyone has solution.

    Thank you.

    Regards,

    Sandip

    Thursday, December 17, 2015 11:26 AM

All replies

  • We are doing the research about your problem. There might be some delay about the response. Appreciate your patience.
    Friday, December 18, 2015 9:48 AM
  • Thank a lot for your reply...
    Friday, December 18, 2015 11:20 AM
  • Hi David,

    If you have any answer for above question, please let me know. 

    Thank you.

    Regards,

    Sandip

    Thursday, December 31, 2015 8:46 AM
  • We are doing the research about your problem. There might be some delay about the response. Appreciate your patience.

    Hi David,

    Do you have any solution on this? 

    Regards,

    Sandip

    Wednesday, February 10, 2016 5:53 AM