developer
1211 TopicsPossible to select stars/like button in Card Designer View?
I am using the Tiles (Card Designer) view on my document library and I have added theRatings column to the view. Is there way to make the ratings selectable on the front-end like they would be on a standard list view? As currerntly this appears to be read-only and when going to view the properties the ratings control isn't even visible. If anyone has a solution to this, that would be ace!415Views0likes1CommentCannot find Sharepoint Online API endpoints
Hi Team, My team is working on SharePoint Online, and are not able to find APIs related to the following entities: 1. All List APIs 2. All files and folders APIs 3. All Link APIs 4. All Event APIs 5. All Page APIs. When we say 'all', we mean endpoints to create, update, get, delete and perform other operations on the above listed entities. We found a few APIs related to files and folders here -https://learn.microsoft.com/en-us/sharepoint/dev/sp-add-ins/working-with-folders-and-files-with-rest It would be very helpful if you could share rest of the endpoints with us. Thank you.76Views0likes1CommentForm Customization Permissions?
1. I wrote a SharePoint form customization using SPFx ( TypeScript / React ). 2. I have a large pool of external users and each month I will send emails to a portion of those users. 3. The email will contain a link back to a page on my SharePoint site. 4. The page on the site will contain one or more links to list items that require the user to edit and save. 5. When the user clicks on one of those links, the corresponding list item will be displayed using my form customization. 6. The user will edit the information, save the form, and be directed back to the site page with the links to the list items. Everything works fine up to (and including) #4. However, when the user clicks on one of those links, only a blank page appears and using F12 I see the following: ----------------------------------------------------------------------------------------------------------------- Refused to execute script from 'https://<tenant>/sites/appcatalog/_layouts/15/AccessDenied....' because it's MIME type ('text/html') is not executable, and string MIME type checking is enabled ----------------------------------------------------------------------------------------------------------------- The users are all included in the "members" group of the site and should have edit permissions. However, this error message seems as though there is some permission missing from the actual form customization application that Ideployed to the app catalog and then enabled on this specific site. Internal users do not experience this issue, only external users. Are there permissions I need to configure on a form customization application?61Views0likes0CommentsProgrammatically share site with external users via passcode
Hello, I have a large pool of persons external to my organization. Once a year they must complete a form that takes maybe 10-15 minutes to fill out. Each month I would like to send an email to some number of these people informing them that they must complete their form. I would like to do the following things programmatically (SPFx using React/Typescript): Use the user's email address to see if they are already in the "FormMembers" group. If not, add them Send them a notification email with a link to page that will itself will have a link to the edit form for the form they must complete (this is a form customization, again SPFx using React/Typescript) I want them to be able to access the site and form using a passcode that has an expiration date. I want to create and send the email programmatically I DO NOT want to require them to authenticate with anything other than the passcode. This is an annual event for them tha lasts only a few minutes. Question: How do I programmatically create the link that I put in the email so that it will know to authenticate using a passcode?65Views0likes0CommentsListen for web part load
Does Sharepoint provide any indication of when a web part is loaded onto the page? I have a list of quick links, some of which link to images. I'm attempting to prevent the default behavior of those links so that clicking downloads the image rather than opens in a new tab. I have the code to perform this action, but I can't target the links because they aren't loaded on initial page load. Is there a way to listen for when the quick links web part is loaded?82Views0likes0CommentsModify a Teams tab solution from GitHub to match the customer requirments
I am working on a new project and the customer have already installed and used this Teams tab from GitHub @ https://github.com/OfficeDev/microsoft-teams-emergency-operations-center Now they want to do some modifications to this solution, such as :- Change some titles for the fields currently when an item get created it provision some channels on teams, so they want to modify the name of those channels and provision more channels. So my first question is about how i need to do those changes,, are those steps valid:- Clone the code from the above github link modify the code accordingly Deploy and publish the solution to get a new .sppkg solution and re-upload it to the sharepoint app are those valid steps to do the modifications? i built a lot of SPFx solutions, but never modify existing one on GitHub. Second Question, when the customer install this solution for the first time, a new site and lists were provisioned... so if i replace the old .sppkg file with the new one, will this re-provision the site and the lists? or this will only happen when we installed this solution for the first time only? Third question, now if i do those modifications inside our local version after cloning the solution, and Microsoft releases a new version of this app inside GitHub, and we want to have this new version, then our local modification done previously will get lost? am i correct? so can we for example post those changes to GitHub as well, so they will be part of the new releases done by Microsoft ? Thanks90Views0likes0CommentsHow do I use sp/pnp sp.search to find all Associated sites when querying a hub site Id
I'm making an app which lists all hub sites on an SP tenant. I want a user to click on a hub site and it shows all associated sites. I cannot figure out how to use [sp.search][1] [1]: https://pnp.github.io/pnpjs/sp/search/ The documentation is quite assumptive. Here is what I've attempted: export const GetAssociatedSites = async (hubId: string | undefined) => { const _sp = getSP(); const finalArray: any[] = []; await _sp.search({ StartRow: 0, QueryTemplate: "contentclass: STS_Site AND DepartmentId:1111*", Querytext: 'contentclass:STS_Site contentclass:STS_Web', //SiteTitle:{searchTerms} AND contentclass:STS_site AND DepartmentID:{{PageContext.hubSiteId}} SelectProperties: [ "Title", "SPSiteUrl", "WebTemplate", "SPWebUrl", "SiteName", "RelatedHubsites", "IsHubSite", "ParentLink", "Department", "Path" ], RefinementFilters: [`departmentid:string("${hubId}",linguistics=off)`], RowLimit: 500, TrimDuplicates: false, }) .then((r: SearchResults) => { r.PrimarySearchResults.forEach((value) => { finalArray.push(value) }); currentResults = r }) console.log(currentResults, 'currentResults') return currentResults; } I get an empty array back. Please help. I managed to get some results using: export const GetChildSites = async (hubId: string | undefined): Promise<SearchResults> => { console.log(hubId, 'hubId in data') const _sp = getSP(); const bracketHubId = hubId; await _sp.search({ StartRow: 0, Querytext: '(contentclass:"STS_Site") (contentclass:"STS_Web")', QueryTemplate: `contentclass: STS_site AND DepartmentId:${bracketHubId}`, SelectProperties: [ "Title", "SPSiteUrl", "WebTemplate", "WebId", "SPWebUrl", "SiteName", "RelatedHubsites", "IsHubSite", "ParentLink", "Department", "DepartmentId", "Path" ], RowLimit: 500, TrimDuplicates: false, }) .then((r: SearchResults) => { currentResults = r }) return currentResults; } But some hubsites will not return any associated sites, whereas some do. I've checked with admin portal to see if these hubsites have associated sites any they do.....What's wrong here?680Views0likes2CommentsSharepoint Online New Buttons in the Commandbar in Microsoft Sharepoint Lists
Hey guys! When i want to expand my lists with new buttons in the commandbar, is the only way through a new extension? when yes, are there code templates for something like this? i knew about list formatting to hide/add things in the commandbar but is there a way to add new buttons with formatting? i think no. i send a screenshot , so you know what i mean. Thanks for the help!Solved4.4KViews0likes2CommentsForce a link to open in a popup inside the Detailed List layout inside PnP Modern search WebPart
I have the following setting inside my PnP Modern search result:- Here is the code:- <a href="{{slot item @root.slots.PreviewUrl}}" data-interception="off" target="_blank" style="color: {{@root.theme.semanticColors.link}}"> {{slot item @root.slots.Destination}} </a> Currently the link will open in a new tab. so can i force the link to open in a popup window ? instead of a new tab? Thanks163Views0likes0CommentsSharePoint Online: Get notification when a document library is created?
Hi all, Not sure if this can be done via webhooks, but I "simply" want a notification containing the Site URL and library name when a SharePoint document library is created anywhere in our tenant. Anyone accomplish this? Cheers! Troy114Views0likes0Comments