Challenge : Add companies logos from their website (logo.dev / Brandfetch)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Alexis
    Junior Member
    • Apr 2025
    • 6

    #1

    Challenge : Add companies logos from their website (logo.dev / Brandfetch)

    Hi guys,

    I'm trying to do something like HubSpot does : adding automatically the logo of a company based on its website.



    2 API are doing it for free (Logo.dev or BrandFetch )

    Goal: For the Account entity when I add or update its website field, I want EspoCRM to automatically fetch the company logo and show it in list/detail views.

    Constraint: I’d like to achieve this without custom PHP (ideally pure Workflow / Formula), to keep upgrades smooth.

    For exemple, Logo.dev gives a simple URL to fetch the logo :
    Code:
    https://img.logo.dev/espocrm.com?token=YOURFREEPUBLICKEY
    What I tried so far :
    Formula field to build the URL (works)

    Code:
    cLogovarchar = string\concatenate('https://img.logo.dev/', website, '?token=PUBLICKEY&size=200&format=png');
    ​
    The URL is stored correctly but of crouse Espo just displays the text, not the image.

    Questions to the gurus here :
    • How to make that happen ?
    • Have you ever tried automated logo fetching in Espo ?
    • I'm pretty sure we have to use the workflow (advanced pack) and Sent HTTP Request GET and workflow\lastHttpResponseBody (I'm still confused how to code that)
    It seems possible to add the logos of companies in list view, but I'm still new and struggling a bit.

    Thanks in advance if you’ve solved something similar, or to share a snippet. I'll be happy to report back. 🙏​

Working...