Azure logic app Update Currency Exchange Rates parameter helps - azure

I need to develop the Logic apps to update Currency Exchange Rate.
I do have the Api looks like that
https://api.int.org/rest/default/V1/currency/exchange-rate/?sourceCurrency=USD&destinationCurrency=EUR
The destination currency is dynamic; it would INR,EUR or any other currency.
I want to pass the destination currencies using the parameters.
I need help. How do I need to pass the parameters?
enter image description here

All you need to do is add the parameter value in your parameters which enables you to add whenever it is required to build the flow.
Below is how the URI looks when reading from the parameters
https://api.int.org/rest/default/V1/currency/exchange-rate/?sourceCurrency=USD&destinationCurrency=#{parameters('destinationCurrency')}

Related

updating Stripe Price object

I had a question that seems to be easy but apparently is not working. I need to update the price for a Price object, but the following does not work. It gives the error that unit_amount is not known, although we use it to define the Price object initially:
stripe.Price.modify(
"price_1Hkb5FHdAaIdH7ntvOhZOyFK",
unit_amount=10,
)
You can not modify the price of a Price in the API. This is not something that is supported as there's no corresponding parameter on the API.
If you want to change the amount associated with a Price, you would create a new Price object and start using it instead. You could also make the old one inactive for example.
Another powerful feature of Stripe's API is the lookup_key on Price (doc). This lets you define a custom alias for your Price in your code. That way instead of hardcoding the price id price_123 in your code and having to update it to use price_abcd, you can transfer the old lookup key from the old price to the new one and have your code seamlessly start using the new one automatically. The idea is that you either cache the Price id associated with a lookup key based on webhooks for example or use the List Prices API and the lookup_keys parameter to quickly find the latest price id associated with a given lookup key!

how to get destination info(bank and card details) on stripe

Let's say I'm getting payouts information https://stripe.com/docs/api/payouts/list
I want to get the destination info, so if we take the example from the docs:
I want the details from that destination, I don't mean the specific details like the exact credit card number, but the info when going on the page itself, this one:
It's not working listing the banks accounts https://stripe.com/docs/api/customer_bank_accounts/list , I'm getting zero results when list them all
I'm using Golang library but I think this solution can be solved by others programming languages
I'm also using expandable fields but I get blank results on bank_account and card details
what is interesting however, is when debugging the page, they make request to v1/payouts/{id} with expand[]: balance_transaction and the returned data contains the bank information, but when I do it with their API, that info is not returned back
The Payout destination is expandable, meaning you can have it replaced with the full object by sending you request with expand[]=destination or for a list command data.destination.

Dynamically Selecting Map in Logic App

I am trying to build a logic app that receives incoming X12 EDI messages. I have an integration account set up and an agreement created. However, I don't see a way to associate a map with an agreement. It seems I have to hard code this in the logic app which would mean one logic app for each trading partner document type. Surely there is a way to select maps based on sender, receiver and document type. This is basic functionality for other EDI packages but I don't have a clue with logic apps.
Not sure whether there is a better way, but you can specify the map name at run time.
Then, as you are already using an integration account, you can externalise Business Rule using liquid templates, as explained here: https://blog.mexia.com.au/business-rules-on-azure-logic-apps-with-liquid-templates
You could pass some metadata about the trading partner to the liquid template, and then return the name of the map and use it in the mapping action.
HTH
Actually, this is almost as easy as BizTalk Server* ;)
Since the Map Name can be composed at runtime, you can upload your Maps using a set pattern, for example [SenderID] + "_" + [MessageType] -> "CONTOSOSID_810"
Then Initialize a Variable set to [SenderID] + "_" + [MessageType] and use that as the Map parameter to the Liquid Action.
Important Point: Every output of the X12 Decoder can loop so you may have to manually index the paths in the Initialize Variable depending on if/how you're debatching the transactions.
*BizTalk Server automatically resolved the Map based on the Party's message Type which you could use here, just that the names are a bit messy.

Set parameter value in SSRS report in sharepoint integrated mode with dropdown

I have a SSRS report, deployed in sharepoint integrated mode. It has a parameter ProjectId which is associated with a dataset means it has a drop down where the user can select any project.
I want to pass the parameter value from URL. When the parameter was not associated with a dataset, means it was a textbox. I was able to set the parameter value using rp: in URL but when I associate it with dataset it stop working.
Can anyone help me for this.
Try to check Query String (URL) Filter web part for this.
You could check below similar thread.
http://www.epmpartners.com.au/blog/connect-query-string-web-part-to-ssrs-report-viewer-web-part/

Using Average Exchange Rate in NetSuite

I want to use monthly average exchange rate in Suitlet, in place where there is a api call : nlapiExchangeRate.
To achieve this, built a currency type saved search (using a hack way of creating it) which takes base and transaction ccy and uses group by and average to calculate the exchange rate. The plan was to call this saved search in the suitlet where there is api call.
Now I am stuck as the saved search cant be located by the suitlet. Have any of you guys done anything like this before ? What approach did you use ?
You should be able to load the Saved Search with:
var savedsearch = nlapiLoadSearch('currency', id);
Please make sure that your search is public.
Use below code to run your search.
nlapiLoadSearch(null, searchId).runsearch();
Or alternatively,
nlapiSearchRecord('currency', id)

Resources