Tech Support > Microsoft Windows > Windows CRM > Invalid Item id - CRMEmail.Send
Invalid Item id - CRMEmail.Send
Posted by Chris Basstt on May 18th, 2004


When invoking the Send method for the CRMEmail class, I get the following error back

<detail><error><code>8004020b</code><description>Invalid item id.</description><file>D:\crm\Build\3297\src\platform\i nclude\OMCommon\OMSecurity.inl</file><line>1109</line></error></detail>

I did see the earlier posting about eliminating white space in the XML attributes and that isn't a problem with the XML being submitted

ActivityXML

<emailactivity><mimetype>text/plain</mimetype><messagesubject>New Ship Delay</messagesubject><messagebody>the following Sales Order has been delayed:\r\nOwning User: J Doe\r\nModified By: Train Uno\r\nModified On: 02/06/2004</messagebody><objectid>CDBC0F01-193E-4518-BC11-3C5857BCEF22</objectid><objecttypecode>2</objecttypecode><ownerid type='8'>{3C49241F-2054-42CA-95CD-D8FDA963E472}</ownerid></emailactivity

Parties XML

<activityparties><activityparty><partyobjecttypeco de>8</partyobjecttypecode><partyid>blahblah@xxxblahblah. com</partyid><participationtypemask>2</participationtypemask></activityparty><activityparty><partyobjecttypecode> 8</partyobjecttypecode><partyid>{3C49241F-2054-42CA-95CD-D8FDA963E472}</partyid><participationtypemask>1</participationtypemask></activityparty></activityparties

Any ideas??

Thanks in advance

Chris Basset
Precision Systems Consulting, Inc.

Posted by Chris Bassett on May 18th, 2004


Just an FYI -- the code I'm working with is taken directly from MSDN (Create an E-Mail Activity Using Workflow), found here

http://msdn.microsoft.com/library/de...ailActivity.as

I'm using this slightly differently, and just sending the email to a fixed email address for now



Similar Posts