Forum Discussion
Doc-tan
6 months agoRegular Visitor
Custom connector API - TOKEN (error binary)
I have create a custom connector but i can not see and use the token because of error Details: "We cannot convert a value of type Binary to type Text." at the postman i can post the same url wi...
- 6 months ago
I solved my problem with putting url, header and body in vars and used these in web.contents.
letcreds = Extension.CurrentCredential(),urlToken = Server &"SignIn",HeadersToken = [#"Content-Type" = "application/json",#"api-version" = "1.0"],BodyToken = Json.FromValue([username = creds[Username],password = creds[Password],afm = "",code = ""]),ResponseToken =Web.Contents(url,[Headers = HeadersToken ,Content = BodyToken]),JsonResponseToken = Json.Document(ResponseToken),Token = JsonResponseToken[token]inTokenThank for all your answers!!
v-hjannapu
6 months agoCommunity Support
Hi Doc-tan,
I hope the information provided above assists you in resolving the issue. If you have any additional questions or concerns, please do not hesitate to contact us. We are here to support you and will be happy to help with any further assistance you may need.
Regards,
Community Support Team.
Doc-tan
6 months agoRegular Visitor
Hello,
I think this Web.Contents - PowerQuery M | Microsoft Learn help me to change my code.
- v-hjannapu6 months agoCommunity Support
Hi Doc-tan,
Thank you for sharing the update. If you encounter any problems or have questions after going through the document, feel free to reach out here.
Regards,
Community Support Team.