This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Greetings,
I have the below code, which each step passes the correct information, however, I'm still asked to specify my credentials.
On the #Authorization line I pass the access_token from the recently retrieved POST request, and stepping through the applied steps, it retrieves the correct value. Everything seems to work okay, other than the authentication piece.
If anyone has any insight on this, I would greatly appreciate it.
let
// Define your Microsoft Graph API URL for audit logs
apiUrl = "https://graph.microsoft.com/v1.0/auditLogs/directoryAudits",
//Get value of access_token from Post Request
AccessToken = fnGetAzureToken{0}[access_token],
// Define the required headers (you may need to add more headers as necessary)
headers = [
#"Authorization" = "Bearer " & AccessToken,
#"Content-Type" = "application/json"
],
// Create the HTTP request
auditLogsRequest = Web.Contents(apiUrl, [Headers=headers]),
// Parse the JSON response
auditLogsResponse = Json.Document(auditLogsRequest)
in
auditLogsResponse
Hi,
just a few thoughts:
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |