can anyone explain the following please?

differences between 1.0 and 1.2 SDK:
int iVal;

CRM 1.0:

iVal = Microsoft.CRM.Flags.ACTIVITY_PARTY_TYPE.ACTIVITY_PARTY_REGARDING;

iVal = 8 (as per documentation)

CRM 1.2:

iVal = (int)
Microsoft.Crm.Platform.Proxy.ACTIVITY_PARTY_TYPE.ACTIVITY_PARTY_REGARDING;

iVal = 5 (documentation states it should still be 8 - which is what I
expect)



Additionally, if I use the code sample as per the documentation:

// Set up the XML string for the account
string strAccountXml = "<account>";
strAccountXml += "<name>Account Number 1</name>";
strAccountXml += "<accountnumber>A0192</accountnumber>";
strAccountXml += "<websiteurl>www.adventure-works.com</websiteurl>";
strAccountXml += "<ownerid type=\"" +
Microsoft.Crm.Platform.Types.ObjectType.otSystemUser.ToString() +"\">";
strAccountXml += userAuth.UserId + "</ownerid>";
strAccountXml += "</account>";
this isn't defined!!!!

and

Microsoft.Crm.Platform.Proxy.ACTIVITY_PARTY_TYPE.ACTIVITY_PARTY_REGARDING.To
String

returns the string "Activitypartyregarding", not the number 8 which will
cause a SOAP error.

Chris Galley

Cedalion

Re: CRM SDK bug? by GreaterThanTwo

GreaterThanTwo
Fri Jan 23 11:29:55 CST 2004

Hi Chris, there are MANY bugs in the SDK, and yes, that is one!

1) ACTIVITY_PARTY_TYPE enum values don't match DB values (SOAP API only, COM
API is OK)
2) OBJECTYYPE enum values don't match DB object type values (SOAP API only,
COM API is OK)
3) Half of the stuff that is valid fetchxml syntax doesn't work, especially
with link entities (i.e. group)
4) In fetchxml, the tag for no attributes is not <no-attributes>, it's
<no-attrs>

Mike


"Chris Galley" <chris.remove.galley@cedalion.co.uk> wrote in message
news:epzQN9c4DHA.1592@TK2MSFTNGP10.phx.gbl...
> can anyone explain the following please?
>
> differences between 1.0 and 1.2 SDK:
> int iVal;
>
> CRM 1.0:
>
> iVal = Microsoft.CRM.Flags.ACTIVITY_PARTY_TYPE.ACTIVITY_PARTY_REGARDING;
>
> iVal = 8 (as per documentation)
>
> CRM 1.2:
>
> iVal = (int)
> Microsoft.Crm.Platform.Proxy.ACTIVITY_PARTY_TYPE.ACTIVITY_PARTY_REGARDING;
>
> iVal = 5 (documentation states it should still be 8 - which is what I
> expect)
>
>
>
> Additionally, if I use the code sample as per the documentation:
>
> // Set up the XML string for the account
> string strAccountXml = "<account>";
> strAccountXml += "<name>Account Number 1</name>";
> strAccountXml += "<accountnumber>A0192</accountnumber>";
> strAccountXml += "<websiteurl>www.adventure-works.com</websiteurl>";
> strAccountXml += "<ownerid type=\"" +
> Microsoft.Crm.Platform.Types.ObjectType.otSystemUser.ToString() +"\">";
> strAccountXml += userAuth.UserId + "</ownerid>";
> strAccountXml += "</account>";
> this isn't defined!!!!
>
> and
>
>
Microsoft.Crm.Platform.Proxy.ACTIVITY_PARTY_TYPE.ACTIVITY_PARTY_REGARDING.To
> String
>
> returns the string "Activitypartyregarding", not the number 8 which will
> cause a SOAP error.
>
> Chris Galley
>
> Cedalion
>
>