I am currently looking at using a number of APIs to improve data quality and reduce data entry where possible.
For example UK banks use two identifying characteristics,
Sort Code - which identifies the bank and branch, and
Account Number - which identifies the account (obvs).
Now from the Sort Code you can evaluate a range of useful information, such as Name of the Bank, Address of the Bank and the Telephone number. But more interestingly you can identify the BIC / SWIFT code and then identify the IBAN, which then makes international payments easier (as all of EU use IBAN and a growing number of non EU countries).
So far so good, except that I'd like to dynamically add all of this information while the user is keying in the form. Why, would I do that if the information is all available elsewhere? Because the EICSD where it comes from is borne from EDI standards from mainframe times and sometimes will split a bank name or address in a less than optimal manner. Therefore I'd like to capture the data on the form while the user is keying it in allowing them to tidy up the single source of truth data.
The challenge:
You cannot REQUEST SERVICE from a business rule, which is essentially where you'd need to trigger it.
Does anyone have any suggestions as to how to make it call the API before the form is saved?