Jul 2, 2008

SharePoint Designer PowerShell Activity

The first Code I've published on i Love SharePoint is the SharePoint Designer PowerShell Activity. Anything PowerShell can do, anything the Activity can do - that's really a lot!

Quick Start (Installation see ReadMe.txt):

  • The example creates a new Site based on the Workflow's List Item Title.
  • Add the Activity to a SharePoint Designer Workflow



  • Insert the following PowerShell Script:


    $web.Webs.Add($item.ID.ToString(),$item.Title,"Created by PowerShell",1031,"STS#0",$false,$false);

    $web.Dispose();

  • Save
  • Run the Workflow. The Workflow now creates a Site named like the List Item. The URL of the Site will be the ID of the Item.

That's just one trivial example. Any ideas how to use, please tell me...

Quick Reference:

In your PowerShell Script you can use the following Variables:

  • $site = current SPSite
  • $web = current SPWeb
  • $list = the List of the Workflow SPList
  • $item = the SPListItem of the Workflow
  • $variable1 = the Workflow Variable you defined for Variable1 in the SharePoint Designer (=$null if you have not defined)
  • $variable2 = the Workflow Variable you defined for Variable1 in the SharePoint Designer (=$null if you have not defined)

You can set the two Workflow Variables within the Script through returning a Hashtable
(keep care on correct types)= @{"variable1"="my Value1";"variable2"=4711};

Errors could be found in the Event Log.

WARNING: This Activity might cause huge security vulnerabilities!

Any comments would be appreciated.

231 comments:

«Oldest   ‹Older   201 – 231 of 231
Bitdefender Login said...

Bitdefender login | Garmin Login | office.com/setup | turbotax login

Bitdefender Login said...

Camps.intuit.com | Garmin Express

norton.com/setup said...

Are you depressed from the bad performance of antivirus especially from Norton antivirus suites? Whether you are using old or new version, there should not come any disability to scan the presence of virus and other relative threats. As soon as you see some failure in the different segment of working document, there is absolute demand of getting the equivalent and most suitable virus protecting sets on norton.com/setup. Lastly, it is advised that you would have to file all complaints with the regard of failure to our technical team. We are one of the best third party organizations where you can get the solution of eliminating the tragedies of antivirus failure. Contact us to know more information.

norton.com/setup said...

I really happy found this website eventually. Really informative and inoperative, Thanks for the post and effort! Please keep sharing more such blog.

norton.com/setup

norton.com/setup

mcafee.com/activate

kaspersky activation code

pogo not loading

roadrunner email

aol mail password recovery

norton.com/setup said...

I really happy found this website eventually. Really informative and inoperative, Thanks for the post and effort! Please keep sharing more such blog.

norton.com/setup

norton.com/setup

mcafee.com/activate

kaspersky activation code

pogo not loading

roadrunner email

aol mail password recovery

Wear Dress Clipping Path Service said...

I analyze your blog it's a very powerful shell scripting article. I like this shell script post very useful blog. Helpful for software developers. Thanks and keep it up.

luke shaw said...

Great post i must say and thanks for the information.I appreciate your post and look forward to more.

Katelyn Leah said...

Do not know how to connect your Canon Pixma MG3600 to wireless? Download the manual to understand the compatible methods. Customers prefer using wireless connectivity methods such as WPS or the standard connection methods. For Canon Pixma MG3600 Setup assistance, use the Printer support number on our webpage.

Katelyn Leah said...

Want to know about the Canon Pixma G4210 Wireless Setup? You can make use of the WPA method otherwise called as wifi protected access to setup it up wirelessly. To know more about this setup you can give a call to our team who will guide you.

adamparker said...

The HP OfficeJet Pro 8025 printer is very apt for office use. Its features are below

 Color touch screen
 Voice-activated printing
 HP Smart app compatible
 250 sheet input tray and 60 sheet output tray
 Printing capacity of 20 ppm in black and 10 ppm in color
 Saves 50% off Ink
 One year limited warranty from HP
 Works with Alexa, Google Assistant, and Cortana
 Energy Star certification
 Connectivity to Google Drive and QuickBooks

Deam jones said...

It increased the boot speed and optimize the overall performance of the system. Norton Security Deluxe is new applications that have all the qualities of Norton antivirus with some extra services. norton.com/setup | norton.com/setup | norton.com/setup | norton.com/setup | norton.com/setup

walker phoenix said...

If you are Kodak Verite 55 plus user and do not know how to update the software. Let us help you to execute the task. It’s the software download page you have to visit. The process is easy, navigate to the Kodak Verite 55 Plus Driverdownload page and provide the required data. For guidance speak to our techies right away

Norton Setup said...

Norton Antivirus protect your device against Viruses, Trojan, Malware and other onliner threats. To get assistance from the Norton Support, you can click on the following link .
Norton.com/setup

Norton Setup said...

Norton Antivirus protect your device against Viruses, Trojan, Malware and other onliner threats. To get

assistance from the Norton Support, you can click on the following link .
Norton.com/setup

walker phoenix said...

It's not a tough job to install Kodak Verite 55 Plus Driver. If software CD is available with the package, insert it to the computer and start to extract the setup file to the required directory. Besides you have compatible software and driver download web pages too. Speak to our techies for more updates

adamparker said...

Let us execute the HP OfficeJet 200 Mobile Printer setup
• You can remove the protective tapes that surround the model as the first step.
• The very next step is to insert the Cartridges to the appropriate slot
• Select the appropriate network settings.
• If the network connection is activate, the software and driver download webpage.
• Enter the required data to find the matching software.
• Go back to the installation settings to proceed further.

