Quantcast
Channel: Microsoft Online: SharePoint Online forum
Viewing all 10096 articles
Browse latest View live

SharePoint Online Multiple Authentication providers and SSO

$
0
0

Hello,

We have one "client facing" tenant for all our clients. We have many clients and several of them want SSO into our SharePoint Online tenant.

Some of them use ping, some use ADFS, some use Auth0 as their authentication provider; but once they are signed onto their enterprise (typically once they have signed onto their AD), they want a SSO experience when they come to our SharePoint Online sites - and not to have to sign on again.

Is there a way to do this? Not all our clients have O365.

We did this with our on-premise SharePoint, but it is unclear how to achieve this with SharePoint online.

Thank you.


Marcel



How to insert SPFX Web Part in Page Layout (SharePoint classic experiences)

$
0
0

Hi,

I have developed a SPFX Web Part. I would like it to be embedded in a specific page layout "MyCustomLayout" so that anyone who create a page using this page layout will see the SPFX Web Part without manually adding it.

To do so, I have tried different approaches :

First approach :

  • I added my SPFX Web Part to a test page
  • I configured it as needed
  • I exported the Web Part to my local computer
  • I uploaded it into the Web Parts Gallery located on the site collection settings
  • I tried to generate my SPFX Web Part's html snippet using Design Manager (to insert it into MyCustomLayout.htm afterwards)

Unfortunately, I got an error message while attempting to generate the html snippet.
Sorry, something went wrong
An unexpected error has occurred.

Second approach :

I created a new Web Part zone in MyCustomLayout.html and I inserted into it the SPFX Web Part Xml Definition as shown below:

<div><!--MS:<WebPartPages:WebPartZone runat="server" AllowPersonalization="false" ID="WPZ_SecondGenericContent" FrameType="TitleBarOnly" Orientation="Vertical">--><!--MS:<ZoneTemplate>--><webParts><webPart xmlns="http://schemas.microsoft.com/WebPart/v3"><metaData><type name="Microsoft.SharePoint.WebPartPages.ClientSideWebPart, Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" /><importErrorMessage>Cannot Import WebPart</importErrorMessage></metaData><data><properties><property name="AllowZoneChange" type="bool">True</property><property name="HelpUrl" type="string" /><property name="Hidden" type="bool">False</property><property name="MissingAssembly" type="string">Cannot Import WebPart</property><property name="Description" type="string">This Web Part will help you to view the current page's associated page</property><property name="AllowHide" type="bool">True</property><property name="AllowMinimize" type="bool">True</property><property name="ExportMode" type="exportmode">All</property><property name="Title" type="string">Subpage Viewer</property><property name="TitleUrl" type="string" /><property name="ClientSideWebPartData" type="string">&lt;div data-sp-webpart="" data-sp-webpartdataversion=1.0 data-sp-webpartdata="&amp;#123;&amp;quot;id&amp;quot;&amp;#58;&amp;quot;dc8c23c0-8cd8-495e-83f9-ccaa17fcfb30&amp;quot;,&amp;quot;instanceId&amp;quot;&amp;#58;null,&amp;quot;title&amp;quot;&amp;#58;&amp;quot;MSC Subpage Viewer&amp;quot;,&amp;quot;description&amp;quot;&amp;#58;&amp;quot;This Web Part will help you to view the current page's associated page&amp;quot;,&amp;quot;version&amp;quot;&amp;#58;&amp;quot;0.0.1&amp;quot;,&amp;quot;properties&amp;quot;&amp;#58;&amp;#123;&amp;quot;description&amp;quot;&amp;#58;&amp;quot;&amp;quot;&amp;#125;,&amp;quot;htmlProperties&amp;quot;&amp;#58;null&amp;#125;" data-sp-splinksapplied=true&gt;&lt;div data-sp-componentid=""&gt;dc8c23c0-8cd8-495e-83f9-ccaa17fcfb30&lt;/div&gt;&lt;div data-sp-htmlproperties=""&gt;&lt;/div&gt;&lt;/div&gt;</property><property name="ChromeType" type="chrometype">None</property><property name="AllowConnect" type="bool">True</property><property name="Width" type="string" /><property name="Height" type="string" /><property name="CatalogIconImageUrl" type="string" /><property name="HelpMode" type="helpmode">Modeless</property><property name="ClientSideWebPartId" type="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">dc8c23c0-8cd8-495e-83f9-ccaa17fcfb30</property><property name="AllowEdit" type="bool">True</property><property name="TitleIconImageUrl" type="string" /><property name="Direction" type="direction">NotSet</property><property name="AllowClose" type="bool">True</property><property name="ChromeState" type="chromestate">Normal</property></properties></data></webPart></webParts><!--ME:</ZoneTemplate>--<!--ME:</WebPartPages:WebPartZone>--></div>

