sharepoint server – Update Document Library Title Using REST

I am trying to update the Title of an existing document library using REST but getting this error

The parameter __metadata does not exist in method GetByTitle.

my REST endpoint is

/_api/web/lists/getByTitle('RestTestLibrary')

and also tried

/_api/lists/getByTitle('RestTestLibrary')


Payload is

{
"__metadata": {
"type": "SP.List"
},
"Title": "Rest Test Library"
}

headers are

enter image description here

java – What are the steps to consume Real Time Streaming data API and do we always get a client library by their providers in order to consume it

I am having doubt most of the real time streaming API providers like twitter, YouTube etc. provide their client library as well to consume their streaming API. Is this the case with all streaming APIs.
I want to make a real time data pipeline by consuming real time streaming API and put data onto kafka topics. Suggestions for any free real time streaming API.

How to Verify file extention in SPO Library

I’m using SharePoint Online modernUI.

In our site library, we want to restrict users to uploading only PDF files.
Do you have any ideas to verify file extention when uploading?

I would really appreciate it if you could deal with this matter.

document library – Hide the Approve/Reject button in AllItems.aspx in SharePoint Online

I would like to hide the menu item in a document library that reads “Approve/Reject”, since approval is being managed by a workflow that I created. Most online articles tell the solution to this issue is adding custom CSS to the page so I am trying this method. I have opened the page ~/AllItems.aspx in SharePoint Designer.

Upon inspecting the HTML for the page in my browser, I found the html for that button:

enter image description here

I tried editing AllItems.aspx as follows but the button would not disappear:

enter image description here

Can someone please give a full, working explanation of how I might achieve hiding this button?

How can one customise library search results from the header search box?

As announced by Microsoft and discussed in this answer, the search box in the command bar has been removed from document libraries, leaving the header bar as the only place with a search box.

SharePoint library screenshot

When launching a search from this bar, the search results appear in the same view (rather than the Microsoft Search view, which only appears if the “Expand search to all items in this site” link at the bottom is clicked”). The page that’s opened appears to be the view with a query string appended – e.g. https://sitename.sharepoint.com/sites/groupname/Test/Forms/AllItems.aspx?view=7&q=searchterm

SharePoint library search results

I’d like to customise the results to promote particular content types.

I’ve tried so far:

  • adding a new result source and setting it as the default in the Microsoft 365 Admin Center
  • adding a query rule in the site settings

Nothing has had any impact so far on the results that appear. What settings need to be altered to have an effect on these results?

sharepoint enterprise – Renaming File in Library “Invalid File Name” Error

One of my users has a simple SharePoint 2010 library where they store PDFs with some metadata. Problem is, when someone tries to rename the file, by editing the Name field, SharePoint gives an error that the new name is invalid. Strangely, once the error message is close and the page refreshed, the name has changed despite the error saying the opposite.

The same behavior occurs in Explorer View.

There are no special characters in the file names, nor is the filename too long. Versioning is disabled, checking out files is not required.

Log files:

03/29/2016 15:58:54.51 w3wp.exe (SPSTSTWF02:0x154C) 0x19CC SharePoint Foundation Database d0d6 High System.Data.SqlClient.SqlException: Arithmetic overflow error for data type tinyint, value = 256. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlDataReader.HasMoreRows() at System.Data.SqlClient.SqlDataReader.ReadInternal(Boolean setTimeout) at System.Data.SqlClient.SqlDataReader.NextResult() at Microsoft.SharePoint.SPSqlClient.ExecuteQueryInternal(Boolean retryfordeadlock) at Microsoft.SharePoint.SPSqlClient.ExecuteQuery(Boolean retryfordeadlock) 19495cb1-9004-444f-a736-265a1d3d766c

03/29/2016 15:58:54.51 w3wp.exe (SPSTSTWF02:0x154C) 0x19CC SharePoint Foundation General 8kh7 High Invalid file name. The file name you specified could not be used. It may be the name of an existing file or directory, or you may not have permission to access the file. 19495cb1-9004-444f-a736-265a1d3d766c

