SharePoint Framework
24 TopicsSPFx Web parts - checking user permissions or user is in a group
Hi all, Can anyone point me in the direction of any good samples which cover checking if a user is in a given security group or if a user has a defined set of permissions to access a resource? We have a SharePoint Framework SPFx web part (using REACT) which we need to alter the display of based on whether or not the current user is either a member of specific security group(s) or the user has defined permissions to a given subweb. The defined security groups or subweb's would be configured via the property pane. In this particular case, using search to power the content and provide the security trimming isn't an option. Thanks for any advice. Pete.25KViews0likes2CommentsPersonaCard in SPFx Webparts
Hi all, we and our users are quite happy with the display of persona information on modern SPO sites! As we also develop custom SPFx Webparts which display people information, we would like to know if there is any documented way to display the same persona callout dialog?? (perhaps Graph Adaptive Cards) And another "unpopular" question. We also use our SPFx Webparts on classic websites. As all the modern stuff is not available there, I think there is no chance to display this on classic pages ?? Thanks BjoernSolved18KViews0likes10CommentsUpdating a list in SharePoint framework - SPFx WebPart
I have followed this tutorial and this documentation in order to create lists and columns within SharePoint Online. Everything seems to work fine when creating them for the first time. But when I try to modify an existing column within an existing list using elements-v2.xml, after redeploying the app in my app catalogue then updating the existing app, the modified columns haven't been updated. The only thing that works successfully after updating my elements-v2.xml is creating new lists or adding columns to existing lists. My elements.xml, schema.xml and package-solution.json are the same as in the tutorial in the first link. Within elements-v2.xml I have: (I want to add an additional choice on line 24) <?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <ListInstance FeatureId="00bfea71-de22-43b2-a848-c05709900100" Title="New List" Description="New list provisioned from v2" TemplateType="100" Url="Lists/NewList"> </ListInstance> <Field ID="{943E7530-5E2B-4C02-8259-CCD93A9ECB18}" Name="SPFxCostCenter" DisplayName="Cost Center" Type="Choice" Required="FALSE" Group="SPFx Columns"> <CHOICES> <CHOICE>Administration</CHOICE> <CHOICE>Information</CHOICE> <CHOICE>Facilities</CHOICE> <CHOICE>Operations</CHOICE> <CHOICE>Sales</CHOICE> <CHOICE>Marketing</CHOICE> <CHOICE>New Choice</CHOICE> </CHOICES> </Field> </Elements> Within my upgrade-actions-v2.xml I have: <ApplyElementManifests> <ElementManifest Location="4d9c0146-1219-986c-8d4e-984b42efd732\elements-v2.xml" /> </ApplyElementManifests> <AddContentTypeField ContentTypeId="0x010042D0C1C200A14B6887742B6344675C8B" FieldId="{943E7530-5E2B-4C02-8259-CCD93A9ECB18}" PushDown="TRUE" /> Does anyone have any suggestions on how I can modify an existing column using spfx?4.5KViews0likes2CommentsGetting a value by dividing sum of columns in SharePoint list
I have a SharePoint list that I populate from an Excel file via SharePoint Rest API. Then, I have added sum of all the columns in the list. It works perfectly up till here. However, in the top most row of the list where sums are shown I need to show a value by dividing sum of one of the columns by another. This value is supposed to change with the list filters. I have been scratching my head for the last two days to achieve this but all in vain. I will appreciate any help. I will provide further details if required. ThanksSolved3.9KViews0likes9CommentsContinuous integration and deployment for your SharePoint Framework solutions
New article on my blog how to configure on Visual Studio Team Services the continuous integration and deployment for a SharePoint Framework solution, I hope it's helpful. http://www.delucagiuliano.com/continuous-integration-and-deployment-for-your-sharepoint-framework-solutions/3.3KViews1like0CommentsSPFx on Communication Site On-Prem
Is there a way to add a SPFx app customizer to a communication site template in 2019 on-prem? Essentially we have custom actions in 2016 that we converted to an app customizer for 2019 to load a JS file. The solution works fine on all other 2019 templates except the communication site template ignores it. Is there another method we should be using? Thanks!2.4KViews0likes4CommentsSharePoint SPFX connected web parts using Dynamic data
I have requirement of connecting to SharePoint Online file viewer webpart from a custom webpart. Plan is to build a custom spfx webpart with dynamic data and file viewer web part can connect to the new webpart which we are developing. According to this https://docs.microsoft.com/en-us/sharepoint/dev/spfx/dynamic-data we need to know the properties which we need to emit from the new webpart which we need to develop. Is there anyway we can figure format and properties expecting by the file viewer webpart.2.1KViews0likes0Comments