New answers tagged

1

The workaround I found was to create a subsite with unique permission and different site template from the parent site, then I was able to see the "edit link" option again


1

This option should be in the SharePoint Online admin center, you may need to switch to the "Classic" admin center to see the option. http://www.sharepointdiary.com/2017/09/set-anonymous-link-expiration-in-sharepoint-online.html


1

I realize I've been looking in the wrong place entirely. A quick google search provided me little (useable) information on using the REST API in user context, but this was due to my lack of knowledge with API's in general. After Bharat's comment I realized that the problem was creating an app, and with some more googling I found the following answer from ...


0

Edit My bad, In such case also, first thing you have to do make a get query to fetch fields to and use odata.type value to know metadata to be passed. Below would be useful for same. Other thing I suspect is that your form digest value might not getting passed correctly, can you debug and check if it you are getting valid value when you are passing in ...


2

May be below solution will be help you achieve your goal. Follow below step to assign unique permission on list Open list on which you want to give unique permission Go to List Setting -> click on Permissions for this list Click Stop Inheriting Permission Then it will look like as below Then If you want remove existing user or group permission then you ...


0

I have done a test in my SharePoint online and I cannot reproduce your issue. I created a date field named Next Approval Date, set it default value to "Today's Date". When I update the document itself, or any other metadata besides this date column, the version history doesn't shows this date column. For your issue, check whether there is workflow which ...


0

It seems the default behavior due to the retention policy. More information check the threads: Cannot delete folders with items in them - Bug or Feature? How can we improve compliance or protect your users better in Office 365?


0

It’s the default behavior. When user has no "Add and Customize Pages" permission on this site, there will be access denied error when saving the navigation changes. You can copy the Edit permission level and add "Add and Customize Pages" permission, save as a new permission level, then assign to the user. Or enable Custom Script in the SharePoint Online ...


1

