Technology Blog Posts by Members
cancel
Showing results for 
Search instead for 
Did you mean: 
Souravraj_Maitra
Explorer
739

Hi all. Today I will explain the use case of currency conversion that I have made using Integration Suite. Below I have attached the image of the Integration Flow that I have created:

Souravraj_Maitra_0-1748748030787.png

 

In the Currency Parameter setting, we have set the 3 parameters : one for storing the currency in which we will insert our amount (say USD), second one for storing the target currency (INR), and the third one is for storing the amount which we want to convert to the target currency. Also, we set our APIKey here to acces the external api using Request Reply. Next we Request Reply to an external api, say fastFOREX, for fetching the base currency and the target currency/currencies rate(s). Then we use the script Amount conversion to convert the given amount to target currency amount. Then we formulate our final message in Payload Creation that we want to be sent to the target mail ids using mail adapter.

Here's a sample mail that one will get after deploying it:

Souravraj_Maitra_1-1748748030834.png

 

If you want to change the currencies you can do the same by changing the toCurrency and fromCurrency properties in the 'Currency Parameter setting' Content Modifier. 

Hope you like it.

#btp cpi @Mukulvarshney8 @Bibekananda1231