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

Can't retrieve fields in pugin

$
0
0

Hi,

 CRM 13 On premise.

I'm having some problems to retrieve an opportunity's fields. Basically the problem is that the code that retrieves the opportunity always gets the same columns, even if I specify them, here's my code:

Entity Opportunity_Target = (Entity)_service.Retrieve(entity.LogicalName, entity.Id, new ColumnSet(new String[] { "total","statecode" }));

The result of this is Opportunity_Target with 9 columns, any of those were mentioned in the ColumnSet above.

'entity' object is being received as a parameter, and it's an EntityReference pointing to the regarding Opportunity.

What could be the problem here?

Thanks in advance.


Viewing all articles
Browse latest Browse all 79901

Trending Articles



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