I had same requirement and here is what i did, First, get ID of last modified item from the list. ClientContext clientContext = new ClientContext("your site"); Microsoft.SharePoint.Client.List spList = clientContext.Web.Lists.GetByTitle("TestList"); clientContext.Load(spList); clientContext.ExecuteQuery(); if (spList != null && spList....


0

You could get the comments in the site page by REST API below. And then you could filter the items by mentioned person by JavaScript. /_api/web/lists/GetByTitle('Site Pages')/GetItemById(1)/Comments Working with the Page Comments REST API in SharePoint Communication sites. There is a similar post: Deleting a comment in a modern SharePoint page


0

Just like Sanap said you can use the Web Parts Maintenance Page to do some troubleshooting with more detailed information about the error. You can learn more information here: https://support.office.com/en-us/article/open-and-use-the-web-part-maintenance-page-eff9ce22-d04a-44dd-ae83-ac29a5e396c2 And for the workflow you can have a check on the hidden ...


0

Sample demo for your reference. <script type="text/javascript"> (function () { var overrideCtx = {}; overrideCtx.Templates = {}; overrideCtx.Templates.OnPostRender = CustomRender; SPClientTemplates.TemplateManager.RegisterTemplateOverrides(overrideCtx); })(); function CustomRender(inCtx) { if (...


-1

I have leveraged the ListItemCollectionPosition class in CSOM previously to accomplish similar https://docs.microsoft.com/en-us/previous-versions/office/sharepoint-server/ee537050%28v%3doffice.15%29 Basic usage is as follows:- string siteUrl = "http://MyServer/sites/MySiteCollection"; ClientContext clientContext = new ClientContext(siteUrl); ...


0

data: JSON.stringify({ "__metadata": { type: "SP.Data.TasksListItem" }, Title: "Sample Task", AssignedToId: {results: [userId] }, DueDate: due }),


0

Assuming two columns named [Start Date] and [Working Days] you can calculate the weekday date using: =[Start Date] + [Working Days] + IF( WEEKDAY( [Start Date], 3) < 5, 1 + FLOOR( ( [Working Days] - 6 + WEEKDAY( [Start Date], 3) ) / 5, 1 ) * 2, 7 - WEEKDAY( [Start Date], 2 ) + FLOOR( ( [Working Days] - 1) / 5, 1 ) * 2 ) The details ...


0

If you click on Edit Source, you can add a type to the tag. e.g. to get lower case letters. type="1" numbers (default) type="A" uppercase letters type="a" lowercase letters type="I" uppercase roman numbers type="i" lowercase roman numbers


1

You can use the associatedMemberGroup property. When you use it, you dont need to worry about the ID of the group or the group name. It will pick the default member group of the site collection and then you can add the users to it. Sample code: sp.web.associatedMemberGroup.users.add(expLoginName).then(d => { console.log(d); });


1

It seems likely that the problem you are encountering is caused by your site being a publishing site. Once you enable the publishing feature, the method for editing the Quick Launch changes. You probably don't want to disable this feature because it will change other behaviors as well. Here's how to edit the links on either: On non-publishing sites, you ...


0

This is a bad idea. Your jQuery modifications can be easily bypassed by anyone with moderate web development knowledge. Audiencing can also be easily defeated. You could theoretically secure each review to the appropriate people but this will be a mess and you cannot secure by fields. My advice - do not use SharePoint for this system. Build your own from ...


0

I can reproduce your issue in my environment. As a workaround, you can use Insert->Data View->select list to display list data.


1

Try adding the same CSS to anchor tag within heading with title #pageTitle. Try using: #pageTitle, #pageTitle a { color:white; text-decoration:none; font-weight:bold; } Or #pageTitle { color:white; text-decoration:none; font-weight:bold; } #pageTitle a { color:white; text-decoration:none; font-weight:bold; } Or .ms-...


1

You can either disable option 'Allow access requests' which will give user access denied and they can manually request for access on basis of any tickets or internal process. Or, you can mention email address of user who can approve the request. For remaining users, it will not allow to approve any user access request.


0

Use the code below to get the modified by porperty: $web=Get-PnPFile -Url /sites/path/default.aspx $web.ModifiedBy It will shows the user login name and Email address


1

You can use Convert time zone action in Microsoft flow and specify the Destination time zone with UTC offset to Central France. Check this question here as example. Here you can find a list of time zones: Time Zone IDs (Compact 2013). If you want to format your string different you can use the following as a reference: Standard Date and Time Format ...


0

you can use following expression for example in the Step Condition or Set Variables: convertFromUtc(utcNow(),1320) this will convert a given timestamp (in this case utcNow()) to your target Timezone (1320 for Romance Standard Time). for other Timezones see: https://docs.microsoft.com/en-us/previous-versions/windows/embedded/gg154758(v=winembedded.80)


0

Try running below commands on in your package: npm i @microsoft/sp-core-library npm i @microsoft/sp-dynamic-data npm i @microsoft/sp-page-context Also, make sure you have "ControlStrings": "node_modules/@pnp/spfx-controls-react/lib/loc/{locale}.js" in your localizedResources in config.json as mentioned here.


0

Another way to do this is using Send Email Action item(outlook 365). Below is how it will look, you can add attachment directly in action by using File content as dynamic data. As you are doing on List with attachments flow would be little long. Below is screenshot for your reference. Just tried this, it is working. Important note - In below ContentBytes ...


1

As per Microsoft supported option, you can follow below article and use site definitions instead of site template. "saving publishing enabled sites as a template is not supported and it does not work. You cannot use this option to create new sites. Instead you should create site definitions (..\web server extensions\12\template\SiteTemplates) and provision ...


0

You can only create site templates from classic sites or modern team sites not connected to a Group. 1.Disable publishing features. 2.Allow custom scripts. More information: https://sharepointmaven.com/2-reasons-why-you-cannot-save-site-as-template-in-sharepoint/


0

1.Assign Full Control permission directly to the affected user account. 2.Clear the cache of the SharePoint Designer. 3.Open SharePoint Designer and connect to the site collection again, when it’s prompting to input the login account, make sure the Keep me signed in is checked. More information: https://answers.microsoft.com/en-us/msoffice/forum/all/...


0

Is this a Modern or a Classic site? Modern sites should be mobile responsive out of the box, Classic sites require some tweaking in the site branding to get them to be responsive.


0

Choice fields are essentially just text fields with predefined options. Try just making the calculated column as if these were just text boxes: =IF( [Designation]="Supervisor & below", IF( [Category]="US Support Service", 1000, IF( [Category]="APAC Support Service/SSC", 500 ) ) ) I don'...


0

I assume that with "events page" you mean inserting an events web part on a modern site page. You can configure the web part and define which events list it looks at, and also which category to include. That should give you sufficient handles to configure different events web parts to show different events. Click the Edit icon to for the web part, then set ...


1

If these are four separate values and the number is a single digit: Leadership;#4# Character;#2# Communication;#5# Teamwork;#3# You can extract the number using: =LEFT( RIGHT( [TheColumn] ,2) ,1) If there are many digits then use: =MID(LEFT(TheColumn,LEN(TheColumn)-1), FIND("#",TheColumn)+1,999)


1

No need to use custom code or javascript as you can take advantage of OOTB functionality in SharePoint. According to my understanding you are looking for Item-Level Permissions. Below is a good article on how to enable item level permissions in SharePoint. maybe it will help you with your requirements. How to enable Item Level Permissions in SharePoint.


1

This is not really possible using javascript. User will be able to go to the list url directly create their own view and be able to edit it. You have 2 options: A. Use custom permission (using some wf/flow you could trigger it automatically upon creation and grant only the edit rights) but having list with custom permission has its performance drawbacks. ...


1

Issue was due to an known issue that Microsoft is working on. You can view the issue here Github 3705 and use the workaround until fixed found in this github thread.


0

It is difficult to understand all your requirements by reading your question(maybe you explain it bit more). But, According to my understanding you are looking for Item-Level Permissions. Below is a good article on how to enable item level permissions in SharePoint. maybe it will help you with your requirements. How to enable Item Level Permissions in ...


0

If you are using Modern pages then it is Out of Box available. If you are using classic page then, you can add NoteBoard control at page layout. To add, Edit the page layout in sharepoint designer and add it after <PublishingWebControls:RichHtmlField Tag. <SharePointPortalControls:SocialCommentWebPart id="noteboard" ChromeType="None" runat="server" /...


1

When you configure "Highlighted Content" with "this site" or "this site collection", you can set it sort by "Most viewed": However, if you choose a library, there is no "Most viewed" in Sort by option. Currently, there is no OOB modern web part to achieve your requirement, you need to develop a custom spfx web part to do that.


0

I checked the site settings, and the permissions for all the sites created: https://tenant.sharepoint.com/sites/exp34/_layouts/15/userdisp.aspx?ID=7&Source=https%3A%2F%2Ftenant%2Esharepoint%2Ecom%2Fsites%2Fexp34%2F%5Flayouts%2F15%2Fpeople%2Easpx%3FMembershipGroupId%3D5 and it seems like the OOTB Members group id is 5? Anyways I tried getbyid with 5. ...


0

Currently, the MS flow cannot be triggered on a specific filed. As a workaround, you could add a condition under the trigger "when an item is create or modified". Something like this:


0

Tested in a SPFX web part with the code snippet below: import pnp, {Web} from 'sp-pnp-js'; public onInit(): Promise<void> { // setup to use spfx context return super.onInit().then(_ => { pnp.setup({ spfxContext: this.context }); }); } public render(): void { pnp.sp.web.siteGroups....


0

You can copy the table to excel and then export excel to SharePoint list: https://support.office.com/en-gb/article/copy-a-word-table-into-excel-b4f89ace-513c-4226-a167-ea3a9c307e43 https://support.office.com/en-us/article/export-an-excel-table-to-sharepoint-974544f9-94bc-4aa8-9159-97282d256dab And for the compare part, i am not pretty sure about your ...


0

You should not assume that Members group ID will always be 5. You can check the group ID manually from Site settings--> Site permissions--> open the required group--> check for MembershipGroupId=<group id> query string in URL or using any script(JS/PowerShell). If you are not sure about group ID then you can get the group by using its name. ...


0

Why not use existing New, Edit & Display form of list. Here is approach, Create list Performance and add columns for all sections. Now open list into designer and edit new form. Create section using div and write some css for cosmetic makeup. Use same logic to hide sections or you can use user properties and check if item created user's manager is equal ...


0

just like Ganesh said, it will be better to use an no Branch to end the flow and make the trigger to be when an item is created/modified. So whenever the item is modified/changed, the flow will be triggered and check the required column value. Here is a sample flow for your reference


2

You can only connect an Office 365 group to an existing SharePoint site. It is a one-to-one relationship.


0

migrated around 200Gb of data to Sharepoint You will need to tell us more about how the files were uploaded and if they are in a single library or in multiple sites, libraries and folders. the data that has been modified in the last 10 days The date that the file was modified in SharePoint, or date last modified before uploading to SharePoint? And how ...


0

The "Filter" property of SPOSitePropertiesEnumerableFilter specifies the script block of the server-side filter to apply. The type must be a valid filter name and value must be in the form {$_PropertyName "filterValue"}. Valid operators are as follows: eq, ne, like, notlike. Example: The property pass "Url -like 'sales'", will returns all sites including '...


Top 50 recent answers are included