PnP
645 TopicsIS it Possible to remove the left hand nav from a modern team site
Hi Is it possible to remove the left hand navigation bar from a modern team site so that If I use a Hero Web Part it can take up the whole of the screen ? Then can I put the old search box in the top right hand corner of the screen and point it to a classical Search Results page where I have refiners etc ? Thanks NigelSolved144KViews4likes17CommentsEmployee Birthday Calendar Web Part
Hi, I am new to SharePoint and I am trying to implement an employee birthday calendar on SharePoint using the web-part here https://github.com/SharePoint/sp-dev-fx-webparts/tree/master/samples/react-birthdays. Following the instructions on the link, I have created a Birthdays list and have deployed the Birthday web part to SharePoint online, I am currently stuck at connecting the Birthdays list and the Birthday web part so that the web part can fetch the Birthdays data from the list. Any idea on the next step to take? I have surfed the internet and could not find anything helpful.Solved73KViews0likes70CommentsPowershell error: Could not load file or assembly
I'm trying to install a solution from github and I get the error: Import-Module : Could not load file or assembly 'file:///C:\Users\...\SharePointPnPPowerShellOnline\SharePointPnP.PowerShell.Online.Commands.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515) Anyone nows what I'm doing wrong? I have deleted som of the url there, because it has my name and the name of the solution in it.Solved53KViews0likes5CommentsError - Local gulp not found in project directory while running a spfx sample application
Hi I need some help in running a sample SharePoint Framework project. It used to be so easy to develop in Visual Studio since you only had to write some code but VS took care of everything else to build your application from your code. In SPFX you have to manage so many different tools with different versions that sometime it becomes overwhelming. Here are the details of my environment. 1) Node.js v 8.11.4 2) spfx - 1.7.0 (Sample application) 3) gulp CLI version 2.0.1 (Global Install) I have done a "npm install" to install the dependencies for the project. However when I try to run the application, I get an error " Local gulp not found in project dir". Try running : npm install gulp. I tried the suggested command "npm install gulp" to do the local install of the gulp even though I have the global install of the gulp. This did not help. I looked at the node_modules in the VS code and I cannot decode it to understand if gulp is there in the local dependency list or not. I have tried google and everyone has a different suggestion to solve this problem. Nothing seems to help. If someone can give me a tip or share their experience, I will really appreciate it. Thanks in advance -ArunSolved36KViews0likes6CommentsConnect-PnPOnline -UseWebLogin fails, login window disappears
I downloaded the latest version of PnP PowerShell today but have had no success with Connect-PnPOnline (no problem using Connect-SPOService). I get the dreaded error "For security reasons DTD is prohibited in this XML document." I've researched this and tried all the fixes, like disabling IPv6 and pointing to Google DNS servers. I've also tried Windows and Generic Credentials, but these don't avoid the online authentication and get the same error. The most promising work-around appeared to be the -UseWebLogin option, but the window disappears. It's only up for a fraction of a second, which isn't long enough for me to read the single line of text there. Can anyone solve the case of the missing -UseWebLogin window? This is an Office 365 E3 tenant.Solved32KViews0likes18CommentsPnP-PowerShell Connect-PnPOnline using AppId gives Access denied
I'm creating a PowerShell script to connect to SharePoint Online and authenticate as a registered Azure AD application (not a user). In Azure AD I have registered the application and I have the AppId and AppSecret. Through Azure AD I have granted the application API access to the SharePoint Online API with the application permissions 'Have full control of all site collections' and 'Read and write managed metadata'. I have also performed admin consent for the app by going to the URL: https://login.microsoftonline.com/<tenant>.onmicrosoft.com/oauth2/authorize?client_id=<client id>&response_type=code&prompt=admin_consent. When I use the cmdlet: Connect-PnPOnline -Url $siteUrl -AppId $appId -AppSecret $appSecret no message is displayed as if the connection occurs properly. However, when I use ANY cmdlet (i.e. Get-PnPWeb) I receive 'Access denied. You do not have permission to perform this action or access this resource.' Any help is appreciated.Solved31KViews0likes6CommentsSync Custom Active Directory Attributes with SharePoint Online User Profiles
I have a requirement from a customer that goes something like this: I need to be able to target content (think Announcements and News). So I am going down the User Profile Properties path and create Site Columns to tag the content and use the Content Search Web Part to rollup the information and match a user property value with the Site Column Value...Easy right..... Now, what if a user is a member of multiple departments let's say but the Department Profile Property only allows for a single value? I can create a new multi valued user property to hold multiple values in there and that should work.. Is there a way I can sync a custom Active Directory Attribute of users that hold muliple values with a Custom SharePoint User Profile Property? Has anyone implemented such a thing?30KViews0likes9CommentsPnP PowerShell modules
When I run get-module -ListAvailable, I get the following: Script 2.10.16... SharePointPnPPowerShellOnline {Get-PnPWebTemplates, Get-PnPTimeZoneId, Set-PnPTenantSite, Uninstall-PnPAppInstance...} Binary 2.8.1610.0 SharePointPnPPowerShellOnline {Get-PnPWebTemplates, Get-PnPTimeZoneId, Set-PnPTenantSite, Uninstall-PnPAppInstance...} I think i did something wrong, but I'm not sure what. Can anyone tell me why I would have one module that is a Script type and another that is Binary? I think that I should only have one. I can't figure out how to remove the older one (the binary)Solved25KViews0likes7Comments_spPageContextInfo is undefined
I have a very simple REST call to get all of the items in a list(Announcements) but when I run this Mikael's script editor web part I get this error _spPageContextInfo' is not defined. where _spPageContextInfo is the current url of the page I am in). What am I doing wrong (I am using modern pages) ? $.ajax({ url: _spPageContextInfo.webAbsoluteUrl + "/_api/web/lists/getbytitle('Announcements')/items", method: "GET", headers: { "Accept": "application/json; odata=verbose" }, success: function(data) { console.log(data.d.results); }, error: function(data) { alert(JSON.stringify(error)); } });Solved22KViews0likes3Comments