Questions tagged [script]

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

Filter by
Sorted by
Tagged with
6
votes
0answers
77 views

SharePoint sometimes adds script in page without any reason

I have this weird problem on one of our customer's SharePoint (2010): sometimes, on different pages, the page came out broken, with a bunch of HTML and scripts inside the normal page. I started ...
5
votes
2answers
136 views

SharePoint Online Apps

I need automate deployment of apps from repository to SharePoint Online(Office 365). Is there any scripts for PowerShell or another way for automate deployment of Apps?
4
votes
1answer
779 views

Remove “Title” column from list default view using power shell command

I have created the custom list with the default view using power shell script.Also added the required columns.but I don't want to show the "Title" column in All items view.How to handle this using ...
4
votes
1answer
680 views

Memory usage problem with powershell script

I recently had to build a powershell script to run trough all webs, subwebs, lists and items within a site collection to check what hasn't been used for a certain period. This went ok in my ...
3
votes
3answers
6k views

Add multiple users, groups and groups permission from *csv file to SharePoint 2013 using powershell

I am looking for script to add multiple users and multiple groups to SharePoint 2013. I have CSV file with cointains two columns with header "user" login and "group" name with are separated by (;) as ...
3
votes
1answer
71 views

Change font and size of button - no designer or jquery!

I have created links to document templates using the source code as opposed to URL (URL links do not open read only and not in the relevant library) - I used the guide here And have created a button ...
3
votes
1answer
3k views

Promoted Links with different sizes in same Page

I have a complicated requirement in which I have to embed a promoted link with different sizes and styles in the same SharePoint page. Figure at the bottom illustrates what I am trying to achieve. ...
3
votes
3answers
330 views

Is Security Trimming Possible in the Script Editor web part?

PROBLEM: I have a single web page in SharePoint that I want to Security trim. Since it's a one-off page, I don't want to change the master page I just want to lockdown this specific page using the ...
3
votes
1answer
108 views

How to create blank page (.aspx) but with core scripts?

I have created a blank page, but then for example ProccessImn() function or _spPageContextInfo variable is not defined. That is because there are not included .js files links I assume. But what links ...
3
votes
2answers
458 views

Copy files from specific SP folder every morning from client

Context Using PowerShell, I was hoping to schedule a task to pull down files from specific folders on SharePoint automatically every morning. It seems fairly simple, but I cannot even manage to ...
3
votes
1answer
187 views

Upload script to SharePoint Online Web Part

I have a web part that will render an existing report on Report Server. The way I found to do this, is to render the report in a App Part using <iframe/> and then reference the App Part in a web ...
3
votes
0answers
107 views

Sharepoint 2013: Get Items by Term-Tree

I have a list with a Term field. I want all Items that have the Term "Stationärer Bereich:Vertrieb" or "Stationärer Bereich:Vertriebsinnendienst" (Including the subtree Terms). This is my Termset: ...
2
votes
2answers
385 views

How can I run this script against multiple sites

I have a new SharePoint deployment we are in the process of upgrading from SP2007 to SP2010. During the visual upgrade a lot of the branding element have been broken and the organisation has a ...
2
votes
1answer
1k views

Download all files in a Documents Library and upload them to a different Share Point Installation

I have a SharePoint farm with several folders with documents which need to be copied to a different SharePoint installation. Is it possible to download all files with the folder structure. And re-...
2
votes
2answers
14k 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 ...
2
votes
3answers
278 views

Using JavaScript to force all my site collections' logos to reference the root site collection is only working on IE

I am working on a SharePoint Server 2013 and I have 4 site collections. I want to always redirect users to the root site collection if they click on the sites logo from the 4 site collections, so I ...
2
votes
1answer
254 views

Get current url inside a Script Editor

I would like to open a New Item Form inside a Dialog. For this approach I'm using the following code: <script type="text/javascript"> string SiteUrl = SPContext.Current.Site.Url function ...
2
votes
2answers
91 views

How to specify start method in Powershell

I have written a powershell script with couple of methods. I want to start powershell script with some specific method,for example the script should start with method Get-SitesWithNewsPageCT() How I ...
2
votes
3answers
2k views

How to put an iFrame with a QueryString appended in its src in the ContentEditorWebPart?

I have a SharePoint site Page in which i need to put an iFrame element to display a web page.To achieve that I wrote some html and javascript within CDATA tag inside the Content section of a ...
2
votes
2answers
4k 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?
2
votes
1answer
2k views

Powershell script to get user permissions

