New answers tagged

0

Please follow steps: Create a Choice Type column and allow multiple value Try using below JSON code on your choice field: { "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json", "elmType": "div", "txtContent": "=join(@currentField, '\n')" } Note: join() ...


0

SharePoint column formatting does not currently support the object-fit property. The list of supported style properties is located here: Styles


1

This is the default behavior in SharePoint. When you upload the file to document library, file name will be stored in Name field and not Title. Workaround: You can populate the file name in Title field using Power automate flow on file creation/updation. You can implement flow something like below:


0

You can use below JSON code to show each value on separate line: { "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json", "elmType": "div", "txtContent": "=join(@currentField, '\n')" } Check my full answer at: Organize multi-choice user inputs by ...


0

You can set the modern page as the Home page. Please follow steps: Go to the Pages Library. Select the desired page, click on the ┇ link to the right of the item, and then click on "Make homepage" button. Then, go to the Home page, you can view this page is using the Modern Experience.


1

You can get the selected users through onChange property: https://pnp.github.io/sp-dev-fx-controls-react/controls/PeoplePicker/ In the above method, you can store the values in state or somewhere then use it in another rest API call.


0

I can see there are some syntax error in your JSON code. Assuming you have column with internal name as "shipping" which holds company name and this is simple column like single line of text or choice. You can build your if condition like: { "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema....


1

Currently there is no direct OOTB way to move site pages from one site to another site in SharePoint online modern experience. You can try other workarounds as suggested in below references like using Power Automate or PnP PowerShell. Copy or Move Site Page from one site to another - Using Power Automate SharePoint Online - Copy site pages between site ...


0

Try to enable custom script for a SharePoint Online site collection. Connect-SPOService -Url https://tenant-admin.sharepoint.com -credential Set-SPOSite -Identity https://tenant.sharepoint.com/siteurl -DenyAddAndCustomizePages 0


0

ServerProcessedContent property of React Script Editor is an empty object. You can verify its value from the workbench: BR


0

One way you can try is to use the send to function in classic experience to copy the page to your new site.


0

Yes, this is fairly straightforward. Pick a library (e.g. Site Assets), configure Library Settings | Advanced settings and set Allow management of content types to Yes. For that library, within Library Settings under Content Types, click Add from existing site content types. Select Web Part Page from Available Site Content Types. This will allow you to ...


1

You could call another Rest API in the success function of the first. private userData = () => { $.ajax({ url: `${this.props.siteUrl}/_api/Web/Lists/GetByTitle('APP_NAME1')/items?$select=*,BookingID/ID&$expand=BookingID`, type: "GET", dataType: "json", headers: { accept: "application/json;odata=verbose&...


0

This is a known behavior of SharePoint online Events web part. Events web part doesn't show recurring events and you can't add a recurrence when adding an event from the Events Web Part. For more information, read my answer given at: Show recurring events in the new Event Web Part Also, Microsoft has stated that there are no current plans to add this ...


1

Based on your last question at: Item not fetching using lookup in React Sharepoint, You need to make nested REST calls to get the information from another list. Below are general steps you can perform to achieve this: Make first REST call to get the information related to Booking item: <siteUrl>/_api/Web/Lists/GetByTitle('APP_NAME')/items?$select=*,...


0

I think Icon control has not offered this kind of functionality. You can add badge number by means of other libraries. https://material-ui.com/components/badges/ <Badge badgeContent={8} color="secondary" anchorOrigin={{vertical: 'bottom', horizontal: 'right'}}> <Icon title="myicon" iconName="MailAlert" className={...


1

Yes, it is possible to develop offline-capable canvas apps. Here is what you can do: Determine when an app is offline, online, or in a metered connection by using the Connection signal object. Use collections and leverage the LoadData and SaveData functions for basic data storage when offline. Microsoft documentation: Develop offline-capable canvas apps ...


1

This is a known behavior of SharePoint. Extending Person or Group field using lookup columns is not supported in SharePoint. So, you will not be able fetch or add any filter on Person or Group field from lookup list. To get the data from 2nd list, you need to use nested REST call. You can filter the list items based on the item ID you will get from BookingID ...


1

You can use addValidateUpdateItemUsingPath to create list items inside folder. Sample code: const listPath = `${webRelativePath}/Lists/ListUri`; sp.site.rootWeb.lists.getById(ListId).addValidateUpdateItemUsingPath([ { FieldName: 'Title', FieldValue: 'TestItem' } ], `${listPath}/FolderPath`).then(console.log); To get items inside folder, you can try ...


0

In SharePoint modern experience, you get hover experience for person or group field. When you hover over a column value, it opens a pop-up showing group or user details like below: Workaround: You can use column formatting (JSON formatting) to format the list view and generate a link which will redirect to group settings. you can refer below sample JSON to ...


1

By design, the Modern SharePoint Lists don't support the "Find an item" search box. Only when you switch to the Classic mode will the "Find an item" search box appear. So you cannot create a search box for the SharePoint List in Modern mode. If you need to search items based on the value of the Description column, you should configure the ...


0

It is not supported to change the display text or theme for the embed code of Microsoft Forms. See a related UserVoice post here: Embed code with options. In addition, there is another post with higher attention in the Forms UserVoice forum, where you can go and share this idea: Sharing and collaborating experience in Forms.


0

Are you talking about below list view web part? https://support.microsoft.com/en-us/office/use-the-list-web-part-ef0a1b80-f8b3-443d-b04a-1e76c70b5537 If so, it's possible to update its properties via code. For example, we can update it through PnPjs: https://pnp.github.io/pnpjs/sp/clientside-pages/ public async UpdateSitePage(): Promise<void> { ...


0

Short answer to your question is No. There is no index associated with the choice/option inside the choice column. For a column configured as a Choice column, the order in which the items in the Choice list are presented is the order in which they are entered and listed in the Type each choice on a separate line text box in the Additional Column Settings ...


0

According to my experience, it should not be possible.


1

Note that service.cnf isn't a reliable way to determine "build". This number does not get updated with every deployment of a fix and/or feature and many SPO services are microservices outside of the farm (i.e. co-authoring isn't a SharePoint service and storage is in Azure Blobs, not the content database). To troubleshoot, you'd likely need ...


0

I assume you want to directly response in the SharePoint Online modern page? You can use a MS forms web part to embed the sharing link for Sending and collecting responses. It works like below:


2

Easiest way is to use Service cnf file. To see build version, Open your default SharePoint site in browser https://[tenant].sharepoint.com/_vti_pvt/service.cnf You can find other ways in below reference. Reference: How to Check SharePoint Online Version?


0

In addition to Rune answer (appreciate that), I have found another way to accomplish this in a more practical way as demonstrated here: Is there a way to stop editing an item when the approval status is pending in SP online list?


0

You could use Get-PnPListItem get all items you want to delete, then you can use ListItem.DeleteObject method in the loop, or you could choose use Remove-PnPListItem in the loop.


1

Just run the condition for the third option first, use ISBLANK function to identify if “Actual Finish Date” is blank: IF(NOT(ISBLANK([Actual Finish Date])), "Completed", IF([Projected End Date] > TODAY()-1,"On Schedule","Project Slip") ) Reference: IS functions.


0

I am answering as per my understanding from your question (correct me know if I am wrong). If you want to show the Project State as "Completed" when "Actual Finish Date" has some value then try below formula: =IF(ISBLANK([Actual Finish Date]), IF([Projected End Date] > [TodaysDate]-1, "On Schedule", "Project Slip"), ...


1

You can delete a list item/row using below command: Remove-PnPListItem -List "Demo List" -Identity "1" Where -Identity is the ID of the list item, or actual ListItem object. Microsoft Official Reference: Remove-PnPListItem If you want to remove all items from a SharePoint Online list then check below reference: Remove all items from a ...


4

I think this is what you are asking for: Remove-PnPListItem -List "[Your list Title goes here]" -Identity ($TheItemId)


1

I followed the steps given by you, tried the same from my end and observed the same behavior in my SharePoint Online tenant. I think this is some kind of bug or known issue (See below references). My observations: If custom content type has any required custom site columns then document is getting checked out automatically. If custom content type does not ...


1

The classic pages/sites will remain classic after migration. The best practice would be to build everything from scratch in modern experience. Also quoting from this document: Differences between modern and classic experiences for lists and libraries: There's not a 1:1 mapping between all features on a classic site and a modern team site. But site ...


0

There is no conversion process from classic to modern. For pages, you need to recreate pages as modern from scratch. If you want the site to use a modern template (Communications or Teams), then you need to create a new site.


0

You are receiving this error because SharePoint uses ISO8601 DateTime format (YYYY-MM-DDTHH:MM:SSZ), and the DateTime field is not receiving the correct data. The sample command provided by Ganesh Sanap is the answer. Just run the command again and the error would go away. The "Date and Time Format" setting for this field can either be "Date ...


1

If you are using the OOB Events web part, the page to create new event from the "Add event” button is _layouts/15/Event.aspx and does not support customization. These are built-in controls on this modern page and cannot be modified or removed. Removing the columns from the Event content type will not have influence on this page or the Event list. In ...


0

Try using below: Set-PnPDefaultColumnValues -List "Temp" -Field "DateClosed" -Value "2020-08-01T00:00:00Z"


0

You could just try to change to column setting.


1

Try using this: "txtContent": "=if([$Project_x0020_Overruning] == 'Overrun', 'Overrunning', toLocaleDateString(@currentField))" toLocaleDateString(): returns a language sensitive representation of just the date portion of a date. "txtContent":"=toLocaleDateString(@now)" results vary based on user's locale, but en-us ...


0

If you are using you have to add a link to a document or page or Image. there is no out of the box to remove it. Instead of using Hero webpart, you can use Image Gallery webpart in SharePoint Online. But you will not get the exact look and feel as of Hero webpart. In Image gallery webpart, you will get 3 different layouts: Brick Grid Carousel Also, you can ...


0

If you only want to display pictures, just try to use the image gallery web part. Have a try with it:https://support.microsoft.com/en-us/office/use-the-image-gallery-web-part-bbcbe560-14a7-4369-8ef5-3255845e3bfd


0

@Dhanjay Bhardwaj, If you're developing an SPFx React app (webpart or extension), I suggest you use SPHttpClient or PnPJS to fetch items from SharePoint list. Compare to $.ajax, the above helper classes execute REST API requests against SharePoint. It adds default headers, manages the digest needed for writes. You can have a look below tutorials: https://...


0

You can use $select in SharePoint REST API to select particular columns from SharePoint list. You need to use internal name of column in REST API. You can use REST endpoint like: /_api/Web/Lists/GetByTitle('App_Name')/items?$select=ID,Title,Name,Email,Phone


0

@Rajana Deepak, The file viewer web part will rename the uploaded files to prevent overwriting existing files. These files will be stored in Shared Documents library. If you want to update the showing file, you can first change back its name. Then upload the changed local file to Shared Documents library to overwrite the existing one. The file viewer will ...


0

@Swetha Paritala, Should it be else if(userRole !== null){...}in below code? ... } else ( userRole !== null ) { this.setState({preSelected:userRole }); return returnedValue; } ... BR


1

Need to set up correct spfxContent like this in WebPartName.ts: public onInit(): Promise<void> { return super.onInit().then(_ => { // other init code may be present sp.setup({ spfxContext: this.context }); }); }


1

If you want to change the column header and keep the list view as a standard SharePoint list view then No. It is not possible to just change the column headers using JSON formatting. If you want to customize the complete view and create a custom header then you can do that using view formatting. Check below View sample for reference: Custom Header Note: ...


Top 50 recent answers are included