Skip to main content
Community site session details
Power Automate - Building Flows
Answered

UPS, FedEx Tracking URLs

Like (0) ShareShare
ReportReport
Posted on 2 Jul 2021 20:50:29 by

Hello,

 

I am working on a Shipping Request Power App. When the Logistics Team presses a button to send a shipping confirmation to the user, I would like the email notification to include either the UPS or FedEx tracking number link in the body of the email depending on how the item was shipped. As you know, there are many different shipping options for each carrier so I'm wondering how best to handle that in Power Automate. I'm a rank beginner in Power Apps so I would appreciate your advice.

 

In the Power App I leverage the StartsWith function. Does Power Automate have that function?

 

I have a status pop-up screen on the home page. The OnSelect property of the button is:

 

If(StartsWith(ddShipMethodLS.Selected.Value, "UPS "), Launch("https://www.ups.com/track?loc=en_US&requester=ST/"), StartsWith(ddShipMethodLS.Selected.Value, "FedEx "), Launch("https://www.fedex.com/en-us/tracking.html"))

 

 

The Text property of the button is:

 

If(StartsWith(ddShipMethodLS.Selected.Value, "UPS "), "CLICK HERE to track your UPS shipment(s).", StartsWith(ddShipMethodLS.Selected.Value, "FedEx "), "CLICK HERE to track your FedEx shipment(s)")

 

 

The icing on the cake would be to not only have it go to the generic tracking urls noted above, but actually have it "deep link" dynamically to the actual tracking profile as seen in a screenshot below of something I ordered online. The email has the text "The tracking number is: 123XYZ456LMO." The tracking number is made up, but you get the idea. When I click on the url it dynamically takes me to the specific detail screen.

 

TrackingSS.png

 

Thanks in advance for your help!

Teresa

  • Verified answer
    tagustin2020 Profile Picture
    on 07 Jul 2021 at 20:44:27
    Re: UPS, FedEx Tracking URLs

    @PrasadAthalye 

     

    Hello Prasad,

     

    I was able to figure out a solution. I am posting the steps here for anyone else who might benefit. These steps assume a basic knowledge of Power Automate.

     

    STEP 1: Turn on versioning settings in your Sharepoint list.

    SS1B.png

     

    STEP 2: Select the trigger "When an item or a file is modified" and map your site address and list.

     

     SS1.png

     

    STEP 3: Click the ellipsis dots in the upper right-hand corner (see screenshot above) and click on Settings to access this pane. Enter the expression shown in the Trigger Conditions field being careful to substitute your own column name (mine was Status) and Status Value (I have a SharePoint choice column, I chose the 'Shipped' value). 

     

    SS1A.png

     

    STEP 4: Insert a new step "Get changes for an item or a file (properties only). Map to your site address and list name. Enter dynamic content of ID and TriggerWindowStartToken.

    SS2.png

     

    STEP 5: Add however many parallel conditions you need (I had 4). For UPS and FedEx, I chose the dynamic field for the Shipping Method (a Choice column in my Sharepoint list) and chose the starts with option. I then entered UPS and FedEx in each of the respective condition steps. The UPS version is shown below. I crafted an email for the Yes and left the No blank.

    SS3.png

     

    STEP 6: I was able to use "is equal to" for Courier and Other.

    SS5.png

     

    Thank you for your help Prasad. I hope this solution helps someone else.

    Teresa

     

     

     

     

     

Helpful resources

Quick Links

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Loading started
Loading started
Loading complete