Hi all,
I'm aving some issue tring to retrieve the property 'statecode' and 'statuscode' of an opportunity, in particular how to save them (i'm newbie in c#).
I'm working with string fecthXML:
string fetchXML =
@"<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='false' count='5'>
<entity name='opportunity'>
<attribute name='name' />
<attribute name='statuscode' />
<attribute name='statecode' />
<order attribute='name' descending='false' />
</entity>
</fetch>";
with string types i'm using this:
Name = record.Contains("name") ? record["name"] as string : "",
while 'statecode' and 'statuscode' are 'int32' type.
Thanks for any help