I'm trying to call another provider's API through X++, but am getting a 401 unauthorized error. I'm able to connect if I post the GET request through Postman or Flow, but I'm having trouble converting this process to X++.
This is what my code looks like:

And this is what my Flow looks like. I'm just doing a GET request using the HTTP request. This Flow works properly and gets the data I'm expecting without an unauthorized error. What could I be missing in my X++ code?
