Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans