Questions tagged [script]

Script a small non-compiled program written for a scripting language or command interpreter

Filter by
Sorted by
Tagged with
0
votes
1answer
17 views

Cannot script check in of deeply nested draft documents using PnP

I have a site that was just migrated to SPO, and had "require checkout" turned on by default on the Documents library. Users have since bulk-uploaded a few hundred docs without checking them ...
1
vote
1answer
715 views

Rename a file in a Document Library - SharePoint 2013

I am wanting to rename a file name in a document library called "RenameAFile". Currently have the following file called "UD-PD-Documentattion.xlsx" and I want add "DN" before the file name "UD-PD-...
0
votes
0answers
11 views

Powershell Transfer files under multiple subfolders to another folder under same Document Library Sharepoint

I have a document library "Documents1" which has multiple folders (aa, bb,cc, dd, Redundant). Trying to write a powershell script to move files placed in multiple sub folders to folder "...
0
votes
0answers
11 views

Powershell script to split csv file

I have below PowerShell script to split csv file. This script works fine in my local machine but it is very slow in client's jump box. The size of my original file is around 300MB and splitting rate ...
0
votes
1answer
29 views

scrap SharePoint folders?

I have an old SharePoint (not SharePoint Online) with multiple parent folders by US States and child folders with different Years. Each year has folders by Orders. I want to go check in each Order ...
2
votes
2answers
8k views

getEnumerator causing collection has not been initialized error inside of async call inside of a loop in a script editor web part

This is an issue I've been struggling with - What I am doing is using a script editor web part and when a user clicks the button, I check to see if a list exists inside of a loop (in this example, it ...
1
vote
1answer
720 views

Alert me How to display word document in browser window?

We need to display a word document inside the browser as part of our SharePoint application. But when we tried to achieve this, it is always showing a popup with options like Open, Save and Save As. ...
0
votes
1answer
907 views

How to change text encoding when inserting values inside a sharepoint list using powershell?

I'm using french words with special characters like "é" "à" etc. When I trying to insert text in my list fields using powershell, it does insert the values but the characters aren't well encoded. For ...
0
votes
1answer
782 views

Unable to get property 'PageManager' of undefined or null reference SP2013

I've just created a new custom list on my site, with a simple list, one text column, no javascript, no CEWP, just a very basic vanilla function. Running the page with PF12 open, the error "Unable to ...
0
votes
1answer
910 views

How can I manage to avoid the underline in a text-decoration: none

