Trouble with SendGrid Weblink and custom action API

Hi everyone,

I’m facing another issue with connecting Sendgrid and a custom API action.

My custom action works perfectly by sending my email template to the chosen user. However, part of the action requires a weblink associated with the individual property info. The property info is selected by a dropdown menu that contains all the property titles and URLs.

The idea is whichever property that gets selected will be the weblink and the Sendgrid template contains a linked text called “click here” that is supposed to pull the property URL and be able to shift the user to the property listing associated with the URL (the “click here” isn’t clickable). In sendgrid I’ve deemed the URL as {{Weblink}} and created a weblink field in my custom action that uses a magic text which is the selected property URL.

Not sure if this is an issue within my custom action or in SendGrid, but would appreciate some help.
This is what my JSON looks like:

1 Like

Hi @paige.scholes,

I’m guessing in Sendgrid it’s weblink and not Weblink :eyes:

In your JSON try making the Weblink field to weblink! ( W to simple in your JSON body )

Thank you

Hey @dilon_perera

I’ll try without the capitalization but in their resources they use Weblink, here’s the link to it https://docs.sendgrid.com/ui/sending-email/weblink

By Website do you mean Weblink? Just make the W lower case?

1 Like

Okay not sure what I did but it’s working now :sweat_smile:, thanks for your help!

2 Likes

Got it. But in your template what did you add? Is it Weblink or weblink? I’m guessing it’s weblink because in your screenshot you have added Weblink and you said it’s not working.

Oops sorry :sweat_smile: :person_facepalming: Not Website it’s Weblink. Updated the post!

Hi! did you make this work for dynamic templates? you just set it in the api call as

“weblink”:“Weblink”

?

Hi,
For the issues with SendGrid, Weblink, and custom action API in Adalo:

  • Confirm SendGrid API key setup.
  • Check Weblink and custom action API configurations.
  • Consider using SMTPGet as an alternative for SendGrid.
  • Test thoroughly and provide specific error details for further assistance.
1 Like

I have also used services of smtpget, their customer support is impressive.

The issue may lie in the way the SendGrid template is configured to handle dynamic URLs. Ensure the placeholder {{Weblink}} is correctly mapped to the property URL in your JSON data. Consider testing with different SMTP providers like Mailgun, SMTPget or Amazon SES to troubleshoot and potentially resolve the problem.