Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

195
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda