Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3441

OData - currency of money field

$
0
0

Hi experts,

 

For a business case I want to retrieve opportunity data from C4C via OData (or SOAP). This can be easily achieved by doing a rest call to the following url: https://my[tenant].crm.ondemand.com/sap/c4c/odata/v1/c4codata/OpportunityCollection?$format=json&$select=ExpectedValue

 

But the problem is with requesting the Expected Value of an opportunity that all values will have a different Currency(code). Because they are stored in the system with their own currency.

 

Is there a way to retrieve all Expected Values with the same currency, for example USD?

 

The reason I think it should be possible is because in the Opportunity Header datasource you can choose the main currency and all values are recalculated to that currency.

 

A standard filter is not an option, because then only the ones that are valid are returned:

$filter=ExpectedValue/currencyCode eq 'USD' only gives the Opportunities where the currency of Expected Value is USD.

 

Does someone have an idea?

 

Thanks!


Viewing all articles
Browse latest Browse all 3441

Trending Articles



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