BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 10-23-2014, 04:50 AM   #1
robHaines
New Member
 
Join Date: Oct 2014
Model: 7100T
PIN: N/A
Carrier: o2
Posts: 1
Default Export RIM properties off email

Please Login to Remove!

Hi, Does anyone have any powershell EWS code they are willing to share that will pull off the RIM properties from emails?

Specifcally i'm trying to get the following....
PR_RIM_INTERNET_MESSAGE_ID
PR_RIM_MSG_REF_ID
PR_RIM_MSG_ON_DEVICE_3_6
PR_RIM_MSG_STATUS
PR_RIM_PAGER_TX_FLAG
PR_RIM_MSG_FOLDER_ID

I can get PR_RIM_INTERNET_MESSAGE_ID with no problems. However when i try to get the others I get a blank value. MFCMapi also reports the "name was found as ANSI"
Outlookspy shows the property as chinese characters.

I've also tried getting to the property via the tag and/or the DSAL but to no avail.

This is a snippet of the code.....
Sets the GUID of the property
$PR_RIM_MSG_REF_ID = new-object Guid("00020329-0000-0000-C000-000000000046")
Defines the type of the property
$pidtagPR_RIM_MSG_REF_ID = new-object Microsoft.Exchange.WebServices.Data.ExtendedProper tyDefinition($PR_RIM_MSG_REF_ID, "PR_RIM_MSG_REF_ID", [Microsoft.Exchange.WebServices.Data.MapiPropertyTy pe]::long);
Creates property array
$proplist = New-Object System.Collections.ArrayList
Add property to array
[void]$proplist.add($pidtagPR_RIM_MSG_REF_ID)
Defines the required extended properties required from the email
$psPropertySet = new-object Microsoft.Exchange.WebServices.Data.PropertySet([Microsoft.Exchange.WebServices.Data.BasePropertySe t]::IdOnly, $proplist)
Gets the required extended properties required from the email
$msMessage = [Microsoft.Exchange.WebServices.Data.EmailMessage]::Bind($service,$ItemId.UniqueId,$psPropertySet)
Displays the value of extended property PR_RIM_MSG_REF_ID
$BB_RIM_MSG_REF_ID = $msMessage.ExtendedProperties | where{$_.PropertyDefinition -like "*PR_RIM_MSG_REF_ID*"}

Any assistance would be appreciated.

Thanks
Rob
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads for: Export RIM properties off email
Thread Thread Starter Forum Replies Last Post
AOL email problems on my VZW curve MrJayDeeOne General 8300 Series Discussion - Curve 2 02-22-2009 09:24 PM
RIM Introduces the BlackBerry Curve Smartphone BlackBerryLinks BlackBerry In the News 0 05-03-2007 03:47 AM
[2006-02-09] RIM Announces Workaround Contingency for BlackBerry Customers jibi BlackBerry In the News 0 02-09-2006 08:17 PM
Sending and receiving email on the device simulator ryancarroll Developer Forum 1 09-30-2005 01:50 PM
[2005-04-04] RIM to Preview Next Generation BlackBerry MDS at WES bfrye BlackBerry In the News 3 04-13-2005 08:02 AM


DC 50uA 1mA 20mA 30A 85C1 Class 2.5 Analog Amp Panel Meter Gauge Current Ammeter picture

DC 50uA 1mA 20mA 30A 85C1 Class 2.5 Analog Amp Panel Meter Gauge Current Ammeter

$41.96



50uA-30A DC Ammeter 5V-300V DC/AC Voltmeter 85C1/85L1 Analog Panel Meter 65x56mm picture

50uA-30A DC Ammeter 5V-300V DC/AC Voltmeter 85C1/85L1 Analog Panel Meter 65x56mm

$47.52



US Stock Analog Panel AMP Current Ammeter Meter Gauge DH-670 0-100A DC & Shunt picture

US Stock Analog Panel AMP Current Ammeter Meter Gauge DH-670 0-100A DC & Shunt

$18.98



US Stock Analog Panel AMP Current Ammeter Meter Gauge DH-670 0-200A DC & Shunt picture

US Stock Analog Panel AMP Current Ammeter Meter Gauge DH-670 0-200A DC & Shunt

$18.91



US Stock DC -100A ~ +100A Analog AMP Current Needle Panel Meter Ammeter & Shunt picture

US Stock DC -100A ~ +100A Analog AMP Current Needle Panel Meter Ammeter & Shunt

$21.33



Hall Voltmeter Ammeter Dual Digital Display DC 0-300V ± 50A/100A/200A/400A US picture

Hall Voltmeter Ammeter Dual Digital Display DC 0-300V ± 50A/100A/200A/400A US

$22.99







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.