03/29/2016 15:58:54.51 w3wp.exe (SPSTSTWF02:0x154C) 0x19CC SharePoint Foundation Runtime tkau Unexpected System.Runtime.InteropServices.COMException: Invalid file name. The file name you specified could not be used. It may be the name of an existing file or directory, or you may not have permission to access the file. at Microsoft.SharePoint.Library.SPRequestInternalClass.AddOrUpdateItem(String bstrUrl, String bstrListName, Boolean bAdd, Boolean bSystemUpdate, Boolean bPreserveItemVersion, Boolean bPreserveItemUIVersion, Boolean bUpdateNoVersion, Int32& plID, String& pbstrGuid, Guid pbstrNewDocId, Boolean bHasNewDocId, String bstrVersion, Object& pvarAttachmentNames, Object& pvarAttachmentContents, Object& pvarProperties, Boolean bCheckOut, Boolean bCheckin, Boolean bMigration, Boolean bPublish, String bstrFileName, ISP2DSafeArrayWriter pListDataValidationCallback, ISP2DSafeArrayWriter pRestrictInsertCallback, ISP2DSafeArrayWriter pUniqueFieldCallback) at Microsoft.SharePoint.Library.SPRequest.AddOrUpdateItem(String bstrUrl, String bstrListName, Boolean bAdd, Boolean bSystemUpdate, Boolean bPreserveItemVersion, Boolean bPreserveItemUIVersion, Boolean bUpdateNoVersion, Int32& plID, String& pbstrGuid, Guid pbstrNewDocId, Boolean bHasNewDocId, String bstrVersion, Object& pvarAttachmentNames, Object& pvarAttachmentContents, Object& pvarProperties, Boolean bCheckOut, Boolean bCheckin, Boolean bMigration, Boolean bPublish, String bstrFileName, ISP2DSafeArrayWriter pListDataValidationCallback, ISP2DSafeArrayWriter pRestrictInsertCallback, ISP2DSafeArrayWriter pUniqueFieldCallback) 19495cb1-9004-444f-a736-265a1d3d766c

Unable to load C# library with w10 from python Win32com module while DLL regsitered with Regasm

I am facing an issue with a C# library within a python code.

I am using a C sharp Library to be loaded via a A win32com module.

My DLL is registered via : regasm.exe MYDLL.dll as CSharp DLL cannot be registered via regsvr32.

Here is the code :

import win32com.client as win32 (1)

PL = win32.Dispatch(“MAWApplication”) (2)

after (2) I got below error :

pywintypes.com_error: (-2147221005, ‘Invalid class string’, None, None)

I tried even to run makepy.py to check library but cannot see my DLL

I tried a lot of hints but did not help,same code was working with windows 7

Did i miss something ?

Thanks you guys,

Annit.

sharepoint online – Extract the Name of the uploaded file in document library into another column

You cannot use a calculated column with the name column. You can build a designer workflow that runs on item creation and update the columns with data extracted from file name.

Alternatively, as you seem to be using SharePoint online you can also build a Microsoft flow to do the same.

enter image description here

To extract the first part I used the expression

substring(triggerBody()?('{Name}'), 0, lastIndexOf(triggerBody()?('{Name}'),'-'))

For the second part I used an expression

substring(triggerBody()?('{Name}'), add(lastIndexOf(triggerBody()?('{Name}'),'-'),1), sub(sub(length(triggerBody()?('{Name}')),lastIndexOf(triggerBody()?('{Name}'),'-')),1))

Get ItemChild properties using Powershell Script SharePoint 2013 document library

We have a document library which contains multiple document set we have below requirements :

  1. Get all document set properties like Name, Created Date, Modified date.
  2. Get all ItemChild (document present inside the document set) properties Name, Created Date, Modified date.

We are able to get document set properties but unable to get ItemChild properties, any lead much appreciated, Please find my below code.

Add-PSSnapin "Microsoft.SharePoint.PowerShell"

$web = Get-SPWeb "Site URL"

$list = $web.Lists("ENERGY")


foreach ($listItem in $list.Items)
{
$CabinetName = $listItem('Name')
$CabinetCreateDate = $listItem('Created')
$CabinetModifiedDate = $listItem('Modified')
$CabinetChildItemCount = $listItem('ItemChildCount')

   Write-Host "    Cabinet Name: " $listItem.Name "  Modified: " $CabinetModifiedDate "Cabinet ChildItem Count" $CabinetChildItemCount "Created Date:" $CabinetCreateDate

}
$web.Dispose ()

8 – How do I let the module know where the external library is located?

The International Phone module’s page says that Composer is required to install the module. The module doesn’t have a setting page where you can say where the library has been copied, and that is expected, from a module that requires Composer.

Composer is not a tool you normally use on a production server, and using the production server as test server is pretty wrong.

When I have to install Drupal on a shared hosting that doesn’t allow me to use SSH, I install Composer on the local computer, I use a Composer template to copy Drupal in a directory and I add the modules I need with composer require. I can then use that directory for a local site where I can verify that adding a module, or updating the site, doesn’t cause issues.

When a module requires Composer, there aren’t other ways to let it know where the libraries from which it depends have been installed.
They are loaded from the autoload.php file created from Composer. You could manually create that file, but that would be a bad idea, especially because that file is created basing on some settings present in the composer.json file that comes with Drupal core.