I am trying to solve the problem with the underline in a text-decoration: none. This is the script I have: p { padding: 5px 0; } a:link { text-decoration: none; } a:visited { text-decoration: ...
0
votes
2answers
1k views

Tiles not centered within web part in Sharepoint 2013

I am completely new to SharePoint and trying to design/create a page as requested by the company I work for. The issue I'm having is all the tiles I've created within a web part are aligned left. I ...
0
votes
2answers
1k views

Set background colour of description in tiles

my tiles look like this: I know how to change the darker background (from heading) but how can I change the background of the description (shows up when going with mouse over tile) and the ...
1
vote
1answer
1k views

Extract all data as files from a SharePoint instance using Powershell

I am searching for a good way to extract all uploaded files in SharePoint using PowerShell. I saw some options to extract all documents to .csv files, but that's not what I need. If a user uploaded ...
2
votes
1answer
104 views

Create a document library in a sharepoint online site with python

I am trying to create a document library with a python script. I have tried doing it using Microsoft graph but I am having trouble doing with POST request and I didn't succeed. I also tried doing so ...
0
votes
1answer
1k views

Adding Item to SharePoint list using Jquery

I am trying to create a button on SharePoint online classic page which will submit to a list. From there a flow will run. Just a question I have found an example how this can execute. A few ...
0
votes
0answers
25 views

Is there a chance to reset home page via button?

Hello fellow Sharepointers, The thing is that I want to make a "shared" site for my colleagues, where they can test, create, edit or delete web apps. But if they leave, it would be good to ...
1
vote
1answer
407 views

How to add a web part to a task form?

What I want to achieve: - users always forget to click the OK Button after reading a task - I want a message when someone closes the task tab like 'You closed this tab without closing the task. To ...
0
votes
2answers
34 views

Remove anonymous link from SharePoint thanks to PowerShell

I am currently working on a script that should remove an anonymous link from SharePoint using Powershell. I don't know where to start and i would like to know if somebody has an idea on how to do it. ...
0
votes
2answers
6k views

How can I display an SVG in SharePoint 2013

I have an SVG file created with links to navigate to other pages. If I open this file directly in a browser it displays, scales and is selectable as it should be. When I embed the code in SP 2013 in ...
0
votes
0answers
11 views

Removing shareling from a specific SharePoint or Onedrive File to a specific person

Function Remove-OneDriveSharingLink { param ( $OneDriveURL ) process{ Connect-PnPOnline -Url $OneDriveURL $Ctx= Get-PnPContext $Files= Get-PnPListItem -List "documents" foreach( $File in ...
1
vote
1answer
77 views

remove an access from a specific person to a specific file or folder of Sharepoint et Onedrive using PowerShell

I am actually working on a script that should remove access from a specific person to a specific file or folder. We can share files to person from outside our organisation using Onedrive and ...
1
vote
1answer
40 views

Why is my SharePoint script only working for me?

I have full control permission levels over my department's SharepPoint 2013 team site. I have inserted a jquery in a script editor web part located in my list's New Form. It works perfectly for me ...
1
vote
0answers
22 views

Sharepoint 2016 Live Chart Script

Does anyone have a code to input into SharePoint to create a Live Chart (Pie,Bar, Line) that receives its data from a SharePoint list. I am a novice code builder and can not seem to find the right one ...
1
vote
3answers
1k views

Set number of decimal places - PowerShell

So I'm building up a PowerShell script, and I wish to set the number of decimal places on a "Number" column. However, I can't seem to find the property necessary to do so. According to MSDN is should ...
0
votes
1answer
2k views

How to hide a List View column in Modern SharePoint

I have a List in a SharePoint Online site that uses the Modern experience. I want to hide a column, but need to stay in Modern. The easy way I found was inserting a few lines of Javascript in a Script ...
1
vote
2answers
2k views

Get-PnPList not working correctly with subsite's subsite

I am using below code to get lists of all subsites. But it is failing after one level of sitecollections. i cant connect with each web using Connect-PnPOnline as it takes too much time. Please suggest ...
0
votes
1answer
15 views

New Language pack not working properly

Installed a new Language pack in SP2016 server. Everything is working fine except one drive. One drive opens blank for the new language. On console I am getting below error: Script error for "odsp-...
0
votes
2answers
297 views

Javascript to retrieve and validate file attachments in new item form

I have a requirement to inject javascript via a script editor web part into a form and validate that it's not a macro enabled Excel file (xltm or xlsm), and throw a validation error if it is and not ...
1
vote
1answer
202 views

Powershell set field value based on folder name

I need to find a way using Powershell to set the value of a field in a document library based on a folder name. So for example if there is a folder called "00170" and there is a field named "Reference"...
2
votes
1answer
1k views

Add a separator between certain columns on New/Edit Form on SharePoint 2013 OOTB

I have the following modified version of Curtis Weir's field hiding script from dmcinfo.com which I want to run using the SharePoint OOTB Script Editor: <script src="//code.jquery.com/jquery-...
1
vote
1answer
211 views

Auto populate a lookup field with multiple entries after selecting multiple entries from a lookup

Please excuse me for the vaugness, required due to the type of work. I have a list that indicates upcoming work on various items. When the work is finished on those items, drawings need updated. As ...
0
votes
1answer
703 views

How i can change the Label for my Discussion Board App from “new discussion” to something else

I am working on SharePoint online 2013. and i add a new Discussion Board App inside my Team site collection. now i name the new app as "News & Announcement", so i was expecting that the defualt ...
0
votes
1answer
518 views

validation for this page is invalid and might be corrupted. Please use your web browser's Back button to try your operation again

I am working on 2 classic online team sites. one site is the root which contain the real list, and the other is acting as the infrastructure site which contain some custom scripts and pages which i am ...
0
votes
1answer
163 views

Does the “Custom Script” setting inside the sharepoint admin center affect modern sites (Communication or Team sites)

I did many tests and reading and i did not find a clear answer if the "Custom Script" setting inside the sharepoint admin center affect modern sites (Communication or Team sites). for example i did ...
2
votes
1answer
2k views

“Custom Scripts” setting inside our tenant, How it works exactly

I spent many days reading about how "Custom scripts" work for sharepoint online, but i can not fully understand it. for example we have this case. inside SP admin center >> Settings >> we have custom ...
1
vote
1answer
338 views

Is there a way where we could provide “Read” permissions to a user to a SharePoint Online site using Powershell

I am trying to create a powershell script via SharePoint Online Management Shell, where I will provide "Read" permissions to a user. Most of the articles I read is that we could only add the user as ...
1
vote
2answers
180 views

Need to have buttons on InfoPath form in a Site Page to direct to a specific URL

I have an InfoPath Designer form that I created and placed into a Site Page. Now I would like each of the buttons on this form to be able to direct to specified URL. I've tried adding the script below ...
0
votes
1answer
19 views

Sharepoint script for long path ways and some file types

I have heard that there is a script that we can run on the files and folders before migration and it helps us to not the have errors like "long path way" etc. This script as i know run in powershell ...
2
votes
2answers
1k views

Pop Up On Load SharePoint 2013

I am trying to get a modal to appear when the site loads. I created a site page called Disclaimer.aspx and stored it in the Site Pages document library. I created a text document called popup.txt ...
1
vote
1answer
219 views

Scripts Not Working in Content Editor

I have a generic out of box web part page. I have added a content editor web part on that page that links to a HTML file because I want to build my own custom form via HTML. Here is the HTML file. &...
1
vote
2answers
62 views

SharePoint site online deletion

I mistakenly launched a script that allows the removal of SharePoint online sites and I deleted a very important site. Is there a way to retrieve it?
1
vote
1answer
54 views

Can the latest versions of SharePoint support code snippets?

I want to create a dashboard at work. Due to company restrictions, our best bet is to create one in SharePoint. This means we have to extract the data from an Oracle DB and use the data to create the ...
2
votes
2answers
16k views

Run Powershell Script from Sharepoint page

I use a PS script to create a list. Instead of a scheduled task, I wondered if I can put a link or a button on a sharepoint page, that when you click on it, it runs a PS Script on the SharePoint ...
0
votes
1answer
2k views

Create folders and subfolders in document library using client object model using JSOM/ECMAscript

Regarding the link below Create folders and subfolders in document library using client object model can i get the same functionality achieved using JSOM/ECMA SCRIPT
1
vote
3answers
1k views

Sharepoint traffic light

My boss wants me to make a traffic light system inside a list, which changes colour depinding on the values of a column, using javascript(has to be javascript!) in sharepoint 2013. I found a guide ...
2
votes
1answer
34 views

Color coding list custom field in SP 2013

We have a field called next due date. I'm trying to color that field if it exceeds the date. Red color if exceeds the date and yellow color if it is 1 day near to the due date. Please guide me on ...
0
votes
0answers
148 views

Removing Weekend Days From Calendar as web part

I wish to edit my 2013 Calendar web part and remove Saturday and Sunday from showing if possible so it only shows the work days of the week. I've tried the scripts shared on this tread: Removing ...
0
votes
0answers
27 views

JavaScript in CEWP modifying nearby list webpart - losing functionality when sorting/filtering

If loading JavaScript by CEWP onto a SharePoint page you can do nice things like changing background color of the list items by value or adding datepicker functionality for items on the list view. ...
2
votes
2answers
5k views

How to identify the jobs which are running?

I need to find the jobs which are running currently. This is to check the longest running jobs. Is there any powershell sript to get this done?
0
votes
0answers
58 views

How to show SharePoint List content on html based website?

Is it possible to show SharePoint List data on Static Website without using C# or CSOM? To Expand further - Can use only scripts to do the job and thus trying to ascertain if Websites can read and ...