SharePoint Online
64 TopicsSharePoint link pauses /_layouts/closeConnection.aspx?loginasanotheruser=false&Source=
Hi, Within our company, we have multiple SharePoint sites over different Office 365 environments. What we are trying to do is when a user clicks on a SharePoint link the user is first logged out of any other SharePoint sites on the different environment and then the credentials are asked for the new SharePoint environment. This works perfectly: When you add /_layouts/closeConnection.aspx?loginasanotheruser=false&Source=https://company.sharepoint.com/sites/SiteName/ to the end of the SharePoint URL Added properties /_layouts/closeConnection.aspx ?loginasanotheruser=false &Source=https://company.sharepoint.com/sites/SiteName/ The full URL looks like this: When a user is logged into another SharePoint or Office 365 environment, the user is automatically logged out of that environment and automatically asked for the credentials to log into the new SharePoint site (source URL https://company.sharepoint.com/sites/SiteName/) The problem arises when the user is not logged into any other SharePoint or office 365 environment. When the user clicks the link above it says “You’ve signed out of your account” but doesn’t request the credentials for the new SharePoint environment. It just pauses at “You’ve signed out of your account”. I have tried changing the properties from ?loginasanotheruser=false and ?loginasanotheruser=true but it still pauses. Is there any way I can get the procedure to not pause, but redirect the user to the source SP site https://company.sharepoint.com/sites/SiteName/? Are there other properties I can add to the SharePoint link that doesn’t make it pause? Added properties /_layouts/closeConnection.aspx ?loginasanotheruser=false &Source=https://company.sharepoint.com/sites/SiteName/ I hope you can help Colin1.5KViews0likes1CommenteditProps not opening edit pane
I have some custom formatting using tileProps on a sharepoint list. It was working fine and then suddenly stopped the other day. Even if I pare down the json to only my button with the customRowAction it won't open the edit panel and throws javascript errors. Any thoughts? Code: { "$schema": "https://developer.microsoft.com/json-schemas/sp/view-formatting.schema.json", "tileProps": { "hideSelection": true, "height": "385", "width": "300", "formatter": { "elmType": "div", "style": { "align-items": "stretch", "margin": "3px 2px", "background-color": "#fbfbfb", "height": "375px", "overflow": "inherit", "border-radius": "2px", "box-shadow": "1px 1.6px 3.6px 0 #00000024, 1px 0.3px 0.9px 0 #00000024" }, "children": [ { "elmType": "div", "style": { "width": "100%", "height": "32px", "position": "absolute", "bottom": "10px", "justify-content": "space-around", "text-align": "center" }, "children": [ { "elmType": "button", "customRowAction": { "action": "editProps" }, "attributes": { "title": "Submit" }, "style": { "height": "32px", "padding": "0 16px", "color": "#333", "border": "1px solid #8a8886", "background-color": "white", "cursor": "pointer", "font-size": "14px", "font-weight": "600", "line-height": "1.4", "border-radius": "2px" }, "children": [ { "elmType": "span", "txtContent": "Submit" } ] } ] } ] } } } error in console upon click: Refused to run the JavaScript URL because it violates the following Content Security Policy directive: "script-src 'self' <URL> <URL> <URL> <URL> <URL> <URL> <URL> <URL> <URL> <URL> <URL> <URL> <URL> <URL> <URL> <URL> <URL> <URL> <URL> <URL> <URL> <URL> <URL> <URL> <URL> <URL> <URL> <URL> <URL> 'unsafe-eval' 'nonce-0ed1d478-c84a-4a3d-ab95-ad6f195ae5fe'". Either the 'unsafe-inline' keyword, a hash ('sha256-...'), or a nonce ('nonce-...') is required to enable inline execution.2.5KViews0likes3Commentspopup appear when create new document after Enable content type in document library
I have created document library and enable content type in that document library. But, after this when I create any document this kind of pop up appears. is there any way to get rid of it. Plus, I want default excel,notebook,etc.. Menu's back.921Views0likes2CommentsHow to make "Show published date" default as "TRUE" right now it is "FALSE" in modern News Creation
Hi All, I have a requirement to make the "Show published date" default to "TRUE" right now it is "FALSE" when i create a new News page in modern site. See the screenshot below, can we do it OOB or using some PowerShell or by any custom way ?3.3KViews1like2CommentsSharePoint Online - Issue with REST API call on a List exceeded the threshold limit
I have a List in a SharePoint Online site collection which has exceeded 5000 items.I have indexed the columns that are needed in the REST API filter query during list creation itself. Below is the Rest API query I use to fetch the data from the list. https://sptenant.sharepoint.com/sites/spfxqaw44/_api/web/lists/getByTitle('Announcements')/items?$top=4999 &$filter=(Expires ge '2022-12-06T18:30:00.000Z') and (RecordDate le '2022-12-06T18:30:00.000Z') and IsActive eq 1 and WorkflowCompleted eq 1 &$select=Id,Title,Expires,ShortDescription,Created,RecordDate,Attachments,LangTrans&$expand=AttachmentFiles&$orderby=RecordDate desc The above query gave me an error as threshold limit exceeded. So I have created a simple list and made a API call as below, https://sptenant.sharepoint.com/sites/testsite/_api/web/lists/getByTitle('LoadTestList')/items?$filter=Titlene 'Load Test'&$top=4999 Generally the return data count should be 4999 but I am able toget only 4970 items as response data. Also this response count is unpredictable, for some other lists I got response count less than 4000. Any idea on this inconsistent behavior?5.9KViews0likes2CommentsCan SPFX field customizer be applied to managed metadata type columns?
I have created a spfx field customizer which works fine with all column except managed metadata type column. Is there any limitation to that or there is some issues with my code?@NanddeepNachanDo you have any idea on this?2.1KViews0likes5CommentsPNP xml Template to multiple site collections (CSV)
Hi all, im a little lost here. I have created a template in xml format from an existing site collection (source site) in our SharePoint Online tenant which I have deployed to another site collection that works fine. However I have multiple site collections (alot) which I want to deploy to with the same template. Is it possible to create a CSV file to read from with the site collections I want the template applied too, run the PS script and one by one via script deploy the template? this would help alot from me doing this manually. Cheers910Views0likes1CommentCSOM SystemUpdate() cannot update Editor field
In a SharePoint Online Document Library I've a file that is in published status (version x.0). I am updating various fields of this file with the listItem.SystemUpdate() command. I need this sort of update because is the only one that can be used on a published file that not increase the version. (UpdateOverrideVersion return an error on published documents) When I try to update the Editor fields this is not updated. (_currentItem is a File object) var user = _ctx.Web.EnsureUser(publishinfo.currentUser_email); _ctx.Load(user); _ctx.ExecuteQuery(); _currentItem.ListItemAllFields["Editor"] = user; _currentItem.ListItemAllFields.SystemUpdate(); _ctx.ExecuteQuery(); All other fields of the item can be updated. "Editor" and "Modified" are the only two that are not working. (Author for example is correctly updated in this way) Any idea? Thanks2.1KViews0likes1Comment