It did not work either. I got an error message while accessing a SharePoint Page using MyCustomLayout Page Layout.
Sorry, something went wrong. An unexpected error has occurred.

I don't know what I did wrong for both approaches. That's why I am asking you for help.
Is that possible to add my SPFX Web Part using JavaScript Code embedded inMyCustomLayout.html ?
Is there any other way ? 

What is the best option to go for to achieve my requirement ?

Thanks,

Regards,

Kabylie




arioule





GetSitePropertiesFromSharePointByFilters can't return all "Owner" property for site collection

$
0
0
I want to load all site collection with its "Owners" property using "tenant.GetSitePropertiesFromSharePointByFilters".  The issue is that this api just return the "Owner" value of site collection which created by me. How can I get "Owner" for all site collection?bBtw, I know that I can go through the return sitecollection objects, and re-load the "SpSite" csom object  to get the "Owner", bbut this will involve  performance issue if the there are so many site collection.

How to create "View Only" permission Level in SharePoint Online

$
0
0

Is it possible to create a View Only Permission level in SharePoint online?

I want to assign permission to certain folder in a document library so I want the user to have view Only access to the Document library. I don't want the user to have Read access to the document library or any other folder. 

I know, I can share the folder to the user, but without the folder path user will not be able to access the folder, So I am looking for a way to create a view only custom permission level.

Please let me know if you have any suggestions.

FYI: I am talking about the Custom Permission Level for View Only not the default Read permission level.

Thanks.

Sharing files and folders

$
0
0
We have a commercial contract where we need to share specific folders and files (sharepoint documents) with outside entities.

We can do this through guest access but they need to have a microsoft account and asking these users to register hotmail or outlook or use their own account seems a little unprofessional.

We don't want to add users to our system with licences in case they can access or see something in our tenant we don't want. We have many other teams / sharepoint sites and don't want someone accessing any part of this system inadvertantly.

We are thinking of setting up another business essentials tenant with a different domain and setting these users up there with there own email on that domain.

There wil be nothing going on in this tenant but we can then set them up as guests on the first system to share files and folders and their access is then authenticated as a microsoft user from their account on the second system.

Does this sound viable or is there a better way that controls their access and allows them to use their company (outside) email without it being too difficult to authenticate?

Thank you

Folder.MoveTo inside my Remove Event Receiver CSOM code will reset the main folder fields. can i preserve them

$
0
0

I am working on a remote event receiver inside SharePoint online, and i have a code to move a folder to another library. now the source and destination libraries have the same content type and each library contain 5 managed metadata columns. now i want to move FolderA from lib1 to lib2, so i try the follow:-

Folder folder = context.Web.GetFolderByServerRelativeUrl(context.Web.ServerRelativeUrl + "/lib1/" + currentFilingSystemItem["DealName"].ToString());
folder.MoveTo(context.Web.ServerRelativeUrl + "/lib2/" );

But this will raise an error that it can not rename FolderA to lib2, folder already exists, so seems i need to add the FolderA name inside the destination path, so i tried the following:-

Folder folder = context.Web.GetFolderByServerRelativeUrl(context.Web.ServerRelativeUrl + "/lib1/" + currentFilingSystemItem["DealName"].ToString());
folder.MoveTo(context.Web.ServerRelativeUrl + "/lib2/"+ currentFilingSystemItem["DealName"].ToString());

this has moved the folder, but the main folder FolderA will lost its managed metadata values, while the MoveTo has preserve the managed metadata for the sub-folders and files. can anyone advice if i can force the MoveTo to preserve the managed metadata for the main folder as well?

Thanks



Unable to update the Managed Metadta fields for my Files and Folders inside my CSOM code

$
0
0

I have the following code inside my RER:-

