Giter Site home page Giter Site logo

powershellscripts / spomod Goto Github PK

View Code? Open in Web Editor NEW
22.0 6.0 12.0 163 KB

SharePoint Module for managing lists, items and files. The module is a massive work comprising over 3000 lines of code and 50 SharePoint Online cmdlets for managing: lists list columns list items files content type taxonomy

PowerShell 100.00%
sharepoint sharepoint-online powershell

spomod's Introduction

SPOMod

SharePoint Module for managing lists, items and files. The module is a massive work comprising over 3000 lines of code and 50 SharePoint Online cmdlets for managing: lists list columns, list items, files, content types, taxonomy

spomod's People

Contributors

dotcom-better avatar kozacki-antoni avatar powershellscripts avatar unexpectederror303 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

spomod's Issues

SPOFileByServerRelativeUrl

Getting an execute error as follows:
PS C:\WINDOWS\system32> $items.item(2)
/Shared Documents/Daily Procedures/Daily Procedures for Elgin.docx

PS C:\WINDOWS\system32> $arr=@()

PS C:\WINDOWS\system32> $arr+=(Get-SPOFileByServerRelativeUrl -ServerRelativeUrl $items[2])
Exception calling "ExecuteQuery" with "0" argument(s): "Unknown Error"
At C:\Users\elgin.SPECTRUM\Downloads\SPOMod-master\SPOMod-master\SPOMod.psm1:2467 char:9

  •     $ctx.ExecuteQuery()
    
  •     ~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    • FullyQualifiedErrorId : ServerException

Function New-SPOListColumn FieldType "Calculate" Should be "Calculated"

When trying to add a new calculated column, the error message below is displayed:

Exception calling "ExecuteQuery" with "0" argument(s): "One or more field types are not installed properly. Go to the list settings page to delete these fields."

Where the function's ValidSet() for the parameter $FieldType is defined, it shows "Calculate" to be the valid type; however, in SharePoint, the field type is "Calculated" (with a D at the end), which I believe is preventing this query from executing.

I attempted to add the D at the end of Calculated in both the ValidSet() and when calling the function, but it still puts "calculate" when executing the query for some reason. I'm not enough of a PowerShell guru to know why it's behaving like this.

The 'username' argument cannot be null.

Prior to your import of a users credential management suggestion ( R.Variable March 13, 2018) the script prompted you for the username and password and these older scripts work fine for me.

None of the new scripts with this persons suggestion work. All I get are errors
New-Object : Exception calling ".ctor" with "2" argument(s): "The 'username' argument cannot be null. Parameter name: username"

and I never get a prompt or opportunity to input a username and password.

What am I missing to make this work? Thanks!

ListTitle with spaces causes hangs

Passing Get-SPOListItems a ListTitle string which contains a space causes a perpetual hang; Unable to resolve when containing string with quotations (I observe a 'list does not exist at URL' error). Passing nonexistent ListTitles with spaces also results in the same error.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.