Skip to content

How to add body to event? #32

@igittigitt

Description

@igittigitt

I'd like to create an event containing a body information as plain text or HTML. So i tried to extend the ExchangeClient function create_event() with:

$body = 'Hello World! This is a cool event :-)';
$CreateItem->Items->CalendarItem->Body = new StdClass();
$CreateItem->Items->CalendarItem->Body = $body;
$CreateItem->Items->CalendarItem->Body->BodyType = 'Text';

Therefore the resulting XML in the SOAP-request should look like this:
<t:Body BodyType="Text">Hello World! This is a cool event :-)</t:Body>

But no luck so far. I don't get what to assign to the body-object which contain the bodytext.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions