Skip to main content

Notifications

Microsoft Dynamics CRM forum
Unanswered

RetrieveExchangeRate plugin

Posted on by 5

Hi,

I've met one issue with the plugin for handling exchange rates. So it is possible to override the exchange rate used for calculation of base currency fields. To do this you need create a custom plugin that handles RetrieveExchangeRate message and sets ExchangeRate output parameter. 

This works fine when action is initiated by user. But if create or update is initiated by another plugin (thus we have plugin execution context depth equals 2 or more) the exchange rate plugin is even not executed. I've tried register it at different stages but still no success. 

In the tracing logs there is some odd message:

MessageProcessorCacheLoader.LoadCacheData(): MainOperation Stage not added for SdkMessage:[RetrieveExchangeRate], SdkFilter:[FilterId: {BB434168-894C-430F-9B40-60E4035C2D1D}, IsSystem: [True]], PrimaryOTC:[9105]. MainOperation Stage stepIds from Db:[]

I'm not sure what is wrong here. I've checked some database tables, what I can see there are two records for RetrieveExchangeRate in SdkMessageProcessingStep table and both are created for 10 stage. Of course this is not main stage which number is 30, but again is it possible to do something here?

So if anyone has good idea, please welcome.

Regards

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: RetrieveExchangeRate plugin

    Hi There,

    I have the same problem, have you found a workaround?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 16th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,522 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,441 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans