web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Hibob HR System HTTP R...
Power Automate
Answered

Hibob HR System HTTP Request Power Automate

(0) ShareShare
ReportReport
Posted on 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)

Categories:
I have the same question (0)
  • LokeshBysani Profile Picture
    229 Super User 2024 Season 1 on at

    @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.

  • alexw-shine Profile Picture
    11 on at

    @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 at

    @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 at

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

  • plumpdj Profile Picture
    11 on at

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

  • alexw-shine Profile Picture
    11 on at

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

  • Verified answer
    plumpdj Profile Picture
    11 on at

    @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 at

    @plumpdj Thanks so much, thats done the trick 🙂

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard