Coder Social home page Coder Social logo

Event Attendees not updated about php-ews HOT 4 CLOSED

garethp avatar garethp commented on August 10, 2024
Event Attendees not updated

from php-ews.

Comments (4)

Garethp avatar Garethp commented on August 10, 2024

What does $RECIPIENTSTR_ARR look like?

from php-ews.

Garethp avatar Garethp commented on August 10, 2024

Hi @chandrakantborse87 Is this issue still plaguing you?

from php-ews.

c4ncel avatar c4ncel commented on August 10, 2024

I'm seeing a similar issue.

I can create a meeting with required attendees

        $requiredAttendees = array();
        foreach($users as $user) { 
            $requiredAttendees[] = array('Mailbox' => array('EmailAddress' => $user));
        }
        $request['RequiredAttendees'] = $requiredAttendees;

.
.
$createdItemIds = $calendar->createCalendarItems($request, array('SendMeetingInvitations' => $invites));

But passing an array like this with an altered list to updateCalendarItem fails with the

Uncaught SoapFault exception: [Client] SOAP-ERROR: Encoding: object has no 'Attendee' property in /srv/www/htdocs/exchange/vendor/garethp/php-ews/src/API/NTLMSoapClient.php:122

But if I change the array structure to this,

$requiredAttendees[] = array('Attendee' => array('Mailbox' => array('EmailAddress' => $email)));

the update call generates no error, but the attendees are not updated.

Using this altered array structure, with Attendee defined in the create call fails with

Uncaught SoapFault exception: [Client] SOAP-ERROR: Encoding: object has no 'Mailbox' property in /srv/www/htdocs/exchange/vendor/garethp/php-ews/src/API/NTLMSoapClient.php:122

from php-ews.

 avatar commented on August 10, 2024

You are not handling a correct structure. Check the changes in the code below.

$attendees = array();
foreach($users as $user) { 
   $attendees [] = array('mailbox' => array('emailAddress' => $user));
}
$request['RequiredAttendees'] = $attendees ;
$invites = 'SendToAllAndSaveCopy';

regards

from php-ews.

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.