Forum Discussion
jelleschuurman
2 years agoHelper I
API connection with headers renewing online? (Dyflexis)
Hi, I'm creating a report based on Dyflexis. to get data I have to connect to an API. The API requires this headers: Content-Type: application/json
Accept: application/json
Authorization: Token ...
lbendlin
2 years agoSuper User
No need for the question mark if you don't have Query parameters.
Not clear what is behind the xxxxxx but if that is variable then you need to use RelativePath.
Web.Contents - PowerQuery M | Microsoft Learn
jelleschuurman
2 years agoHelper I
The xxxxx is our organisationname, static.
When I remove the questionmark, I get this error:
DataSource.Error: Web.Contents failed to get contents from 'https://app.planning.nu/xxxxx/api/business/v3/scheduled$count=true&$top=0' (404): Not Found
Details:
DataSourceKind=Web
DataSourcePath=https://app.planning.nu/xxxxx/api/business/v3/scheduled$count=true&$top=0
Url=https://app.planning.nu/xxxxx/api/business/v3/scheduled$count=true&$top=0
- lbendlin2 years agoSuper User
Show the Power Query code. Make sure to use both RelativePath and Query.