I am trying to make REST API call. The output is in odata.metadat format, which I am not able to parse. I have mentioned the Format as JSON in the request headers s well as body format of the request.
When I try to preview the request using HTTPS Wizard the output is in JSON Format but when I run the activity Response is in odata.metadat format. I am attaching screenshots for the reference. Any help would be really appreciated.
Response: “{"token_type":"Bearer","expires_in":"86399","not_before":"1672964893","expires_on":"1673051593","resource":"00000003-0000-0eef7771-ce00-000000000000/c…9","access_token":"…}
"}”
Hi @Ravneet_Kaur ,
Sharing my understanding first.
You are trying to make http request for one rest api end point you are getting output in Odata metadata error instead of json format. Not sure why http wizard showing correct json results but the output getting in different format.
While checking the below stack overflow link for the same issue they provided solution that adding one parameter like $format and value is json to get the json output as result. Could you give try following the below link. Thanks