foreach (ListItem currentFilingSystemItem in collListItem)
    {
Folder folder = context.Web.GetFolderByServerRelativeUrl(context.Web.ServerRelativeUrl + "/library3/" + currentFilingSystemItem["DealName"].ToString());
context.Load(folder);
context.ExecuteQuery(); 
folder.MoveTo(context.Web.ServerRelativeUrl + "/ArchDocs/" + currentFilingSystemItem["DealName"].ToString());
folder.Update();

context.Load(folder);
context.Load(folder.Files);
context.Load(folder.Folders);
FileCollection files = folder.Files;
FolderCollection folders = folder.Folders;
context.ExecuteQuery();
foreach (File f in files)
  {
     ListItem item = f.ListItemAllFields;
     context.Load(item);
     context.ExecuteQuery();
     item["DealStage"] = (TaxonomyFieldValue)currentFilingSystemItem["DealStage"];
     item.Update();
     context.ExecuteQuery();

  }
foreach (Folder fo in folders)
  {

      ListItem item = fo.ListItemAllFields;
      context.Load(item);
      context.ExecuteQuery();
      item["DealStage"] = (TaxonomyFieldValue)currentFilingSystemItem["DealStage"];
      item.Update();
      context.ExecuteQuery();
}

where i am trying to change a managed metadata column named "DealStage" using thisitem["DealStage"] = currentFilingSystemItem["DealStage"]; for both File and Folders, but my above code will not raise any exception, but theDealStage will not get update! can anyone advice on this please? Thanks

Add-SPOHubToHubAssociation cannot read site information

$
0
0

I am running into an issue when attempting to associate a Hub site with another Hub site.  The documentation (https://docs.microsoft.com/en-us/powershell/module/sharepoint-online/add-spohubtohubassociation?view=sharepoint-ps) says to use to the urls as the source and target - this however does not work.

PS C:\> Add-SPOHubToHubAssociation -Source https://XXXXX.sharepoint.com/sites/IT -Target https://XXXXX.sharepoint.com/sites/depts
Add-SPOHubToHubAssociation : Cannot bind parameter 'Source'. Cannot convert value
"https://XXXXX.sharepoint.com/sites/IT" to type "System.Guid". Error: "Guid should
contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)."
At line:1 char:36
+ ... ciation -Source https://XXXXX.sharepoint.com/sites/IT -Target ...
+                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Add-SPOHubToHubAssociation], ParameterBinding
   Exception
    + FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.Online.SharePoint.PowerShe
   ll.AddSPOHubToHubAssociation

Finding the GUIDs for sPOnline is a challenge to itself.  But when I find them and try to use them SPO does not like this either:

PS C:\tech\scripts> Add-SPOHubToHubAssociation -Source a2cc8a82-c090-4c12-9152-0bce2f52e8f2 -Target fc67e39b-be25-404e-95df-0015ba247249
Add-SPOHubToHubAssociation : The method or operation is not implemented.
At line:1 char:1
+ Add-SPOHubToHubAssociation -Source a2cc8a82-c090-4c12-9152-0bce2f52e8 ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Add-SPOHubToHubAssociation], ServerException
    + FullyQualifiedErrorId : Microsoft.SharePoint.Client.ServerException,Microsoft.Online.ShareP
   oint.PowerShell.AddSPOHubToHubAssociation

Has anyone found a way to make this work?


2010 Approval workflow Status changed from "Approved" to "Unassigned" in SharePoint Online

$
0
0

