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
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Users online (1,273)