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.
Thanks in advance for your help!
Teresa
Solved! Go to Solution.
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.
STEP 2: Select the trigger "When an item or a file is modified" and map your site address and list.
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).
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.
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.
STEP 6: I was able to use "is equal to" for Courier and Other.
Thank you for your help Prasad. I hope this solution helps someone else.
Teresa
So are you invoking Power Automate Flow from Power Apps ? If yes, you can pass parameters of Dropdown selection and the tracking number.
Then within Power Automate, You can use Conditions to generate deep link by concatenating strings. Finally send email.
Hello Prasad,
Thank you for the reply. Since I'm a beginner I was wondering if you could take a look at the screenshots and text I have below and give me the advice I need to complete the flow. I really appreciate Super Users like yourself helping the Community Members overcome final phase hurdles.
After working on the flow a bit more I decided to simplify my original request. I would like to add a check for the Shipping Method to send out 1 of 4 emails based on whether whether the Shipping Method starts with UPS, FedEx, Courier or Other. That should be sufficient. I can customize the messages for each scenario. Since there are sometimes going to be multiple tracking numbers for a given request I'd rather avoid an overly complex situation and just provide a link to the generic tracking site. Our employees haven't had tracking info sent to them to date much less the generic tracking site link so I think they will view this as a vast improvement.
Here is what my Logistics Team Member Screen within the Shipping app looks like. The staff member scans the shipping label barcodes, confirms the Shipping Method requested by the user hasn't changed, changes the Status to Shipped and finally clicks the blue button to send the email confirmation to the user. The first time the notification is sent it should be done only OnSuccess of the Power Apps form so I am currently using the "When an item is created or modified trigger". Is that the correct one to use? I don't want the flow to run every time, only when the Status is equal to Shipped so how do I need to modify the trigger to ensure that happens?
Here is the flow I have thus far. I have quite a few columns in my SharePoint list so I would like to only bring back the ones I need for the flow. I'm not sure how to do that. I can try Googling it over the weekend, but if you have any advice I would appreciate it. As previously mentioned, I'm not sure how to modify the trigger based on "Shipped" status. I wasn't completely sure whether to use Get item or Get items. Can you confirm I guessed right?
As previously mentioned, after the Get item step I need some kind of test to see if the Shipping Method value starts with UPS, FedEx, Courier or Other so I can send the emails appropriately. I was thinking it might be easiest to create 4 different email branches based on the results of that flow step. A UPS email example is below.
This is the only version of the email I have created at this point. Before I go any further I was hoping if you could take a look and let me know if it looks right. I put my email address in the "Send As" for now, but plan to change it to an Office365 Logistics email address prior to launch. Any caveats I should be aware of?
Thanks again Prasad. I hope you have a nice holiday weekend. I'll be working on my Power App and Flow Saturday-Monday so if you have a chance to respond I'll be watching for your reply. Hopefully you are not a hopeless workaholic like me and will be taking some time off. Let me know if there is any additional information I can provide that will help you help me. Kind regards, Teresa
When an Item is created OR modified should work. In the trigger, you can go to settings and add a trigger condition. You can check status = Shipped. Refer below.. Ensure that column name and value is correct. This way, flow will only run if status is shipped.
@equals(triggerbody()?['ShippedStatus'], 'Shipped')
Other option, I recommend is to use Power Apps Trigger in the Power Automate and invoke it based on your requirement from Power Apps. So when Status is changed within power apps, you can invoke the trigger. Refer Video from our community expert @RezaDorrani --> https://www.youtube.com/watch?v=emAhLzVG9bM
Lastly, I reviewed your email settings and they look fine to me.
Hello Prasad,
Thanks again for the advice. I watched Reza's video. I'm a big fan and have used many of his techniques in my apps, but I don't think this video was a match for my particular use case. I did find a post from Laura Rogers and also a Community Post that suggest the "When an item or a file is modified" trigger that I think might be more inline with what I am trying to achieve, but I have a variation that I'm hoping you can help me with. Not only do I want to only send the email when the status is equal to "Shipped", but I also need to send out different emails depending on what shipping method was chosen. There are four options: UPS, FedEx, Courier or Other. Courier and Other are pretty straightforward, but I could use some help with StartsWith expressions for UPS and FedEx since users are able to select from a menu of options for each in an app dropdown called ShipVia (e.g. UPS Ground, UPS Next Day Air, UPS 2nd Day Air, etc.)
Here is the update: I changed my trigger to "When an item or a file is modified". I clicked the ellipsis dots next to the trigger and entered the expression seen in screenshot 2. Finally I added 4 parallel conditions for each shipping option ( UPS, FedEx, Courier and Other) to check not only if the Status was equal to "Shipped", but also which of the 4 basic shipping options applies. Is that how you would do it? Please scroll down to SCREENSHOTS 3 and 4 to see an example of the UPS scenario. If you give me a StartsWith expression for this one, I should be able to figure out the FedEx expression. Would I just put "Other" and "Courier" in quotation marks?
SCREENSHOT 1
SCREENSHOT 2
SCREENSHOT 3
SCREENSHOT 4
Thanks for your help Prasad. I wish you and your family a happy Fourth!
Teresa
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.
STEP 2: Select the trigger "When an item or a file is modified" and map your site address and list.
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).
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.
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.
STEP 6: I was able to use "is equal to" for Courier and Other.
Thank you for your help Prasad. I hope this solution helps someone else.
Teresa
Dear Community Members, We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd. During this period, members will not be able to Kudo, Comment, or Reply to any posts. On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities. What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!
We are excited to announce the Summer of Solutions Challenge! This challenge is kicking off on Monday, June 17th and will run for (4) weeks. The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions to as many questions as you can. Answers can be provided in all the communities. Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”) - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024 Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods. You must enter into each weekly Entry Period separately. How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different. Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers. At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing. Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner. A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random. Individuals will be contacted before the announcement with the opportunity to claim or deny the prize. Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners. Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event. ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE** Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Community MembersNumber SolutionsSuper UsersNumber Solutions Deenuji 9 @NathanAlvares24 17 @Anil_g 7 @ManishSolanki 13 @eetuRobo 5 @David_MA 10 @VishnuReddy1997 5 @SpongYe 9JhonatanOB19932 (tie) @Nived_Nambiar 8 @maltie 2 (tie) @PA-Noob 2 (tie) @LukeMcG 2 (tie) @tgut03 2 (tie) Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 2: Community MembersSolutionsSuper UsersSolutionsPower Automate @Deenuji 12@ManishSolanki 19 @Anil_g 10 @NathanAlvares24 17 @VishnuReddy1997 6 @Expiscornovus 10 @Tjan 5 @Nived_Nambiar 10 @eetuRobo 3 @SudeepGhatakNZ 8 Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 3:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji32ManishSolanki55VishnuReddy199724NathanAlvares2444Anil_g22SudeepGhatakNZ40eetuRobo18Nived_Nambiar28Tjan8David_MA22 Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 4:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji11FLMike31Sayan11ManishSolanki16VishnuReddy199710creativeopinion14Akshansh-Sharma3SudeepGhatakNZ7claudiovc2CFernandes5 misc2Nived_Nambiar5 Usernametwice232rzaneti5 eetuRobo2 Anil_g2 SharonS2
On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners. The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights. Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.
We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for. We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer. Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together. Here's to new beginnings and endless possibilities! If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport. To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages