Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 4/Wv7nHI1CZQFRfpHgi8q9
Power Automate - Building Flows
Answered

Hibob HR System HTTP Request Power Automate

Like (0) ShareShare
ReportReport
Posted on 15 Aug 2023 15:23:02 by 11

I am trying to setup a Power Automate Flow that uploads a document from SharePoint to the employee’s confidential folder from a form that is completed. 

 

Everything but the uploading is not working, which is why I think its something with my setup that I’m missing. I’ve tried matching it to the HTTP request on the HTTP docs, but having no luck at all Upload a file to the employee's confidential folder. (hibob.com)

  • alexw-shine Profile Picture
    11 on 27 Sep 2023 at 09:05:49
    Re: Hibob HR System HTTP Request Power Automate

    @plumpdj Thanks so much, thats done the trick 🙂

  • Verified answer
    plumpdj Profile Picture
    11 on 26 Sep 2023 at 15:06:04
    Re: Hibob HR System HTTP Request Power Automate

    @alexw-shine I've managed to get it working.  Thanks to this post.  I used this in my http body:

    {
     "$content-type": "multipart/form-data",
     "$multipart": [
     {
     "headers": {
     "content-disposition": "form-data; name=file; filename=Pleasework.pdf"
     },
     "body": @{body('Get_file_content')}
     }
     ]
    }

     

  • alexw-shine Profile Picture
    11 on 26 Sep 2023 at 13:12:31
    Re: Hibob HR System HTTP Request Power Automate

    @plumpdj not yet, I've got Bob and Microsoft investigating

  • plumpdj Profile Picture
    11 on 26 Sep 2023 at 12:49:03
    Re: Hibob HR System HTTP Request Power Automate

    @alexw-shine did you manage to get this working?  I'm trying to do exactly the same thing.

  • alexw-shine Profile Picture
    11 on 17 Aug 2023 at 13:09:45
    Re: Hibob HR System HTTP Request Power Automate

    @LokeshBysani When doing that I am having the same issue displaying the 400 error

  • LokeshBysani Profile Picture
    229 Super User 2024 Season 1 on 17 Aug 2023 at 12:42:05
    Re: Hibob HR System HTTP Request Power Automate

    @alexw-shine  unfortunately I cannot trigger this API from my machine. But after analysing the image your share and the documentation for API. 

     

    I see the content length header is missing in your request in power automate

    LokeshBysani_0-1692275937150.png

     

    One advise would be 

    1. Go to this website.  https://apidocs.hibob.com/reference/post_docs-people-id-confidential-upload

    2. provide the required details like ID, authorization, File you would like to upload . 

    3. Select HTTP code as below

    LokeshBysani_1-1692276032788.png

    4. In Power Automate under HTTP action provide the exact same information in body as you fetched form the step 3. For testing purpose dont pass anything dynamically. 

    5. Test it and if you see any error then share those details. 

     

  • alexw-shine Profile Picture
    11 on 16 Aug 2023 at 07:27:15
    Re: Hibob HR System HTTP Request Power Automate

    @LokeshBysani Flow Screenshot, HTTP 2 is the one that I am having issues with:

     

    alexwshine_0-1692170621334.pngalexwshine_1-1692170639947.png

     

    HTTP2 Screenshot with the my parameters:

    alexwshine_2-1692170780917.png

     

    Error I receive is a 400:

    {
        "statusCode"400,
        "headers": {
            "Transfer-Encoding""chunked",
            "Connection""keep-alive",
            "Referrer-Policy""origin-when-cross-origin, strict-origin-when-cross-origin",
            "Vary""Accept-Encoding",
            "X-Content-Type-Options""nosniff",
            "X-Permitted-Cross-Domain-Policies""master-only",
            "X-XSS-Protection""1; mode=block",
            "CF-Cache-Status""DYNAMIC",
            "Strict-Transport-Security""max-age=6",
            "CF-RAY""7f72601caa280a53-AMS",
            "Date""Tue, 15 Aug 2023 15:12:22 GMT",
            "Server""cloudflare",
            "Content-Type""text/html; charset=UTF-8",
            "Content-Length""2182"
        },
        "body""\n\n<!DOCTYPE html>\n<html lang=\"en\">\n    <head>\n        <title>Bad Request</title>\n        <link rel=\"shortcut icon\" href=\"data&colon;image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAlFJREFUeNqUU8tOFEEUPVVdNV3dPe8xYRBnjGhmBgKjKzCIiQvBoIaNbly5Z+PSv3Aj7DSiP2B0rwkLGVdGgxITSCRIJGSMEQWZR3eVt5sEFBgTb/dN1yvnnHtPNTPG4PqdHgCMXnPRSZrpSuH8vUJu4DE4rYHDGAZDX62BZttHqTiIayM3gGiXQsgYLEvATaqxU+dy1U13YXapXptpNHY8iwn8KyIAzm1KBdtRZWErpI5lEWTXp5Z/vHpZ3/wyKKwYGGOdAYwR0EZwoezTYApBEIObyELl/aE1/83cp40Pt5mxqCKrE4Ck+mVWKKcI5tA8BLEhRBKJLjez6a7MLq7XZtp+yyOawwCBtkiBVZDKzRk4NN7NQBMYPHiZDFhXY+p9ff7F961vVcnl4R5I2ykJ5XFN7Ab7Gc61VoipNBKF+PDyztu5lfrSLT/wIwCxq0CAGtXHZTzqR2jtwQiXONma6hHpj9sLT7YaPxfTXuZdBGA02Wi7FS48YiTfj+i2NhqtdhP5RC8mh2/Op7y0v6eAcWVLFT8D7kWX5S9mepp+C450MV6aWL1cGnvkxbwHtLW2B9AOkLeUd9KEDuh9fl/7CEj7YH5g+3r/lWfF9In7tPz6T4IIwBJOr1SJyIGQMZQbsh5P9uBq5VJtqHh2mo49pdw5WFoEwKWqWHacaWOjQXWGcifKo6vj5RGS6zykI587XeUIQDqJSmAp+lE4qt19W5P9o8+Lma5DcjsC8JiT607lMVkdqQ0Vyh3lHhmh52tfNy78ajXv0rgYzv8nfwswANuk+7sD/Q0aAAAAAElFTkSuQmCC\">\n        <style>\n            html, body, pre {\n                margin: 0;\n                padding: 0;\n                font-family: Monaco, 'Lucida Console', monospace;\n                background: #ECECEC;\n            }\n            h1 {\n                margin: 0;\n                background: #AD632A;\n                padding: 20px 45px;\n                color: #fff;\n                text-shadow: 1px 1px 1px rgba(0,0,0,.3);\n                border-bottom: 1px solid #9F5805;\n                font-size: 28px;\n            }\n            p#detail {\n                margin: 0;\n                padding: 15px 45px;\n                background: #F6A960;\n                border-top: 4px solid #D29052;\n                color: #733512;\n                text-shadow: 1px 1px 1px rgba(255,255,255,.3);\n                font-size: 14px;\n                border-bottom: 1px solid #BA7F5B;\n            }\n        </style>\n    </head>\n    <body>\n        <h1>Bad Request</h1>\n\n        <p id=\"detail\">\n            For request 'POST /people/3164073846084993598/confidential/upload' [Unexpected end of input]\n        </p>\n\n    </body>\n</html>\n\n\n\n\n\n\n\n"
    }
  • LokeshBysani Profile Picture
    229 Super User 2024 Season 1 on 15 Aug 2023 at 16:52:31
    Re: Hibob HR System HTTP Request Power Automate

    @alexw-shine  Share more information to get a clear idea

    1. your flow screenshot

    2. HTTP action. Endpoint and parameters, request body you are passing

    3. Error you are receiving from Power Automate when you ran it.

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,745 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,091 Most Valuable Professional

Leaderboard
Loading started