Skip to main content

Posts

How to create Organizations News Sites?

First of all, Only Administrator can create Organizations news site and one tenant can have up to 250 organization news sites. News posted in this type of sites are marked with a color tag so users can distinguish between an official news post and a news published in communication and team sites. There is no user interface to create these kind of sites. So we have to use SharePoint Online Management Shell. So here is command : 1. Connect–SPOOnline –url https://<Your_Tenant_Name>-admin.sharepoint.com 2. Set–SPOOrgNewsSite –OrgNewsSiteUrl <New_Commmunication_Site_Url_Here> In Action : Connect–SPOOnline –url https://MyTenant-admin.sharepoint.com Set–SPOOrgNewsSite –OrgNewsSiteUrl https://MyTenant.SharePoint.com/sites/OrgNewsCenter Reference
Recent posts

Error while compiling spfx project - Error - typescript - node_modules/@fluentui/react-focus/node_modules

 Some when you create new project or upgrade existing project, developer get issues related to fluent ui packages i.e. : Error - typescript - node_modules/@fluentui/react-focus/node_modules/@uifabric/merge-styles/lib/DeepPartial.d.ts(4,26): error TS1005: ';' expected. Error - typescript - node_modules/@fluentui/react-focus/node_modules/@uifabric/merge-styles/lib/DeepPartial.d.ts(4,41): error TS1005: ')' expected. Error - typescript - node_modules/@fluentui/react-focus/node_modules/@uifabric/merge-styles/lib/DeepPartial.d.ts(4,42): error TS1005: ';' expected. Error - typescript - node_modules/@fluentui/react-focus/node_modules/@uifabric/merge-styles/lib/DeepPartial.d.ts(4,72): error TS1005: ';' expected. Error - typescript - node_modules/@fluentui/react-focus/node_modules/@uifabric/merge-styles/lib/DeepPartial.d.ts(4,107): error TS1005: '(' expected. Error - typescript - node_modules/@fluentui/react-focus/node_modules/@uifabric/merge-styles/lib/De

Export / Import from Excel file in SharePoint

SharePoint Web Part - Export or Import from Excel Here is the tool which will help you to import excel file into a list. This tool will not create any kind of list or column. It will help users to import their excel file in specific list. This tool also allows users to update existing records directly from excel file. I have develop the tool in SharePoint Framework. Currently this tool is for SharePoint Online version only. We are supporting following columns : Single line of text Multiple lines of text Number Yes/No Person or Group (Person + Group) Person or Group (Person + Group) (Allow multiple selections) Date and Time Choice Choice (Allow multiple selections) Hyperlink or Picture Currency Managed Metadata Managed Metadata (Allow multiple values) Lookup Lookup (Allow multiple values) Installation of App :- 1. Click here to download the sps-import-from-excel.sppkg . 2. Visit the Microsoft 365 SharePoint Admin Center 3. Go to Apps -> App Catalog. If you don't have ap

Getting error when creating new SPFx solution or adding a new webpart in existing SPFx solution

 I formatted my laptop and installed all fresh software on it. When I was trying to create a new SPFx solution, I was getting an error : C:\Users\Hp\AppData\Roaming\npm\node_modules\yo\node_modules\yeoman-environment\lib\resolver.js:70 filePatterns: lookups.flatMap(prefix => [`${prefix}/*/index.ts`, `${prefix}/*/index.js`, `${prefix}/*/index.cjs`, `${prefix}/*/index.mjs`]), ^ TypeError: lookups.flatMap is not a function at Environment.resolver.lookup (C:\Users\Hp\AppData\Roaming\npm\node_modules\yo\node_modules\yeoman-environment\lib\resolver.js:70:27) at init (C:\Users\Hp\AppData\Roaming\npm\node_modules\yo\lib\cli.js:130:7) at pre (C:\Users\Hp\AppData\Roaming\npm\node_modules\yo\lib\cli.js:89:3) at Object.<anonymous> (C:\Users\Hp\AppData\Roaming\npm\node_modules\yo\lib\cli.js:219:3) at Module._compile (internal/modules/cjs/loader.js:778:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryMo

"@microsoft/sp-http" that is not declared in the manifest

 Hi, I was trying to use SPFx PnP Property Pane Controls . Specially  PropertyFieldSitePicker control. When I have given reference & used it in Property configuration pane, It has given an error : Something went wrong If the problem persists, contact the site administrator and give them the information in Technical Details. TECHNICAL DETAILS [SPLoaderError.loadComponentError]: Failed to load component "b023546a-e83e-48d9-b3d9-eeaa5575b5a2" (MyWebPart). Original error: The entry point for component "b023546a-e83e-48d9-b3d9-eeaa5575b5a2" (MyWebPart) has a dependency on "@microsoft/sp-http" that is not declared in the manifest. INNERERROR: The entry point for component "b023546a-e83e-48d9-b3d9-eeaa5575b5a2" (MyWebPart) has a dependency on "@microsoft/sp-http" that is not declared in the manifest. CALLSTACK: Error at t [as constructor] (https://modern.akamai.odsp.cdn.office.net/files/sp-client/sp-webpart-workbench-assembly_en-us_bb

Get all default task lists from Microsoft To Do with Microsoft Graph APIs

Hi, I was working on to get all tasks from Microsoft To Do lists.  The documentation does not say about it. But I figured out a way to get all task lists from Microsoft To Do. Here is the way : POST /me/todo/lists/Tasks/tasks POST /users/{id|userPrincipalName}/todo/lists/Tasks/tasks GET /me/todo/lists/Tasks/tasks GET /users/{id|userPrincipalName}/todo/lists/Tasks/tasks 😃

sorry we couldn't remove the app - SharePoint Online

Some time you try to remove some installed apps from SharePoint and it removes approx. all the time but some apps says " sorry we couldn't remove the app ". To remove these kind of apps, You have to use PowerShell Scripts. So there are some steps : 1. Install PnP PowerShell ( Click Here ) 2. Now run the following PnP command with URL and App Name changes : Connect-PnPOnline –Url <Your_Site_Collection_URL> –Credentials (Get-Credential) $instances = Get-PnPApp  $instance = $instances | where {$_.Title -eq '<My_App_Name'}   #Uninstall-PnPApp -Identity $instance.Id Remove-PnPApp -Identity $instance.Id