Skip to main content

Notifications

Community site session details

Community site session details

Session Id : uBhVoCf3jG/GIABDUKTAK0
Power Automate - General Discussion
Answered

FedEx Create Shipment Action

Like (1) ShareShare
ReportReport
Posted on 6 Dec 2023 20:06:03 by 10,796 Super User 2025 Season 1

Has anyone used the FedEx Create Shipment action? In the connector reference, FedEx | Microsoft Power Automate, when I click on the documentation, it says it does not exist. I can add the connector to a workflow, but without documentation I am not sure how to configure it. Do you put the same body as if you were using an HTTP request?

David_MA_0-1701893028860.png

I have a FedEx developer account and have been having trouble with using HTTP requests and thought this action would be easier to use and more reliable.

  • David_MA Profile Picture
    10,796 Super User 2025 Season 1 on 04 Feb 2025 at 19:08:33
    FedEx Create Shipment Action
    I’m sorry @IS-04021645-0, but I cannot share the complete solution as it took a tremendous amount of effort and time to develop. The Power Platform forums are designed to address specific issues, but what you’re asking for would involve detailed assistance with developing an entire solution and that is worth a significant amount in consulting costs. This is quite complex, and the solution contains proprietary information related to our business. Given the complexity of what you’re trying to achieve and the need for automation, I recommend seeking the help of a consultant who can provide detailed assistance with developing your solution. Good luck!!
     
    I can point you to the FedEx developer portal, which is what I used to figure out how to automate our process with Power Automate. The FedEx API Developer Portal offers a comprehensive suite of tools and resources for integrating FedEx logistics solutions into business applications. It provides modern RESTful APIs for various functions such as tracking, shipping, and rate comparison. The API catalog includes popular APIs like Track API, Ship API, and Rate and Transit Time API, allowing businesses to streamline processes and improve efficiency.
     
    You can get to it from developer.fedex.com/api/en-us/home.html. You will need to register for an account, and then you will be able to develop something against their test environment. Once it is working, you need to send the solution to FedEx for validation, and once approved they'll give you the credentials to access the production environment.
     
    Note: I did not end up using the action in my original post. I used an HTTP POST request instead:
  • IS-04021645-0 Profile Picture
    2 on 04 Feb 2025 at 17:45:39
    FedEx Create Shipment Action
    anyway I could get this flow for the FedEx label creation and email? 
  • Verified answer
    LR-23071916-0 Profile Picture
    11 on 06 Aug 2024 at 00:26:27
    FedEx Create Shipment Action
    Yup, I actually did a different approach and went straight to PDF and circumvented OneDrive, then ran a base64() function on it to make the resulting contentBytes compatible with the 'Send an Email V2' action. Stick it in there as an attachment... or maybe Ill just drop them in a shared location. Looking good. You've been incredibly helpful, thank you so much. FedEx support was great as well - some of the best customer support I've ever received actually. Good to be able to go to the source.
     
     
     
     
     
     
     
     
     
     
  • David_MA Profile Picture
    10,796 Super User 2025 Season 1 on 05 Aug 2024 at 18:56:18
    FedEx Create Shipment Action
    LR-23071916-0  you are making good progress. Once you parse out the URL for the label, you would submit this HTTP request:
     
    The condition contains the Status Code from the HTTP response. 200 is success.
     
    And then the OneDrive actions for creating the PDF of the label are:
     
  • LR-23071916-0 Profile Picture
    11 on 05 Aug 2024 at 18:38:09
    FedEx Create Shipment Action
    Didn't get notified of your response until just now - but that makes sense about the messaging feature. At this point I have gotten certified for production and have put some successful requests through. Now I'm at the stage of needing to parse out the URL, get the PDF content, and either email it or move it to a shared location.
  • David_MA Profile Picture
    10,796 Super User 2025 Season 1 on 01 Aug 2024 at 19:40:15
    FedEx Create Shipment Action
    https://community.powerplatform.com/profile/?userid=0e9adf9e-2849-ef11-a317-7c1e5219fbc7 there no longer appears to be a way to send a private message in the communities. Not sure how to reach out, but if they bring the feature back we could set up a Teams call and I can walk you through my workflow. I would just need to make sure you're not a competitor of ours and you would need to sign an NDA.
     
    David
  • LR-23071916-0 Profile Picture
    11 on 23 Jul 2024 at 20:03:36
    FedEx Create Shipment Action
    Hi there again David, for some reason there was an authentication issue and I'm being denied access to the conversation we had the other day. 
    I am successfully able to get the oauth token and use it to successfully make a label via HTTP POST using the JSON schema you provided. Will continue tweaking it as needed with trial and error.

    However, I'm trying to verify the label itself, but Im not able to view it using the url in the response body. What was your next action after the label creation POST?
  • David_MA Profile Picture
    10,796 Super User 2025 Season 1 on 25 Mar 2024 at 20:01:54
    Re: FedEx Create Shipment Action

    The following is how the top portion of the HTTP request is formatted:

    David_MA_0-1711396717733.png

    Then this is the body:

     

     "labelResponseOptions": "URL_ONLY",
     "requestedShipment": {
     "shipper": {
     "contact": {
     "personName": "@{items('Apply_to_each')?['ReportedBy']}",
     "phoneNumber": @{items('Apply_to_each')?['Telephone']},
     "companyName": "@{items('Apply_to_each')?['Name']}"
     },
     "address": {
     "streetLines": [
     "@{items('Apply_to_each')?['Street']}"
     ],
     "city": "@{items('Apply_to_each')?['City']}",
     "stateOrProvinceCode": "@{items('Apply_to_each')?['Region']}",
     "postalCode": @{items('Apply_to_each')?['PostalCode']},
     "countryCode": "US"
     }
     },
     "recipients": [
     {
     "contact": {
     "personName": "@{items('Apply_to_each')?['ReturnAttention']}",
     "phoneNumber": 8005551212,
     "companyName": "@{items('Apply_to_each')?['ReturnCompany']}"
     },
     "address": {
     "streetLines": [
     "@{items('Apply_to_each')?['ReturnStreet']}"
     ],
     "city": "@{items('Apply_to_each')?['ReturnCity']}",
     "stateOrProvinceCode": "@{items('Apply_to_each')?['ReturnState']}",
     "postalCode": @{items('Apply_to_each')?['ReturnZIP']},
     "countryCode": "US"
     }
     }
     ],
     "shipDatestamp": "@{formatDateTime(utcNow(),'yyyy-MM-dd')}",
     "serviceType": "FEDEX_GROUND",
     "packagingType": "YOUR_PACKAGING",
     "pickupType": "DROPOFF_AT_FEDEX_LOCATION",
     "blockInsightVisibility": false,
     "shippingChargesPayment": {
     "paymentType": "SENDER"
     },
     "shipmentSpecialServices": {
     "specialServiceTypes": [
     "RETURN_SHIPMENT"
     ],
     "returnShipmentDetail": {
     "returnType": "PRINT_RETURN_LABEL"
     }
     },
     "labelSpecification": {
     "imageType": "PDF",
     "labelStockType": "PAPER_85X11_TOP_HALF_LABEL"
     },
     "requestedPackageLineItems": [
     {
     "weight": {
     "value": 10,
     "units": "LB"
     },
     "dimensions": {
     "length": 10,
     "width": 10,
     "height": 10,
     "units": "IN"
     },
     "customerReferences": [
     {
     "customerReferenceType": "RMA_ASSOCIATION",
     "value": "@{items('Apply_to_each')?['Document']}"
     },
     {
     "customerReferenceType": "CUSTOMER_REFERENCE",
     "value": "@{items('Apply_to_each')?['Description']}"
     }
     ]
     }
     ]
     },
     "accountNumber": {
     "value": "your account number"
     }
    }

     

    Keep in mind, this is specific to the shipment type we are sending, which is an RMA via FedEx Ground. If you are using a different service, they all have different requirements.

     

    It results in a label that looks like this:

    fedexlabel.png

  • Spolavori Profile Picture
    6 on 22 Mar 2024 at 19:42:43
    Re: FedEx Create Shipment Action

    Good afternoon, we have currently set up a developer account, but we have made some unsuccessful attempts. Could you share the content from within your http that sends the request? Can you explain to me better what 

    "creating a solution in your developer environment"

    I believe I have already configured the topics you mentioned above, but so far without success.

    Maybe I have the structure that you used and had success, I can solve it...

  • David_MA Profile Picture
    10,796 Super User 2025 Season 1 on 22 Mar 2024 at 18:44:42
    Re: FedEx Create Shipment Action

    Maybe, it is quite complicated and took me about six months to finally work out all the issues. Have you set up a developer account with FedEx? If not, that will need to be done first and then a solution will need to be created in their developer environment that has your company's correct information and the account that will be billed from the API calls. For each billing account, you'll need a separate solution. If you have all that, is there a specific action you are having trouble with?

     

    I have only figured this out for shipping an RMA through FedEx Ground. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,776 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,093 Most Valuable Professional

Leaderboard