Forum Discussion
We are leveraging the text1 field = USD for accounts and added in the flow dimension If (api.Entity.HasChildren()) And LocalCurrency.Name.ToString <> "USD" Then Api.Data.Calculate(....). Even using this it pulls local currency to the parent and then translates it to USD.
Ah, I guess you're using a specific Flow Processing Type then...? It's a bit above my pay grade, but for the benefit of anyone who might really know how it works, you might want to paste the "Flow Processing" section of your Flow member to complete the picture.
As general tips, always make sure your "if" blocks actually get executed, liberally dropping something like api.LogMessage("running") inside them and then checking the log; and maybe use api.Cons.IsLocalCurrencyForEntity or isForeignCurrencyForEntity, rather than comparing strings (which should be done with .xfEqualsIgnoreCase anyway).
Related Content
- 2 years ago
- 10 months ago