In the invoice entity, we wanted to change the exchange rate field but couldn’t do it because we were unable to change the value of base currency. So, we decided to use shared variables to change the exchange rate field of the invoice entity. Let’s see how it’s done.
Add a data into shared variable context in plug-in.
And the below code shows shared variable data used in another plug-in.
After completing plug-in registration in CRM, register a new step, i.e., select update event and primary entity as invoice and select pre-operation.
Register a new step into another plug-in, i.e., select retrieve exchange rate event &primary entity as transaction currency and select post-operation.
Do you have any requirement for CRM Plug-ins? Get help from experts. Contact email@example.com now!