New answers tagged

0

I too require the same solution to restrict the permissions on Azure Ad App with single site collection. As per my findings I understood that this is not possible. Do you have any suggestions for the alternate approach.


1

In SharePoint 2013, not seeing property "SMTotalFileStreamSize", you may try File_x0020_Size instead This worked for me (partial script) #Get all document libraries $FileData = @() $DocumentLibraries = Get-PnPList | Where-Object {$_.BaseType -eq "DocumentLibrary" -and $_.Hidden -eq $False} #Iterate through document libraries ForEach ($...


0

Try the following: { "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json", "elmType": "div", "txtContent": "=if(Number([$SignOutTime])!=0 && Number([$ExitTime])!=0, 'Out', if(Number([$SignOutTime])!=0 && Number([$SignInTime])==0,'Out',if(...


0

Typically, changing the FROM is the same as sending the email on behalf of another person. What's not clear in the solution is whether the REST call will impose that restriction or overcome it. This not addressed following the link you provided.


0

What did you mean tag news? We could tag news page as mentioned in this article: https://joannecklein.com/2018/07/11/tagging-modern-pages-in-sharepoint-online/ Also an article about News web part in SharePoint online for your reference: https://support.microsoft.com/en-us/office/use-the-news-web-part-on-a-sharepoint-page-c2dcee50-f5d7-434b-8cb9-a7feefd9f165


1

The method is in OfficeDevPnP.Core. You need to install OfficeDevPnP.Core. Reference: https://docs.microsoft.com/en-us/dotnet/api/officedevpnp.core.authenticationmanager.getapponlyauthenticatedcontext https://www.c-sharpcorner.com/article/connect-to-sharepoint-online-site-with-app-only-authentication/


0

Based on your description, I understand that you want to use Metadata Navigation by products types in the list. 1.Go to site settings -> site administrator -> term store management, then create new group(Metadata Navigation) -> new tern set(products types) -> create new term. 2.Go to your list settings, create a new column called products types ...


0

Just to keep an extra piece of information, since I can't add comments yet. Here is a guide I have followed, which unfortunately though throws an error at some point due to mismatch between the JSON and the scheme. [https://www.intelogy.co.uk/blog/assigning-microsoft-flow-approvals-to-sharepoint-groups/][1] I think this can be solved by retrieving the JSON ...


1

You need to check if "Valid Until" is blank first then check for date. This should work for you =IF(ISBLANK([Valid Until]),"",IF([Valid Until]-TODAY()>=0,"Valid","Expired"))


0

I tested in my end and the cmdlet Add-PnPHubSiteAssociation works fine. It seems the issue shall be the import-csv does not generate the sites properly. Have a check on the variable $sites, make sure the parameter $site has a proper URL to the site.


0

Currently there is no OOB way to add description using highlighted content web part with carousel slider. You could add your own idea via User Voice.


0

As per Microsoft support. This is by design! Any change would require a "Feature change" request


0

Answering my own question as it might be useful for someone else. I figured that these properties are undefined while working/debugging on workbench. But when we package and deploye this web part on particulat page, we can access these properties. Cheers :)


0

As you are not considering things like working days and weekends, the simplest formula =([Departure Schdule]>=(TODAY()+10)) shall be enough for your list.


0

