Hot answers tagged

3

Try using something like below: const list = sp.web.lists.getById(ListId); const folderName = 'My subfolder'; list.items.add({ FileSystemObjectType: 1, ContentTypeId: '0x0120' FileLeafRef: folderName }).then(console.log); Reference: Folders and sub folders inside Generic List.


2

Kelank, I think you may be experiencing issues because you need to add an element and give it the .rssApp class name. For example, try this: import styles from '../RssApp.module.scss'; let newsElement = (element: IRssItem)=> { //Newly added return ( <div className = {styles.row} > <div className={...


2

As I was going through your code, I see you are missing adding top level class to wrapper container. Dont get confused here, the SCSS works in a similar way as CSS. When you nest css classes in SCSS file, it means they will follow the HTML DOM hierarchy. See the below explanation: SCSS File Content: .rssApp { width: 100%; padding: 10px; ....


2

So even though this issue no longer persists (as of May 2019), heres a link to the relevant comment (solution) I used to fix this issue. Long story short this was due to some problems on both AAD authentication and the client libraries so Micorosoft had to work on a fix for quite a while. As of now, the comment I linked to is the only solution to this ...


2

You need to add and set the property loadLegacyFabricCss to true in your webpart's manifest.json file. The value needs to be set as below: "loadLegacyFabricCss": true, So, your <webpart>.manifest.json file will look something like: "alias": "Test182WebPart", "componentType": "WebPart", // The "*" signifies that the version should be taken from ...


1

I don't think it would be possible apply spfx extension on name field(certain other columns also) but it does work on FileLeafRef column. Ref link Column formatting could have been an option but problem is that Name column does on on appear column settings, it just appears in view fields with this 3 columns Name (linked to document). Name (for use in ...


1

Looks like there seems to be some issue going on with domain isolated webparts, for the time being would suggest that you not use that property. As mentioned in the comments, would suggest that you modify the config > package-solution.json file and set the isDomainIsolated value to false and then bundle, package and upload the solution and try again by ...


1

Try to call method getToken with 'https://graph.windows.net' to get the JWT token return tokenProvider.getToken('https://graph.windows.net') You can refer to these similar situation below: https://github.com/Azure-Samples/active-directory-angularjs-singlepageapp-dotnet-webapi/issues/19 https://github.com/SharePoint/sp-dev-docs/issues/3102


1

The following CSS style for your reference. <style> .ms-HubNav-nameLink{ font-size:18px !important; } .ms-HorizontalNavItem-link{ font-size:18px !important; padding:0 !important; } </style>


1

my suggestion is to fire up the console inspector and point to the items you are looking to customize not sure if we're using the same site/nav, but this might be the one you are looking for: /*modern*/ .ms-HorizontalNavItem-link { font-size: 16px; } /*classic*/ .ms-core-listMenu-horizontalBox li.static > .ms-core-listMenu-item { font-size: ...


1

It is not possible at the moment using pure CSOM code. It is only possible via REST APIs. Having said that, you can use PnP CSOM Core library to perform the deployment of SPFx webparts or extensions. It is basically a wrapper over the underlying REST APIs. To upload the app to the app catalog, you can do that as below: string webUrl = "https://tenant-...


1

I am afraid you can't get items directly from view. You will get viewQuery field from below method using v.ViewQuery. then you have to use getItemsByCAMLQuery method to get items. Below are reference methods. Main method calling resua public getListViewData():void{ let listName = "Custom List"; //The display name of the sharepoint list. let ...


Only top voted, non community-wiki answers of a minimum length are eligible