Tag Info

New answers tagged

0

At least the following components could be utilized for that purpose: HttpWebRequest WebClient HttpClient You might find this post helpful that demonstrates how to consume SharePoint REST API in .NET, in particular it demonstrates how to: perform authentication in SharePoint Online using HttpClient perform basic CRUD operations using HttpClient ...


1

You must submit the form with unique file name to avoid replacing the previous submitted form. For a detailed explanation on how you can set unique file name please refer this article: Submitting an InfoPath Form to SharePoint with a Unique Filename


2

Most probably the error File not found occurs since you are trying to retrieve attachments folder that not yet exist in method HasListItemAttachment The following example demonstrates how to upload attachment file via SharePoint JSOM: function processUpload(fileInput, listTitle, itemId,success,error) { var reader = new FileReader(); reader.onload = ...


1

You can simply invoke a REST call to following URL /_api/lists/getByTitle('ListTitle')/getItemById(1)/AttachmentFiles/getByFileName('filename') Then check the response to see if file exists or not. JSOM function onSuccess(sender, args) { var item = listItem; var total = item.get_attachmentFiles().get_count(); if (total > 0) { ...


0

Yes. You can enable content approval from List Settings. This will ensure the items get saved as drafts and other users will not see it until its approved. https://support.office.com/en-ca/article/Require-approval-of-items-in-a-site-list-or-library-cd0761c4-8c3f-4ea2-9435-13c28aa23d08



Top 50 recent answers are included