Hi everyone,
I'm working on a custom implementation and would like to know if it's possible to call an external API directly from a Workflow or Formula in EspoCRM.
Here’s my scenario:
I have a field called CEP (which is a Brazilian postal code). I want to automatically fetch and populate address fields like street, city, and state using the ViaCEP API, which returns this data based on the provided CEP.
Example API:
I’ve explored using Workflows and Formulas, but it seems they don’t support external API calls directly.
Is there a recommended approach for doing this?
Maybe through hooks or custom service classes?
Any suggestions or examples would be greatly appreciated!
I'm working on a custom implementation and would like to know if it's possible to call an external API directly from a Workflow or Formula in EspoCRM.
Here’s my scenario:
I have a field called CEP (which is a Brazilian postal code). I want to automatically fetch and populate address fields like street, city, and state using the ViaCEP API, which returns this data based on the provided CEP.
Example API:
I’ve explored using Workflows and Formulas, but it seems they don’t support external API calls directly.
Is there a recommended approach for doing this?
Maybe through hooks or custom service classes?
Any suggestions or examples would be greatly appreciated!
Comment