I'm trying to access the PR_LAST_VERB_EXECUTED MAPI property from
Exchange '07 EWS, this is what I have:
$FindItem->Traversal = "Shallow";
$FindItem->IndexedPageItemView->MaxEntriesReturned = $max;
$FindItem->IndexedPageItemView->Offset = $offset;
$FindItem->IndexedPageItemView->BasePoint = "Beginning";
$FindItem->ItemShape->BaseShape = "AllProperties";
Which translates to
<FindItem xmlns="http://schemas.microsoft.com/exchange/services/2006/
messages"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/
types"
Traversal="Shallow">
<IndexedPageViewItemView MaxEntriesReturned="" Offset=""
BasePoint="" />
<ItemShape>
<t:BaseShape>AllProperties</t:BaseShape>
</ItemShape>
As it is this query works fine. From what I have been able to make out
if I want to access this MAPI property I add theis XML:
<t:AdditionalProperties>
<ExtendedFieldURI PropertyTag="0x10810003" />
</t:AdditionalProperties>
So I added this line to the query:
$FindItem->ItemShape->AdditionalProperties->ExtendedFieldURI-
>PropertyTag = '0x10810003';
However, all I get is this error message:
The request failed schema validation: The element
'AdditionalProperties' in namespace 'http://schemas.microsoft.com/
exchange/services/2006/types' has incomplete content. List of possible
elements expected: 'Path' in namespace 'http://schemas.microsoft.com/
exchange/services/2006/types'.
Can anybody help me?
Is that PHP I am detecting here?
I wrote an app last year in PHP against EWS based on sample code
available on the Internet. There are bugs (missing lines) in Microsoft's
WSDL code that cause all kinds of interesting challenges.
I honestly forgot how I did this and all the troubleshooting I went
through when dealing with traversing folder trees, but I have the
working code and could figure out what I did before with sufficient
incentive. :)
My advice? Do this in Visual Studio if you can. Much easier.
--
Leonid S. Knyshov
Crashproof Solutions
510-282-1008
Twitter: @wiseleo
http://crashproofsolutions.com
Microsoft Small Business Specialist
Try Exchange Online http://bit.ly/free-exchange-trial
Please vote "helpful" if I helped you :)
Yes, I have come up against this before...and got it working by
generating updated WSDL files using simplexml for modifying
ExtendedFieldURI FieldURI etc that problem is with abstract paths. I
cant seem to figure it out for this instance though. Unfortunately.
> I honestly forgot how I did this and all the troubleshooting I went
> through when dealing with traversing folder trees, but I have the
> working code and could figure out what I did before with sufficient
> incentive. :)
Im afraid the only incentive i can possibly offer is my gratitude.
>
> My advice? Do this in Visual Studio if you can. Much easier.
I dont have this option. And even if I did, i would not as I'm a PHP
developer and the application is PHP.
> Leonid S. Knyshov
> Crashproof Solutions
> 510-282-1008
> Twitter: @wiseleohttp://crashproofsolutions.com
> Microsoft Small Business Specialist
> Try Exchange Onlinehttp://bit.ly/free-exchange-trial