Skip to main content

BItly shorten URL Using AMPSCRIPT and API

Hello !!

%%[

var @URL

SET @URL = TRIM(HTTPGet(Concat("https://api-ssl.bitly.com/v3/shorten?access_token=Token&format=txt&longUrl=http://google.com?Email=",Email)))

]%%

 %%=v(TRIM(@URL))=%% 

This works perfect but i want to pass one more parameter with this that is "Week"

My Column name is Week and i want to pass week=True with this URL and then it needs to be shorten works fine with one Parameter but doesn't work with 2 parameters 

2 commenti
  1. 31 lug 2023, 04:33

    I have developed a comprehensive Native solution accessible on Salesforce AppExchange (http://cfsu.in/i-appexchange) that offers the ability to create both single and bulk Short URLs using various methods such as GUI, LWC Widget, globally exposed APEX code and by a REST Service. 

     

    For given use case, you can call our REST service to create short URLs with multiple parameters.

0/9000