Forum Widgets
Latest Discussions
Newly submitted items are not displayed when SPFx Field Customizer
When applying the SPFx Field Customizer, the list will be displayed in the old UI. When I post an item to the old UI list, the latest item posted is shown in the list view, but it does not immediately appear on the screen where it is pasted as a web part on the page. Steps: Prepare a list with SPFx's Field Customizer applied Display the target list on the page Display the page and the list in separate tabs Post an item to the target list The item does not appear on the page where the list web part is placed Reloading (F5) on the page sometimes shows or does not show the latest itemtnDec 12, 2024Occasional Reader11Views0likes0CommentsIs there a way around running a custom script before all scripts on any web page
I successfully posted a discussion about "Is there a way around running a custom script before all scripts on any web page in SharePoint Online Development" just now, but I cannot find it now. so I tried posting this to verify I can publish a post.ssfangDec 02, 2024Copper Contributor14Views0likes0CommentsIs there a way around running a custom script before all scripts on any web page
Hi, Is there a way around running a custom script before all scripts on any web page in SharePoint Online Development? I know how to create extension component and web parts with SharePoint Framework (SPFx), but I found its scripts is loaded by the framework and is executed too late. So I want to find a way to load my script for any page, including classic and modern pages, in order to take over the data (what data are allowed to be fetched). Besides, my script doens't depend on SharePoint Online objects, and replace the service worker (progressive web apps - Can I have multiple service workers both intercept the same fetch request? - Stack Overflow). After referring toKey features of the SharePoint Framework Important The SharePoint pageHTML DOM is not an API. You should avoid taking any dependencies on the page DOM structure or CSS styles, which are subject to change and potentially break your solutions. SharePoint Framework provides a rich API to customize the SharePoint experience in reliable ways and is the only supported means to interact with the SharePoint page HTML DOM. I found that it is best to do the client-side control by the public REST interfaces used byPnP JS (a safe API for interacting with SharePoint REST APIs and Microsoft Graph APIs) because I think SPFx is mainlyapplicable for UI function (beautification) after data reach the client browser. Thanks!ssfangDec 02, 2024Copper Contributor17Views0likes0CommentsColumn formatting not showing in SP2019
Hi there, At our company we're using Sharepoint 2019 and at this moment we are unable to upgrade. Don't ask me why as I'm not in the position to change any of this. I believe we're on buildodsp-next-publish-SP2019_SP2019_20240305.001but I'm not sure. I found this in the source of the page. I am referring to: https://techcommunity.microsoft.com/discussions/sharepointdev/column-formatting-not-showing-when-view-shown-in-a-list-web-part-modern-page-and/161460 In this topic the OP is asking if it's possible to "see" column formatting when embedding a list on a page. As far as I can tell this is impossible as the embedded list does not support this feature. Then I see some people talking about the classic view/page in combination with a "Page Viewer" Web Part. I tried this, but it will then "iFrame" the entire page. Not just the list. This means I also see the header, footer, everything of that particular page... Which I obviously don't want. So I'm asking you: is there a way to embed a list into a page in SP2019, which will respect my column formatting and won't show any of the other stuff on the page, just the list. Right now I'm just trying to create a link on the fly based on some values. But if I can figure this one out, we'll have a bigger wishlist. This is the most important though.. If this is not possible, is there another way I could achieve the same sort of effect (generating a link based on the parameters of a particular item)? The current JSON which works on a view of a list itself, but not on a embedded list on a page: { "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json", "elmType": "div", "children": [ { "elmType": "a", "txtContent": "Edit", "style": { "white-space": "nowrap", "padding": "5px", "border": "1px solid lightgrey", "border-radius": "5px", "margin-right": "5px" }, "attributes": { "href": { "operator": "+", "operands": [ "/sites/USWR000036/_layouts/15/NintexForms/Modern/EditForm.aspx", "?List=", "70e705b9-b409-4856-9091-ab86ccfebe7d", "&ID=", "[$ID]", "&Source=", "https%3A%2F%2Fxxx%2Exxxx%2Exx%2Fsites%2FUSWR000036%2FSitePages%2Fxxxx%2Easpx" ] } } } ] }JelmerNov 27, 2024Copper Contributor14Views0likes0CommentsCurious: Are SPFx Extensions Supported in OneDrive?
Hi everyone, 👋 I'm fairly new to the SharePoint Framework (SPFx) world and have been exploring its possibilities. It's been an exciting journey so far, but I’ve hit a bit of a question that I couldn't find a clear answer to. Does anyone know if SPFx extensions are supported in OneDrive? I understand they work great in SharePoint, but I’m wondering if we can extend the same functionality to OneDrive. If not, does anyone have insights into whether there’s a chance that Microsoft might bring SPFx extensions to OneDrive in the future? I’d love to hear your thoughts or any advice you have to share! Thanks for taking the time to help. 😊 Cheers, Sachinsachinnair1221Nov 19, 2024Copper Contributor29Views1like0CommentsThumbnails Not Displaying for MPEG Files in SharePoint
WehaveanapplicationthatreliesonSharePoint'sAPItoretrievethumbnailsoffiles.TheAPItypicallyprovidesURLsforthumbnailimagesinvarioussizes(small,medium,andlarge)alongwithadownloadURLforthefile. While thumbnail URLs work fine for other file types, when accessed for MPEG files, they produce an internal server error with the following response: { "error": { "code": "generalException", "message": "An exception occurred while executing within the Sandbox", "innererror": { "code": "VideoProcessing" } } } DoesanyonehaveanysuggestionsorinsightsintowhyMPEGthumbnailsmightnotbeprocessingproperlyinSharePoint?Isthisaknownlimitation,oristhereanyconfigurationorAPIadjustmentwemightneedtoconsider? Additionally, we’ve noticed that, thumbnails do not display for MPEG files within our SharePoint account also. Any guidance would be appreciated.ExaltureNov 15, 2024Copper Contributor12Views0likes0CommentsHow to sync ENTRA ID Custom extension to SPO Custom Property
Is there a proper way to sync extension attribute from ENTRA ID to SPO user profile Custom Property? As per Microsoft I created Custom Property with name called "JobLocation". Microsoft is saying that I can use pnp command called Sync-PnPSharePointUserProfilesFromAzureActiveDirectory -UserProfilePropertyMapping @{"JobLocation"="Extension attribute 6"} But it's not working for me and I don't see my latest PNP powershell has this command available. Is there another way to bulk sync this information from ENTRAID to this custom propertyJoseph8888Nov 15, 2024Copper Contributor20Views0likes0CommentsHiding Powerautomate Button on Sharepoint Site Command Bar
Hi All, Hope everyone is well today, I have a query regarding hiding a button from the command bar in Sharepoint. At the moment I have formatted the document library's current view with this JSON file as per (https://learn.microsoft.com/en-us/sharepoint/dev/declarative-customization/view-commandbar-formatting) However I've not been able to hide the "Automate > Rules" button using the following: This was working last time I checked when I originally setup this JSON however it isn't working today! Any suggestions would be much appreciatedMatherjNov 14, 2024Copper Contributor76Views1like2CommentsNot seeing the sharepoint embedded option
Hi Team, We are trying to enable the sharepoint embedded option in the Office 365. In the below article, Step-5 should be visible with sharepoint embedded option, but its not available in our tenant. https://dev.to/jaloplo/how-to-set-up-your-environment-for-enabling-sharepoint-embedded-in-5-simple-steps-2c9dMaduNov 14, 2024Copper Contributor50Views0likes1CommentSharepoint Search API with Sites.Selected
Hi! I'm trying to call the Sharepoint Search API using application permissions. Is Sites.Selected sufficient permission to be able to call this API using the .NET SDK? I'm getting the error "No user or app context found"amypNov 14, 2024Microsoft12Views0likes0Comments
Resources
Tags
- developer1,216 Topics
- PnP641 Topics
- APIs474 Topics
- Extensibility249 Topics
- Responsive127 Topics
- SharePoint111 Topics
- hybrid81 Topics
- SPFx70 Topics
- SharePoint Online64 Topics
- powershell23 Topics