HP Printer Setup said...

Wireless Printer setup is always best for HP printers .For HP Office Jet Pro 8035 printer users, 123.hp.com/setup 8035 instructions are here to guide you

• As the first step, connect the cables
• If it's a power cable, fix one end to the device and another end to the adaptor
• To proceed with the remaining setup steps, switch the device ON
• Wireless setup is good and let's explain how to select the settings
• Go to the network settings and start the search to find the option, wireless setup wizard
• You may now receive an onscreen prompt to enter the credentials
• Wait for some time until the network is active
• Suggest you to find the matching software for the model, HP OFFICEJET PRO 8035
• If windows is your version, use the windows update settings
• If Mac is your version, install the software update tools. Driver easy is best for automatic software update

Best Internet Provider said...

In California 98% of the people have access to internet. It is because many of the well-known internet providers are offering their service here. Frontier internet is providing both the DSL as well as the Fiber internet services in the state. The other half of the population who do not have access to these internet types can make use of Viasat internet's services. So there is internet providers in California options for everyone. For further details get in touch with our internet experts @ +1-866-218-9720

norton.com/setup said...

I really happy found this website eventually. Really informative and inoperative, Thanks for the post and effort! Please keep sharing more such blog.

norton.com/setup

norton.com/setup

mcafee.com/activate

kaspersky activation code

pogo not loading

roadrunner email

aol mail password recovery

norton.com/setup said...

I really happy found this website eventually. Really informative and inoperative, Thanks for the post and effort! Please keep sharing more such blog.

office.com/setup

kaspersky activation

aol mail password recovery

norton.com/setup said...

I really happy found this website eventually. Really informative and inoperative, Thanks for the post and effort! Please keep sharing more such blog.

office.com/setup

kaspersky activation

aol mail password recovery

norton.com/setup said...

I really happy found this website eventually. Really informative and inoperative, Thanks for the post and effort! Please keep sharing more such blog.

norton.com/setup

norton.com/setup

mcafee.com/activate

kaspersky activation code

pogo not loading

roadrunner email

aol mail password recovery

Anonymous said...


Visit www.mcafee.com/activate for download and activate your mcafee product, and if you have any issues you can directly call at mcafee toll free number.

mcafee activation key support
activation key for mcafee
mcafee activation
how to activate mcafee
mcafee product activation
how to activate mcafee
mcafee com setup activation
mcafee antivirus code
mcafee activation support

w-nortoncomnorton said...

Secluded Purchase:- In the pulled back get, one can without a major proportion of a stretch buy the Norton Setup thing from the nearest retail store. Customer will get a CD close retail card having incitation code on it. Show the Norton.com/Setup from the CD and start it by the printed incitation key.

Logan Smith said...

In some cases, a printer driver is inaccessible mistake is shown on the driver program that is introduced on the Microsoft windows 10 PC. This mistake for the most part manifests when the printer's driver isn't refreshed, if driver is tainted or despite everything you have to introduce windows 10 updates. In this way, so as to check from where, this driver inaccessible mistake is springs up; you have to investigate the driver or the working framework. To fix this issue on windows 10 PC, you ought to download the most recent printer driver. For this, you can visit 123.hp.comand download your ideal printer driver programming effectively. Prior to that, you can likewise pursue the couple of investigating steps to dispose of this error.

lily grace said...

bullguard login- PC security is the way toward anticipating and distinguishing unapproved utilization of your PC. Counteractive action estimates enable you to prevent unapproved clients from getting to any piece of your PC framework. Recognition causes you to decide if somebody endeavored to break into your framework, in the event that they were effective, and what they may have done. www.bullguard.com/is-mdl-install | www.bullguard.com is-install-mdl-install | bullguard login

Aol Desktop Gold said...

AOL Desktop Gold is an excellent administration of AOL Mail which anybody can bear the cost of by paying the amount every month. AOL Gold will give you heaps of premium offices like programmed update and ultra-security that makes your information secure from programmers. You can introduce AOL Desktop Gold from the official site of AOL Gold. If you want any sort of help concerning the AOL Gold Software Installation method at that point communicates our customer care administrator.

lily grace said...

bullguard login- PC security is the way toward anticipating and distinguishing unapproved utilization of your PC. Counteractive action estimates enable you to prevent unapproved clients from getting to any piece of your PC framework. Recognition causes you to decide if somebody endeavored to break into your framework, in the event that they were effective, and what they may have done. www.bullguard.com/is-mdl-install | www.bullguard.com is-install-mdl-install | bullguard login

lily grace said...

bullguard login- PC security is the way toward anticipating and distinguishing unapproved utilization of your PC. Counteractive action estimates enable you to prevent unapproved clients from getting to any piece of your PC framework. Recognition causes you to decide if somebody endeavored to break into your framework, in the event that they were effective, and what they may have done. www.bullguard.com/is-mdl-install | www.bullguard.com is-install-mdl-install | bullguard login | bullguard Internet security | bullguard download

Maria Garcia said...

I am very thankfull to you for sharing this fantastic article , I appereciate your work .

mcafee.com/activate , mcafee.com/activate

smithzack792 said...

Norton.com/Setup allows you to deploy your Norton Antivirus effectively. Learn the basics to download, install and activate Norton Setup with Product Key


Mcafee.com/activate- Activate the McAfee product with the 25-digit alphanumeric product key. To download, install and activate McAfee setup, visit www.Mcafee.com/activate.

«Oldest ‹Older   201 – 231 of 231   Newer› Newest»