cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ddlis
Regular Visitor

HTTP Request GET Webhook returns 400 and success = false

I am trying to automate updating Salesforce with information from an online training platform (Thinkific) 

I have done so before in Zapier, but when using Power Automate i get a response status: 400 and repeated attempts on the platform side. 

I get a notification to add headers, but dont know where to add them or if that's even a related issue.. 

 

Payload example 

{
"id": "01EWWKJ6PK47WSFZ0ZYZG7V3Q7",
"resource": "enrollment",
"action": "completed",
"tenant_id": "54013",
"tenant_global_id": "a8928b80-b4e3-4946-b37d-f5775ec4b36f",
"created_at": "2021-01-25T11:06:19.000Z",
"timestamp": 1611572779,
"payload": {
"id": 42,
"created_at": "2016-01-25T11:06:19.725Z",
"expiry_date": "2016-01-25T11:06:19.725Z",
"course_id": 4,
"percentage_completed": "0.53",
"completed_at": "2016-01-25T11:06:19.725Z",
"free_trial": false,
"started_at": "2016-01-25T11:06:19.725Z",
"activated_at": "2016-01-25T11:06:19.725Z",
"updated_at": "2016-01-25T11:06:19.725Z",
"user": {
"id": 72,
"first_name": "[TEST] John",
"last_name": "Doe",
"email": "[TEST] john@doe.com"
},
"course": {
"id": 4,
"name": "[TEST] lorem ipsum"
}
}

 

My schema 

{
    "type""object",
    "properties": {
        "id": {
            "type""string"
        },
        "resource": {
            "type""string"
        },
        "action": {
            "type""string"
        },
        "tenant_id": {
            "type""string"
        },
        "tenant_global_id": {
            "type""string"
        },
        "created_at": {
            "type""string"
        },
        "timestamp": {
            "type""integer"
        },
        "payload": {
            "type""object",
            "properties": {
                "id": {
                    "type""integer"
                },
                "created_at": {
                    "type""string"
                },
                "expiry_date": {
                    "type""string"
                },
                "course_id": {
                    "type""integer"
                },
                "percentage_completed": {
                    "type""string"
                },
                "completed_at": {
                    "type""string"
                },
                "free_trial": {
                    "type""boolean"
                },
                "started_at": {
                    "type""string"
                },
                "activated_at": {
                    "type""string"
                },
                "updated_at": {
                    "type""string"
                },
                "last_percentage_completed": {
                    "type""string"
                },
                "user": {
                    "type""object",
                    "properties": {
                        "id": {
                            "type""integer"
                        },
                        "first_name": {
                            "type""string"
                        },
                        "last_name": {
                            "type""string"
                        },
                        "email": {
                            "type""string"
                        }
                    }
                },
                "course": {
                    "type""object",
                    "properties": {
                        "id": {
                            "type""integer"
                        },
                        "name": {
                            "type""string"
                        }
                    }
                }
            }
        }
    }
}

 

2 REPLIES 2
ManishJain
Solution Sage
Solution Sage

Hi @ddlis ,

 

You are missing some parts in the request you are making, it could be either Authentication token or something else.

 

thanks

ddlis
Regular Visitor

Thanks. But I dont know where to enter them, as neither Power Automate or the training platform (Thinkific) seems to offer the option to add them. 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (4,709)