Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 79901

Retrieve 'statecode' and 'statuscode' of opportunity entities in asp.net

$
0
0

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


Viewing all articles
Browse latest Browse all 79901

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>