Questions tagged [sharepoint-online]

for questions completely specific to the MS-provided SharePoint Cloud Service (Office 365's SharePoint Online/BPOS)

Filter by
Sorted by
Tagged with
8
votes
4answers
36k views

How to get a Download link for a document in SharePoint library for anonymous users

I uploaded a file to a folder in https://sitename-my.sharepoint.com/ I created a view link, requiring no access The link that I get when I click on share looks something like this https://...
8
votes
2answers
14k views

How to see what site template is used in SharePoint Online (Office 365)

Is there a simple way for me to see what template was used for a site collection in SharePoint Online (Office 365)? The Site Collection properties only show details like "number of subsites", "title",...
8
votes
4answers
19k views

Combine REST query “GetItems” action with OData $filter parameter

I'm able to call GetItems through REST by using an example by Erik C. Jordan. Now I'm trying to combine this with a simple OData $filter parameter. I have a REST query like this (jQuery on SharePoint ...
8
votes
3answers
15k views

Set Modern Page as a Home Page

Is there an easy way to for a user to choose modern page as a home page on a team site? More info: I've created a modern team site (O365 group) and was able to choose a classic wiki page as a home ...
8
votes
7answers
25k views

The file is locked for exclusive use by same person SharePoint Online

I'm having a problem recently, when I just create a document and after that I try to update its properties it give me this error: The file "file" is locked for exclusive use by same User The ...
8
votes
3answers
8k views

Retrieve all sites and all subsites from the SharePoint REST API

Using the SharePoint Online REST API, I'm trying to retrieve a list of all sites and subsites. This API gives me all top level sites, but no subsites: https://{mycompany}.sharepoint.com/_api/search/...
8
votes
3answers
18k views

REST Api error “Server relative urls must start with SPWeb.ServerRelativeUrl”

I have tried below api to upload file to library folder. var url = String.format( "{0}/_api/web/GetFolderByServerRelativeUrl('/testDocumentList/testFolder')/Files/Add(url='{1}', ...
8
votes
2answers
14k views

Adding description to sharepoint link URL using the C# CSOM

I'm currently adding the URL except the description is an ugly link. I would like to add the description to the URL in a links list on sharepoint online. My current code to add a new item from an ...
8
votes
1answer
4k views

Create Modern Sites in SharePoint Online using CSOM

Can we create Modern Team site and Communication sites using CSOM in SharePoint Online ? I tried to create the modern site for GROUP#0 and SITEPAGEPUBLISHING#0 with the below code sample and ...
8
votes
1answer
10k views

How to modify user profile properties using JavaScript in SharePoint 2013 (Online)?

I need to modify user profile properties using JavaScript (REST or CSOM). How can I do that? I don't see any methods in MSDN documentation about modifying profile properties without server code. ...
8
votes
1answer
6k views

Interview Questions on SharePoint Apps which I could not answer [closed]

Question was : Where does the code lies for Provider Hosted App? does it lie in SharePoint server? if not can we make them lie in SharePoint server. How should we call the web services for Provider ...
8
votes
1answer
2k views

Enable Cross-Domain Profile Photos in SharePoint Online

Has anyone found a way to display user photos in SharePoint from a search web part on a site without the images breaking when the authentication period to [tenant]-my.sharepoint.com times out? For ...
8
votes
2answers
3k views

Custom URL for sharepoint Online

I have been reading around that it is not possible to change the default Sharepoint Site Collection Url eg. https://mycompany.sharepoint.com/ to something like http://mycompany.com. Is this still true ...
8
votes
2answers
3k views

What's maximum length allowed for string type User profile property in SharePoint?

Default length for string type property is 25. Let me know maximum length allowed for it's value.
8
votes
1answer
10k views

ODataContentTypeException : Content Type 'application/json;odata=verbose'

I'm trying to create items in a SharePoint lists through the SharePoint REST API in Javascript (with an AJAX call using jQuery), all that in a SharePoint2013-hosted App. But I get this error when I ...
8
votes
2answers
1k views

Using MS Graph from SharePoint Framework 1.5.1 / 1.6

Can someone, please help me with figuring out how to use MSGraphClient from the latest SPFx version? MSGraphClient is supposed to help us to use MS Graph. My problem is that as soon as I add the line ...
8
votes
2answers
3k views

How do I create a upload button on SharePoint online

I would like to know how I can create an upload button on a SharePoint page so a user is able to click on the upload button and upload a document. Like this one:
8
votes
4answers
4k views

Get completion date on tasks without custom coding

I am building project sites for projects that have already been partially completed. We want to use the project site to track tasks which have been already completed, and those dates. There is no '...
8
votes
1answer
1k views

Where is a list of modern SharePoint team sites

The normal classic Team sites once created are listed on https://tenant-admin.sharepoint.com/_layouts/15/online/SiteCollections.aspx Or a PowerShell command Get-SpSite lists all But now when ...
8
votes
1answer
565 views

How to distinguish SharePoint 2013/2016 on-premises and SharePoint Online

Our add-in needs to execute different JavaScript code on SharePoint on premises and on SharePoint Online. There is a slight difference, but it is critical for our add-in. The add-in is a pure ...
8
votes
4answers
1k views

Generate Report Based on View of List Data

I have data in a list. One of the views has the data grouped by a column, so I have it looking the way I want. Requirements for the report: Have a front page with the name of the report, date, etc. ...
8
votes
1answer
211 views

What is the pros and conts between JSOM and REST

I have a dilemma choosing between JSOM and REST what is better? what are the pros and conts of both? is different in performance? I have search but I cant find something usefull.
8
votes
3answers
2k views

Duplication of documents in library

We are implementing SharePoint Online (Office 365). We are finding that changes made to a document (open in Word Online) save as a new document by the same name rather than updating the existing ...
8
votes
2answers
3k views

Upload Master Page / Page Layouts using PowerShell

I want to know how to provision a page layout using PowerShell (CSOM) for Sharepoint Online? Any information,examples etc are welcome. I know this can be done using SharePoint hosted App as well. I ...
8
votes
3answers
11k views

Best practice organization of sites on Sharepoint Online?

I'm trying out Office 365 for my company, as a sort of intranet/collaboration platform, and I was wondering what is the best practice for the information architecture of a Sharepoint site, with ...
8
votes
3answers
3k views

How to add metadata to a Modern Page?

In your Site Pages library let's say you have a Wiki Page and a Site Page (i.e. modern page). When I add a choice column, let's call it Category, I see the field show in the edit form for the Wiki ...
8
votes
2answers
1k views

Break Role inheritance without Rest API with designer 2013 workflow

I have one document library. Once item /document is created / uploaded, one task will be assigned to a Reviewer Group, at that time need to change the permission of an item for the user who has ...
8
votes
3answers
3k views

Stuck in “Preview Page” mode in SharePoint 2013

I was editing the Seattle Master Page and suddenly my site got stuck in the "Preview Page" mode: And I don't know how to stop it. I returned back the template to the original Seattle template but ...
8
votes
1answer
21k views

How to authenticate user in SharePoint online using javascript

I have a public site on Office 365 SharePoint Online. By default when user clicks on to sign in, it redirect to Microsoft login page. I don't want to redirect user to Microsoft login page. But ...
8
votes
1answer
3k views

Is there any alternative of model-dialog available for SharePoint Modern Page?

I am currently working on SharePoint hosted app which has custom ribbon action in list & library. I have opened modal-dialog on ribbon action(HostWebDialog) but in SharePoint modern page it is ...
8
votes
1answer
721 views

Apps added to App Catalog not available for installation on other sites

I started with SPFx development recently. I packaged a client side web-part as a file helloworld-webpart.sppkg following Microsoft's tutorial. Then I uploaded it to my Apps Catalog site. Though it was ...
8
votes
1answer
190 views

SharePoint Online Restore Files from Drop Off Library

Our retention policy in SharePoint misfired and moved 1000's of files from different libraries into the drop of library. Is there any way to restore these files back to their original libraries. We ...
8
votes
1answer
322 views

How to automate the provider hosted app trusting?

Is there any way to automate the SharePoint provider hosted apps installation and trusting process from appcatalog using CSOM/Rest API?
8
votes
2answers
1k views

Set Task list EnableAssignToEmail in CSOM

I would like to set the EnableAssignToEmail bit on a task list via CSOM after a list is created dynamically. I have found a way to do this in Powershell and in code using SPList: Add-PSSnapin ...
8
votes
1answer
914 views

Powershell CSOM - How to add a Office 365 Group to a list

I've found a script to create document libraries and a script to assign permissions to a list. I've combined these with one script and added a CSV containing names and Office 365 Groups that should be ...
8
votes
1answer
474 views

Outlook mail/Notification in SharePoint

My Customer wants me to show the Outlook Emails(or Email subject only) from his Office365 OWA to his SharePoint Online (intranet Portal). I tried to call the OWA in I-frame but it showing error, ...
8
votes
3answers
1k views

How to create a sandboxed workflow action within Microsoft SharePoint Online 365

I have followed the steps on http://msdn.microsoft.com/en-us/library/ff798499.aspx in order to create a custom sandboxed workflow action, and have deployed this into a site workflow in Microsoft ...
8
votes
3answers
20k views

How to export a site from SharePoint online?

I've got a publishing site (root site, with subsites) containing web pages and documents (as do the subsites). I'd like to export it and restore it to a local SharePoint instance - any ideas how to ...
8
votes
1answer
381 views

How do I retrieve the SharePoint Modern site's classification property via search REST APIs?

I am creating a rollup of Modern team and communication sites that are provisioned in my tenant by creating one SPFx webpart which retrieves the site's title, URL, logo and some other properties using ...
8
votes
1answer
1k views

Sharepoint framework experience. React or Angular?

I'm somewhat confused as to what technogy to use with Sharepoint Online framework experience. Is React/Redux the better dev option now for web parts that extend and build on sharepoint? Is Angular ...
8
votes
2answers
471 views

Access AAD protected Web API with SharePoint Online user token

I have a Web API protected by using Bearer tokens form Azure AD (https://azure.microsoft.com/en-us/documentation/articles/active-directory-devquickstarts-webapi-dotnet/). Now, I would like to call ...
8
votes
1answer
3k views

List View Lookup Threshold Exception not thrown when submitted without Query element

SharePoint 2010 includes a list view lookup threshold as part of its resource throttling. Columns that count as a lookup include Lookup, taxonomy (managed metadata), and User (PersonOrGroup) The ...
8
votes
0answers
3k views

How to stop a SharePoint workflow using JSOM

Let me preface by saying that I'm a relative newbie to this SharePoint stuff and am still fumbling my way around a bit learning from code examples where necessary. That being said, I have no issue ...
8
votes
1answer
2k views

How to call the Sharepoint REST API from an external website(IFrame)

I've been trying to do a simple GET REST call from an external website (Dynamics CRM) to a SharePoint Online site. All I want is to list the files from that SharePoint Online folder into an IFrame on ...
8
votes
1answer
903 views

Set metadata column value from query string when uploading documents

When users upload files to a SharePoint Online (2013) document library, I would like for a value from the query string to be inserted into a metadata column in the library. I found a number of posts ...
8
votes
0answers
415 views

Design Package import SharePoint 2013 using App Installed event CSOM

In SP2013, I am trying to import and export the design package from one site to other site using AppInstalled event using CSOM. I am not able to get the context of source site to import the design ...
8
votes
3answers
5k views

List View Group By not working

I've got a list and I've created a view that shows all items and groups by "Created By". But when I load that view I can't see the list items. I only get the "working on it" message. This grouping ...
7
votes
5answers
17k views

Displaying user profile image using JSOM - broken image link in IE

I have written the following code to get the user profile image and display on my master page header. Everything is working fine with Chrome but in IE I get a broken image link where i should be ...
7
votes
5answers
45k views

Hide/Remove Page Title - SharePoint Online

Is it possible to hide or remove the Page Title on specific pages in SharePoint online? Any assistence in where I should look to acheive this is appreciated.
7
votes
2answers
25k views

The remote server returned an error: (403) Forbidden

I am developing a C# console application on my local computer running on Windows 8. My target SharePoint server is SharePoint Online on Office 365. I am trying to get the web site name using web.Title ...