I need a script that will list all sites within a web application with their users and given permission. I found this script which will do basically the same I need, with one problem. It won't get ...
2
votes
1answer
187 views

Unable to upload a design package by using powershell scripts?

I need to Upload the Design package (.wsp file)by using Powershell scripts, I tried to run below commands but it throws an error message The term 'Import-SPDesignPackage' is not recognized Add-...
2
votes
1answer
4k views

“Cannot index into a null array” and “Invoke method on null” errors

I am new to SharePoint 2013 and am not a coder. I have a List, "IRM Summary", that contains Date Opened, Date Closed Days Open and Today columns. If there is a Date Closed date, then Days Open = ...
2
votes
2answers
212 views

Error when creating custom permissions using powershell

I'm trying to create custom permissions in my Sharepoint site via Powershell using the following script: $spSite = Get-SPSite $url $spWeb = $spSite | Get-SPWeb foreach($option in $configuration....
2
votes
1answer
229 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 ...
2
votes
1answer
520 views

Sharepoint online powershell script to get digest of all subsites in a site collection

Is there someone who created a working script for SPOnline that lists in Excel compatible the URL of all subsites in a site collection? Something like this www.domain.com www.domain.com\subsiteA www....
2
votes
1answer
776 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-...
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 ...
2
votes
1answer
1k views

Powershell for Downloading Bulk Data From Document Libraries with MetaData and Log

I am Looking for a PowerShell Script which can download Bulk Data from SharePoint Document Library to a hard Disk with Metadata of each data in a CSV file. I also want log File for a documents which ...
2
votes
1answer
31 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 ...
2
votes
0answers
148 views

What scripts and other files I need to be able to show user presence and person card? [closed]

I have a page with no resource links. What SharePoint script and style files I need to show user presence indicator and to use a function ProcessImn() correctly? Now I have only a presence status ...
2
votes
0answers
68 views

Link Access to a SharePoint file whose name keeps changing

I have an Access database that I would like to link to an Excel file located on SharePoint. Normally, this is easy to accomplish as SharePoint/MS Office are well integrated. The problem is, the Excel ...
2
votes
2answers
7k 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
2answers
1k views

How to Hide Dialog Tile using CSS in Script Editor webpart in SharePoint On premises

I am using SharePoint 2013 on premises environment. I am opening a page (Pages library) in a popup. I want to hide the dialog title using Script editor web part, and achieved the requirement ...
1
vote
3answers
787 views

script runs too soon

I have a little trouble with running a script. It seems the script runs too soon and therefore doesn't work. My goal is a cascading dropdown menu of which various examples can be found on the ...
1
vote
2answers
51 views

What tags do I need for adding following source code?

I wanted to add following code to a Script Editor Web Part, but I am not sure which tags this code needs and if it will even work by adding it in a Script Editor: SPList list = site.RootWeb.Lists["...
1
vote
2answers
44 views

Help understanding powershell script

I want to list all webs in one site collection via powershell and adapted this script from the internet: Get-SPWebApplication http://site | Get-SPSite -Limit All | Get-SPWeb -Limit All | Select Title,...
1
vote
1answer
464 views

Is there a way to reference jQuery inside my master page without having to modify it (same as referencing Alternate CSS URL )

I am working on a sharepoint online 2013. and inside my team site collection, i am adding some script editor web parts which uses jQuery. and for sharepoint to understand jQuery code i need to ...
1
vote
4answers
321 views

SharePoint 2013, updating lots of records, by script?

I have a SharePoint list that has lots of columns and a priority column. Now it used to be a high - medium - low column. However last year they changed the ideas behind that, and we have now 1,2,3,4 ...
1
vote
1answer
65 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
1answer
40 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 ...
1
vote
3answers
442 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 ...
1
vote
2answers
315 views

Running script as a farm administrator

I'm trying to run a script that will generate all of the system account passwords. I have run it the past, but now when I try to run it I get an error that says You need to have Farm administrator ...
1
vote
2answers
858 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 ...
1
vote
1answer
65 views

Powershell changes are not affected in Web UI

Not the first time I noticed that sometimes PowerShell changes are not seen in UI. By example this script: # change web description example Start-SPAssignment -Global $myWeb = Get-SPWeb http://...
1
vote
2answers
6k views

SP13: Calendar Conflict Check

I am working in SharePoint 2013 and seeking a way to add a calendar conflict check therefore end-users can not enter events into the calendar that will overlap with another event. For instance, if ...
1
vote
1answer
86 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
38 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 ...
1
vote
2answers
52 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
146 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"...