gralosky / php-ews

Automatically exported from code.google.com/p/php-ews
0 stars 0 forks source link

Path' is abstract or its type is abstract. #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
**Steps to reproduce
I am trying to get "additional properties" associated with a calendar item.
I use the following code:

$FindItem->Traversal = "Shallow";    
$FindItem->ItemShape->BaseShape = "AllProperties";   
$FindItem->ItemShape->IncludeMimeContent = true;

$FindItem->ItemShape->AdditionalProperties[0]->PathToExtendedField->Distinguishe
dPropertySetId
= DistinguishedPropertySetType.Appointment;   
$FindItem->ItemShape->AdditionalProperties[0]->PathToExtendedField->Distinguishe
dPropertySetIdSpecified
= true;     
$FindItem->ItemShape->AdditionalProperties[0]->PathToExtendedField->PropertyType
= MapiPropertyTypeType.String;
$FindItem->ItemShape->AdditionalProperties[0]->PathToExtendedField->PropertyName
= "STMeetingId";

$FindItem->ParentFolderIds->DistinguishedFolderId->Id = "calendar";   
$FindItem->ParentFolderIds->DistinguishedFolderId->Mailbox->EmailAddress =
"jdoe@xyz.com";

$result = $client->FindItem($FindItem);     

**What is the expected output? What do you see instead?
Schema validation fails. I have copied the types.xsd from Exchange server
(2010) and have copied it locally. "Path is abstract or its type is abstract".

**What version of the product are you using? On what operating system?
I am  using Exchange 2010. Client code is running on WindRiver linux.

**Please provide any additional information below.
This is part of getting all calendar items for all users. It works. But now
I am trying to access either the custom "user properties" set via outlook
or the body of the calendar item which has some text which I am interested in.

Please let me know.

Thanks,
Sachin

Original issue reported on code.google.com by sachinss...@gmail.com on 14 May 2010 at 11:21

GoogleCodeExporter commented 8 years ago
Hi,
sorry i'm not able to help you.
But maybe you can post your complete php-code for getting all calendar items 
for all users.

Thanks

Original comment by stoffelll@gmail.com on 22 Jul 2010 at 11:16

GoogleCodeExporter commented 8 years ago
Did you ever find a workaround for this? I am hitting it too.

Original comment by blodulv on 26 Oct 2010 at 11:02

GoogleCodeExporter commented 8 years ago
No. I use the Calendar body to get around the problem. 

What I know till now: Outlook plugin was adding specific "user properties" 
which I cannot get via Exchange Web Services.

I got around the issue by having the outlook plugin add that information in the 
calendar body (some meeting information) which can be easily obtained by 
GetItem request. 

Original comment by sachinss...@gmail.com on 26 Oct 2010 at 11:17

GoogleCodeExporter commented 8 years ago
I found a workaround, if anyone is interested:

$FindItem->Traversal = "Shallow";
// XXX This is a ridiculous hack.
$FindItem->ItemShape->AdditionalProperties = new SoapVar('
   <ns1:AdditionalProperties>
    <ns1:FieldURI FieldURI="calendar:CalendarItemType"/>
    <ns1:FieldURI FieldURI="calendar:IsMeeting"/>
    <ns1:FieldURI FieldURI="calendar:IsRecurring"/>
    <ns1:FieldURI FieldURI="calendar:Organizer"/>
    <ns1:FieldURI FieldURI="calendar:Start"/>
    <ns1:FieldURI FieldURI="calendar:End"/>
    <ns1:FieldURI FieldURI="calendar:Duration"/>
    <ns1:FieldURI FieldURI="item:Subject"/>
   </ns1:AdditionalProperties>', XSD_ANYXML);
$FindItem->ItemShape->BaseShape = "IdOnly";
/* Etc... */

Original comment by blodulv on 26 Oct 2010 at 11:31

GoogleCodeExporter commented 8 years ago
Hi,
workaround for what?? I would appreciate if you have answer for any of the 
following:

1. Outlook client (plugin) adds in Item Properties. I need to retrieve them via 
Exchange Web Services. OR
2. Outlook client (plugin) adds in some Property tags and need to be retrieved 
via Exchange Web Services. 

Thanks,
Sachin

Original comment by sachinss...@gmail.com on 9 Nov 2010 at 11:20

GoogleCodeExporter commented 8 years ago
This issue has been moved to GitHub 
https://github.com/jamesiarmes/php-ews/issues/6

Original comment by JamesIArmes@gmail.com on 14 Feb 2012 at 2:26