We are using "2010 approval workflow" for some internal document approval processes.  [ Yes. I know we should use "Power Automate".   : ( ] 

The workflow was set and run through in December 2019.  Then suddenly the workflow status has been changed from "Approved" to "Unassigned" [in modern view] or Null [in classic view] .  

From the Workflow History list, I can't find any activities happened that would cause these changes. 

Questions:

Any powershell scripts can pull out the workflow activities?   Is there any logs that I can check to see what had happened [we are in SPO] ?    

SharePoint 2013 workflow opening blank

$
0
0

Hi,

When I try to open SharePoint 2013 workflow from SharePoint online site, it is opening up blank. Things I have tried.

1. Clearing cache from designer

%LOCALAPPDATA%\Microsoft\WebsiteCache

%APPDATA%\Microsoft\SharePointDesigner\ProxyAssemblyCache

2. Uninstall & reinstall SharePoint designer

3. Open designer in compatibility mode of Windows7(didn't work) & windows 8.

Many blogs suggests to install this update for the designer. But the link is broken.

https://support.microsoft.com/en-us/help/2837633/description-of-the-sharepoint-designer-2013-update-2837633-december-10

Any help is greatly appreciated.


ViviSP


Getting Versions: An error occurred while enumerating through a collection: The collection has not been initialized.

$
0
0

I've run up on this error again.  I'm not sure how to go about getting around it.

I have a field that is a Multiple lines text with Append Changes set.  I'm trying to retrieve all the items.  I've found how to do this in Sharepoint 2013 using powershell but the PNP way of doing it isn't working for me.

When I run:

$VersionData = ''
foreach($version in $qaDatabaseItem.Versions)
{    
    $VersionData+= $version["Status_x0020_Comments"]         
}    
Write-Host $VersionData
I get the error:

An error occurred while enumerating through a collection: The collection has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested..
How do I initialize versions?


David Jenkins

IDM là gì

OneDrive notification

$
0
0

Hi team,

I have an issue, we receive notification that OneDrive is almost filled in a particular email address.

I want to change the email address, but I dont know where, or how to.

Please help. 

Add / manipulate link to open documents in desktop app

$
0
0

Hi

Question:

I need some way to display the below link on Dispform, Editform.
I have tried a lot of things, but because the link does not start with http nothing in InfoPath or Sharepoint will allow this to be a hyperlink, If i create a Content Edit webpart i can create a hyperlink, but how do i get it to use a specific item "cell".

ms-word:ofe|u|https://xxx.sharepoint.com/site/list/ID/word.docx

Background:

I have created a Infopath form and using a list as database, it is a approval flow where you need to add information. The system flow will the create a word document either as and attachemnt to the list or save the document to a Doc. Libary.
My problem is that the word document uses the "Sign" feature with certificates deployed from AD, because it uses that feature i need to link to the document with

Because I need the document opening in Word directly, because of the signing feature, i have even seen online word crash trying to display the doc.

Regards

Morten

Sharepoint Online - Changing regional time zone

$
0
0

Hi,

I have an existing SharePoint site and it set to UTC time zone and wanted to change to Eastern from the Regional Timezone setting-  I have questions and hope you can help:

1. This site have a list with created date and Modified date -  Will this time zone change will update all the existing date in the list items or just the newly create one?

2.  This site also have document folder with existing uploaded document.. Will date field will change to Eastern on existing doc or just the newly uploaded one?

Please confirm.

Thanks

Ddee


Sharepoint giving 401 unauthorized error instead for 404 file not found for a site that doesnt exists using CSOM

$
0
0
I have created an azure function which gets the site name from the end user and uses CSOM code to get the owners of a sharpoint online site collection using service account credentials. Now there are few sites where event service account doesnt have permission(Lets call them super secret sites). For this we get 401 unauthorized error and we show the same to the end user. However the issue is with the sites that doesnt exists. when the end user enters a site that doesn't exists the csom code still throws the 401 unauthorized error instead of something like "Cannot contact site at the specified URL . There is no Web named ". if I enter incorrect url in the brower I get the 404 file not found error which is the correct behavior Is it correct behavior? how can i differentiate between a super secret site and a site that doesnt exists i.e a wrong url, to show the user proper error message

how to allow external user to approve workflow task

$
0
0

Hi,

I am developing approval workflow which includes external user so that user with hotmail/gmail id can login to sharepoint site and approve and reject assigned task.

pls guide how can i add external users. 

thx


iffi

Link to a webpart on the same page

$
0
0

I have created various Web parts for help documentation and I would like to create a panel at the top of other web parts to quickly navigate to other web parts on the same page.  How can i do this?

Is is also possible to have a "home" button to quickly allow users to return to the top of the page?

For instance

Quick link web part or other solution to navigate to How to Guides, Videos or Recently accessed Documents web parts as detailed below

quick link web part for different categories of How to guides (already created)

quick link web part for different categories of videos (already created)

More options to be added but not yet created

Recently accessed documents (already created)

Get the list column on which value has changed - Version History - SharePoint

$
0
0

Hi,

I want to get only the columns which is modified from the version history via REST api, same like we see in Version history. In the SharePoint Version history (versions.aspx) we are able to see only the changed columns and its data. Via REST api, I am unable to get this option. Please advise.

SPO Rest API questions

$
0
0

Hi all,

Just a couple Rest API questions.

  1. Trying to create a SharePoint group on a particular site:

HTTP POST to Url: /_api/web/sitegroups

With the body:

{
"__metadata": {
"type": "SP.Group"
},
"Title": "<group name>"
}

I got an HTTP400 Bad request returned.

   2. Is there a Rest API call to move a folder from one doc library to another? If not, what is the best suggestion on how to do it?

Thanks!

Viewing all 10096 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>