I have been struggling to get HTTP Request Activity working for Microsoft API for past 2 weeks. It works fine in Postman/ Insomnia. However, it doesn’t work in HTTP Request activity.
The weird thing about this API is that even in Postman/ Insomnia, it only accepts credentials/ parameters in Multipart Form or Form URL Encoded data. And, I don’t see any way to add Multipart Form or Form URL Econded data in Body field in the HTTP Request activity.
Also, I am not sure whether application/x-www-form-urlencoded OR multipart/form-data should be updated in Body Format or under Header section
Can someone please help me on this at earliest.
My ultimate goal is to use IMAP activity with OAuth2.0 which requires access_token. And, in order to generate access_token, I need to call an API.
Please find below Postman and Insomnia snippets for your reference.
@Cristian_Negulescu can you please help here? I have already seen your answer on other post where you have suggested to use Invoke Code activity. However, I would like to use HTTP Request activity only as it requires less programming skills and its less complex.
Hi @kiran.suryavanshi , try creating a big json array with whatever data you need using invoke methods (should look like raw body from postman I think) and then pass it as body inside the http request properties.