Hi all,
I've got a Flow that is being passed a shipping company name (UPS or DHL) and a Tracking Number ('TrackingNumber')and I need it to dynamically build the URL to paste into an e-mail to track a shipment. Currently I'm just handling UPS and it's working fine if I use this in my send an e-mail step.
UPS is http ://wwwapps.ups.com/WebTracking/track?track=yes&trackNums=@{triggerBody()['TrackingNumber']}">@{triggerBody()['TrackingNumber']} (i have a href tags in it but its messing up this post so I removed them)
Now I'm also initializing a value im calling "Shipper" and it will be set to "UPS" or "DHL". If it's UPS, I want it to leverage the above URL. If it's DHL, I want it to be (my dhl url stuff) /en/express/tracking.html?AWB=@{triggerBody()['TrackingNumber']}">@{triggerBody()['TrackingNumber']}</a>
I can't seem to get my ifs and variables and concat just right :(. Basically I need it to be If the variable "Shipper" = UPS use the UPS url and if "Shipper" = "DHL" use the 2nd.
Thanks in advance!