Data source type of data stream for pulling data from microsoft intune devices

AnubhootiJ
Tera Contributor

Hi All,

In Rest Step of data stream, I used Base Url(coming from connection alias) and Resource path to form a request url 
but in the output it is coming https://graph.microsoft.com/%0D%0A%0D%0A%0D%0A%0D%0Abeta//deviceManagement/managedDevices

 
 

 

1 REPLY 1

Vishnu-K
Tera Guru

Hi @AnubhootiJ ,

 

The issue is caused by hidden whitespace or newline characters (%0D%0A = carriage return + line feed) in your Base URL or Resource Path fields. Here's how to fix it:

 

Fix Steps:

  1. Check your Connection Alias Base URL:
    • Navigate to Connections & Credentials → Connection & Credential Aliases
    • Open the alias being used in your Data Stream
    • Edit the Connection record and inspect the Base URL field
    • Clear the field completely, then manually type (not paste) https://graph.microsoft.com — or paste it into a plain text editor first to strip invisible characters, then copy it again
  2. Check your REST Step Resource Path:
    • In your Data Stream's REST step, check the Resource Path field (e.g., /beta/deviceManagement/managedDevices)
    • Again, clear and retype it to eliminate any hidden characters
  3. Avoid double slash (//):
    • The resulting URL also has // before deviceManagement, meaning your Resource Path likely starts with /beta/... while the Base URL already ends with a / (or vice versa). Make sure only one side has the slash — e.g., Base URL ends without / and Resource Path starts with /.

Correct configuration should look like:

This will produce the correct URL: https://graph.microsoft.com/beta/deviceManagement/managedDevices

 

If this answer helps you, please do mark it as helpful and accept the solution

 

Thanks,

Vishnu