Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

193
Views
Get file path from list recent files using Microsoft graph API

I'm new to Microsoft graph API where I query:

GET /me/drive/recent

List recent files

But I have just one problem with the JSON response. The attribute: "webDavUrl" returns an encoded string with the file path.

Example of the attribute "webDavUrl" with the encoded value:

 "webUrl": sitename/Documents/Microsoft%20Teams%20Chat%20Files/Inla%CC%88mningsuppgift%20-%20test%20test.pdf",

Is it possible to return a file path in the list of recent files without the encoding in Microsoft graph API or do I need to decode the string myself?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Graph API returns only encoded url and you have to decode it by yourself.

In JS it should be simple by calling decodeURI() function.

const encodedUrl = 'sitename/Documents/Microsoft%20Teams%20Chat%20Files/Inla%CC%88mningsuppgift%20-%20test%20test.pdf';

// decode complete URL
const url = decodeURI(encodedUrl);
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!