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
9
votes
2answers
15k 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 ...
9
votes
1answer
5k 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 ...
9
votes
1answer
41k views

How to get notifications for access requests in SharePoint Online / Office 365?

I'm a co-owner of a SharePoint site hosted on Office 365 (*.sharepoint.com). I used to get notifications whenever a user got an "Access denied" page and they requested access. The notification was an ...
9
votes
3answers
5k views

Change masterpage from Seattle to Oslo using CSOM, Sharepoint online

Using CSOM and c#, I would like to change the master-page from Seattle to Oslo. Can anybody help me?
9
votes
5answers
25k views

SharePoint Rotating Pictures in Library

My client uploaded a bunch of pics to an image library in SharePoint Online. There's a mix of portrait and landscape oriented photos, and the portrait photos are correct on disk, correct when viewed (...
9
votes
8answers
74k views

File:// hyperlink to a shared drive

I have a need to add a hyperlink in a wikipage to open a file in a shared drive. Uploading the file to SharePoint is not an option in this case (due to record compliance, intranet in SP now - document ...
9
votes
1answer
683 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 ...
9
votes
1answer
475 views

How to change hosting server for SharePoint Provider Hosted Apps without disturbing the existing users?

I have created a Provider Hosted App for SharePoint Online. I used Azure hosting server to host my app business logic. Now, somehow I want to move my Hosting server from Azure to another domain. But ...
9
votes
0answers
242 views

Disable telemetry spam on Modern UI pages

If you open a modern page, then press F12 and open the network tab you can observe a lot of telemetry-related activities every several seconds. It makes it harder to debug SPFx customizations. Is ...
8
votes
2answers
52k views

Manage Site Content and Structure in SharePoint 2013 Missing?

I am not able to locate Manage Site Content and Structure option on publishing sites in SP 2013. Is it removed?
8
votes
1answer
35k views

Make a RESTful API Call to SharePoint Online from Console program

I knew how to make a RESTful API call to SharePoint 2013 OnLine from SharePoint APP (Provided-Host App). Like get List from Site. There are already many samples in here. Because the TokenHelper can ...
8
votes
3answers
6k views

When/How to use asp.net MVC inside Sharepoint on-premises and Sharepoint online

I know in SharePoint things can be done in many ways and using many technologies. But now I am a bit confused on when/how I can/should/most-appropriate to use ASP.NEW MVC inside SharePoint on-premises ...
8
votes
2answers
31k views

SharePoint Online REST API - Get List selecting all fields excluding one

The below will get a list containing all fields $.ajax({ url: "http://<site url>/_api/web/lists/GetByTitle('ListTitle')/items?$select=*" ,type: "GET", dataType: "json", headers: ...
8
votes
4answers
2k views

Filter Created in SP REST API

I have this code below: jQuery.ajax({ url: res3 + "/_api/web/lists('" + normlistid + "')/items('" + normid +"')?$select=ID,Title,Created,QuemLeu/Id&$expand=QuemLeu", method: ...
8
votes
4answers
20k 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
1answer
3k views

The Microsoft SharePoint Migration Tool

We are going to migrate from SharePoint 2010 to online, We are searching for a free tool like the Microsoft SharePoint migration tool. Do anyone already use this tool to explain the new advantage and ...
8
votes
3answers
14k 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
4answers
21k views

Cascading Drop down in SharePoint Online

I'm trying to implement cascading drop down for list in SharePoint online I have 3 different list with name Countries , States, cities. and the master list Address in which I have Fields Country , ...
8
votes
2answers
3k views

Recovering a file from the recycle bin

I'm working on a general function to recover an item programatically from a recycle bin via Powershell and CSOM. This is what I have so far, it doesn't throw an error, but it doesn't recover the file ...
8
votes
5answers
2k views

SharePoint Modern Experience - 'Expand Content' cannot be exited

this may seem like an absolutely stupid question, but I genuinely cannot figure it out and it's bordering on insane. I've accidentally hit this 'Expand content' button (below) in a Modern Experience ...
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
2answers
9k views

SharePoint Online Rest API - Filter by boolean (yes/no)

I am trying to simply apply a Boolean filter to a Rest API call that is based on a Yes/No It has been documented in many locations that this functionality is broken for many years. I am unable to ...
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
4k 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
11k 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
6k 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
1answer
10k views

List of permissions needed for SharePoint REST calls

I do a lot of SharePoint online work using REST calls. I often hit roadblocks when I get "access denied" type errors when code executes from different users. Question) Basically is there a nice big ...
8
votes
4answers
5k 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
4answers
2k 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
222 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
12k 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
1answer
384 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
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
22k 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
4k 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
887 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
196 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
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
4answers
31k views

Logging people who download files in SharePoint

We have some pictures, documents and we want to track who downloads it. We have Office 365 which has SharePoint. People have to use their Active Directory account to sign-on to SharePoint. Can ...
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
2answers
345 views

New Communication site Template supports Multilingual Content

we have a requirement to use new Communication Site template and build a web site, but it should be multilingual. Since new Communication site look and feel and responsiveness suit to my client ...
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
1answer
1k 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 ...