For MFA Authentication, please download and install OfficeDevPnP.Core using Nuget: static void Main(string[] args) { string siteUrl = "https://<tenant-name>.sharepoint.com/sites/contosoteam"; var authManager = new OfficeDevPnP.Core.AuthenticationManager(); // This method calls a pop up window with the login page and it also ...


0

The Rest request to upload file should be correct. And from the error message, "net::ERR_CONNECTION_RESET", it seems it's the network related issue. I suggest you can switch another network environment to see if the issue will happen again. And here is a sample code in my SPFX solution to upload file for your reference: private ...


0

I just checked the code of web part from git. The web part is using react-dropzone-component I believe the error is due to this package and not SPFx. This package is using dropzone.js and i could find a similar issue reported for the same https://stackoverflow.com/questions/47826042/server-responded-with-0-code-issue-in-dropzone-js


0

Try using below formulas and check which one works best for your requirements: =IF([Departure Schedule] < DATE(YEAR(Today()),MONTH(Today()),DAY(Today())+10), FALSE, TRUE) OR =IF([Departure Schedule] < (Today()+10), FALSE, TRUE) OR =[Departure Schedule] >= (Today()+10)


1

This should get you on the right track. What you are looking for is the addDays expression. adddays(items('Apply_to_each')?['DueDate'],366)


0

I was looking for a solution to solve a similar requirement, and found a JQUERY solution as to how to call REST API recursively at here I was able to retrieve all IDs from a list that has 12K items. I've added a Web Part Page in SPO and added a Content Editor and link to a text file containing the HTML and JQUERY. I've not noticed any issues retrieving 12K ...


0

You can use below code to further modify the banner. SP.SOD.executeFunc('sp.ui.ratings.js','SP.ClientContext',function() { setTimeout(function(){ if($("#pageStatusBar").length > 0) { var existingText = $("#...


1

MFA/Modern Auth is the issue. You shouldn't be using a username/password as this will fail with modern auth and is a bad security practice. Instead, register a SharePoint Addin with the appropriate permission and leverage the Client ID/Secret. https://docs.microsoft.com/sharepoint/dev/sp-add-ins/register-sharepoint-add-ins


1

To add to the answer above here is an example of a script using Get-UnifiedGroup #Get Credentials to connect $Credential = Get-Credential #Create the session $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ ` -Credential $Credential -Authentication Basic -...


0

I had the same issue and was unable to get the mailto to dynamically add a user's signature. The signature behaviour differs for email clients, if you are using the windows mail app it will insert it automatically. If you are using outlook you can press the signature button to add it on to the mail.


1

Try changing visibility property in last code block to: "visibility": "=if([$Status] == 'Planned' && [$DateEnd] <= (@now - 900000), 'visible', 'hidden')" OR "display": "=if([$Status] == 'Planned' && [$DateEnd] <= (@now - 900000), 'block', 'none')"


0

Restricting access to modern web part is not possible in SharePoint Online. Also hiding the blocks from users with no access is not supported in Hero Web Part either. In addition, here are my test results: If we put a link to a list/library in the block, users who do not have access will enter the list/library with empty page. But they can still see some of ...


0

Agree with Akshay's opinion, you will need the recycle bin item id to call the http request. First you need to call the rest Api to get the ID and use that id to restore. I tested and succeed.


1

You could deploy the spfx extension react-script-editor Then add below CSS sytle to modern script editor web part: <style> .a_a_91bed31b.b_a_91bed31b{ display : none ; } </style>


0

Instead of deleting file and than restoring it back, it would make more sense to remove this file from library after Approval. If you don't want to display the file just create a column e.g. PendingForDeletionApproval and filter the View based on that. Once it is approved you can remove from Library as well as recycle bin if needed. Now to answer your issue ...


0

You are currently in the site settings interface of a top-level site, the top-level site doesn’t have a parent site so it can't display the same navigation items as a subsite site. You can enable this option in a subsite. If you are in a subsite, it will display as below:


0

I found the solution. Simply taking the site URL from the current context: this.context.pageContext.web.absoluteUrl


0

Per my knowledge, file viewer web part does not support dynamically displaying the documents. You can connect the File viewer web part to a Document library web part and show files dynamically based on what a user selects in the Document library web part.


2

You could use the Get-UnifiedGroup cmdlet to view Microsoft 365 Groups. Reference: https://docs.microsoft.com/en-us/powershell/module/exchange/get-unifiedgroup?view=exchange-ps


0

You don't need to use login ID to assign permissions. In your code, you donnot assign permission to loggedInUser on the item. Below is my sample code to break the permissions on the item and assign read permission to loffedIn user, full control permission to a group. Hope it helps you: var web=clientContext.get_web(); var user=web.get_currentUser(); var ...


0

@A.h. Laverty, Please take a reference of below aspx code: <%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %> <%@ Register tagprefix="SharePoint" namespace="Microsoft.SharePoint.WebControls" assembly="Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> &...


0

For Site collection does not have the parent, so navigation will not inherit from parent. But in the subsite this option must be enabled because subsite have the parent site


0

Quote from Microsoft, Your source list template is not supported. Please try another. You need to migrate the look up source list first or delete the lookup column. Reference: https://docs.microsoft.com/en-us/sharepointmigration/troubleshooting-common-spmt-issues#spmt-error-codes


0

You should use row.getValueByName("UniqueId"). Test result:


0

Per my understanding, you want to trigger the id assigning workflow on item creation by the associated designer workflow. Triggering one workflow on item creation by another is not supported, which is by design to prevent recursion. So I don’t think running the command would help. Consider using the Start a List Workflow action if you are using SharePoint ...


0

For your requirements, it is better for you to create a template for users in the library. Each time the user just need to create a new file based on it and all there changes will not affect the template. You can specify a custom document template in seconds. More information about using template in SharePoint Online:https://support.microsoft.com/en-us/...


0

You could create a new site content type which make the wiki page content type as parent. Then upload custom template via Advanced settings of the newly created content type> upload a new document template.


0

Do you still see this error if you create a new post directly without creating a copy of another one? I’m not able to reproduce this issue in my test environment. Everything works fine in both team site and communication site. But I did run into another “unexpected error” if I enter another username in the people picker in the Title area or just leave it ...


0

The renaming is nothing but a hidden redirect. you site is not actually renamed it stays as it is but you are just redirected to new URL. if you want to remove redirect using Remove-SPOSite cmdlet there are few steps you can follow. Refer link below https://docs.microsoft.com/en-us/sharepoint/manage-site-redirects


0

Firstly, I suggest you to check whether your site which you want to apply a new theme on is associated with a hub site. When you associate your site with a SharePoint hub site, it will inherit the look (theme) of the hub site, the hub site navigation bar will appear at the top of your site, and more features or settings may be added such as additional ...


1

Not sure if you know rest api but This should return the url of the thumbnail --> /_api/web/lists/getbytitle('title')/items(itemid)?$select=EncodedAbsThumbnailUrl


0

@A.h. Laverty, I tried below aspx code on my SP online and it has _spPageContextInfo <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <%@ Page Language="C#" %> <%@ Register tagprefix="SharePoint" namespace="Microsoft.SharePoint.WebControls&...


1

This may be a defect of IE itself Being an old browser, IE 11 lacks a few features like fetch, map, and proxy. During SPFx development we normally make use of these features and they fail to work in IE 11. Please see if the article below is helpful to you: IE 11 Polyfill Package For SPFx


0

What I would suggest is organizing and utilizing the SharePoint Group. I would create a SharePoint Group called "HomePage Viewers Group" which will only have read access to the homage of the site and once that is setup what I would suggest is using "Audience Targetting" to the webpart on that hompage where you dont want them to be seen by ...


0

This isn't possible as Planner is tied to the M365 Group Members. If you have two Plans attached to the same M365 Group, all members of that single M365 Group will have access. The solution would be to add your second Plan to a different M365 Group. You can add an arbitrary M365 Group to the SharePoint Members group to maintain access to the site itself.


0

You have to break inheritance on the list permissions, add the people you want to have access and remove the others.


Top 50 recent answers are included