2

I am required to create a share feature (like the one in Sharepoint or OneDrive) for documents, items and folders, for Sharepoint online and on-premise, in a Xamarin app.

What I have:

  • Sharepoint REST API.
  • Xamarin app connected to a Sharepoint online and on-premise server.
  • Sharepoint content is available in Xamarin app and user can select the option Share item which I have to implement.

What I need:

  • The logic to implement to be able to create the shareable link and actually share it like the Sharepoint website online does it (check screen shot).

Sharepoint Online share feature performed in a folder

1 Answers1

3

@Mohamed Aloui,

You could have a try the below endpoint to create a sharing link:

/_api/Web/Lists/GetByTitle(‘Documents’)/Items(1)/sharelink

or

/_api/web/GetFileByUrl(@v)/ListItemAllFields/ShareLink?@v='/sites/testsite/Mylib/test.txt'

You can get an example through F12 tool:

enter image description here

enter image description here

Below is a tutorial blog and a similar thread, you may take a reference:

BR

Baker_Kong
  • 1,739
  • 1
  • 4
  • 9