I am developing a teams app and want to achieve an "open file in teams" button.
I first use this api to get some urls: /me/drive/recent?$top=5&$select=id,name,webUrl,createdBy,lastModifiedBy,remoteItem. And then I use the webDavUrl from response.value.remoteItem.webDavUrl as the link to open files in Teams view. It works in my pc, but does not in my mobile platform.
I want to know if it is right to use this webDavUrl to open files in Teams view. If so, what's wrong when I use it in mobile platform.
I am developing a teams app and want to achieve an "open file in teams" button. I first use this api to get some urls:
/me/drive/recent?$top=5&$select=id,name,webUrl,createdBy,lastModifiedBy,remoteItem
. And then I use thewebDavUrl
fromresponse.value.remoteItem.webDavUrl
as the link to open files in Teams view. It works in my pc, but does not in my mobile platform. I want to know if it is right to use thiswebDavUrl
to open files in Teams view. If so, what's wrong when I use it in mobile platform.