I want to call an address verification API (Green ID) on CRM Accounts and Contacts. There are two API POST methods to call in two triggering points, 1 - Basic_Verification() needs to be called when a flag field (ready to verify) is changed to true 2 - Specific_Addr_Verification() needs to be called when a user manually clicks on a Ribbon button on the form (PowerApps form Command)
This is a SOAP API, and when calling the API POST methods, I have to build the SOAP message body using the Account/Contact record details.
I am not sure what is the ideal way to develop this functionality. The options I am considering are as below,
- Create a custom API and MS Flow (Power Automate) to call the API. Then trigger the flow using action, power fx row update or by javascript. Please suggest the best approach for each of the two scenarios above.
- Create an HTTP request in power automate and trigger it on row update
- Directly call the API using javascript function (webresource) on button click and form field update events
- Custom plugin triggered by the event, c# code to send web requests
Or else please suggest any other suitable implementation methods for this scenario.
There is no right or wrong solution. All are suitable viable options, based on your requirements/reusability needs - one or other approach is recommended.
I’ll explain what we did recently, we had some enterprise level Mulesoft APIs and we developed custom connectors around that API. So now all CRM dev teams can use that connector in their Flows based on their needs. Even if needed Flow can be invoked from JS web resource..
Basically it’s standard best practice at each level, therefore it can be rationalized later on. Some opinions will come this is as an overkill.