NTX PowerShell Action - Stable Release



Show first post

56 replies

Userlevel 7
Badge +10

I am not sure, but it would certainly appear so. Does everything else function correctly in the legacy sites?

Cheers!

Aaron

Actually, no. I just tried to query for some other native Nintex action and I am getting the same thing I see with the Powershell action. What does it mean to "Contact your administrator to enable"? If I know how to do this, I think I can get the Powershell custom action working, too. I cannot find instructions on how to resolve this.

Thank you for your attention!

additional_actions.PNG

Userlevel 7
Badge +10

In Central Administration there should be a section where you can manage Nintex Actions. I suspect that you need to click the checkboxes for the actions that you wish to enable for the farm.

Note: You should be able to break permission inheritance for this at various stages of the hierarchy if you need more granular control later on.

Userlevel 7
Badge +10

Try replacing localhost with the machine name.

Cheers!

Aaron

We have the same Problem We cant call SharePoint Objects:

Cannot access the local farm. Verify that the local farm is properly configured, currently available, and that you have the appropriate permissions to access the database before trying again.
    + CategoryInfo          : InvalidData: (Microsoft.Share....SPCmdletGetWeb:SPCmdletGetWeb) [Get-SPWeb], SPCmdletException
    + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletGetWeb

Did you find any solution

Userlevel 3
Badge +8

Does this solution require PSRemoting?

Userlevel 7
Badge +10

Hi Richard,

This solution requires Microsoft WinRM framework to function.

Badge +3

Any plans to move this project elsewhere when codeplex shuts down? or should I save my copy in my virtual safebox?

Hi

any chance to get this working with nintex 2016 ?

Badge +1

But what do I insert in the "PowerShell Script" richt text box, when my PS script is laying on the server?

 already tried:

C:FolderSubfolderScript.ps1 -Param1 "NintexWFVar"  -Param2 "NintexWFItemProp"

...but nothing happens.

I hope u understand what I mean.

Can somebody give me a hint please?

Greets Martin

Badge +3

I my powershell script I have....

Function myFunc

{

....do something....

}

Export-ModuleMember -function myFunc

Then in the workflow action i do:

Import-Module -name c:fullpathfile.name myFunc -param1 "value" -param2 "value"

/Martin

Badge +1

Thanks for the fast reply.

Unfortunately this does not work in my case and I am not getting any errors.

When I simply open the shell on the server and paste C:FolderSubfolderScript.ps1 -Param1 "NintexWFVar"  -Param2 "NintexWFItemProp", the script will execute as expected.

Could it be any reason my script is designed?

This is my script::

param(
    [string]$DestWebURL,
    [string]$PCGroup,
    [string]$ProductName
)
if(!(Get-PSSnapin Microsoft.SharePoint.PowerShell -ea 0))
{
Write-Progress -Activity "Loading Modules" -Status "Loading Microsoft.SharePoint.PowerShell"
Add-PSSnapin Microsoft.SharePoint.PowerShell
}
function AddFileShareLink{
    #Get Web
    $w = Get-SPWeb $DestWebURL
    #Get Placeholder
    $node = $w.Navigation.Quicklaunch | where {$_.Title -eq "FS2Link Placeholder"}
    
    #Check Placeholder Existence
    if($node){
        #Build FS-Link
        $fsLink = "file://fs2srv/_SP_Product_Center/" + $PCGroup + "/" + $ProductName
        $fsLinkName = "FS2SRV " + $ProductName;
        $fsNode = New-Object Microsoft.SharePoint.Navigation.SPNavigationNode($fsLinkName, $fsLink)
        
        #Add to Quicklaunch
        $w.Navigation.Quicklaunch.AddAsLast($fsNode)
        #Move New Node Position
        $fsNode.Move($w.Navigation.QuickLaunch, $node)
        $node.Delete()
    }
}
AddFileShareLink

Badge +3

Hi

Don't know if you got it working in the meantime, but I realize I forgot to mention my script is in a .psm file, powershell script module, and please pay notice to the -ExportModuleMember after the main function.

Badge +1

Hi Martin,

Thanks for your reply. I tested a simple Script which accesses the SP PS CMD-Lets and should just return me the list count of the website.

I tried it with a normal *.ps1 and your variation as ps module, but both weren´t working.

Here is the module code:

Param(
    [string]$Url
)

function TestMe{
Add-PSSnapin Microsoft.SharePoint.PowerShell

$w = Get-SPWeb($Url)
$count = $w.Lists.Count

return $count
}
Export-ModuleMember -function TestMe

Here the line i wrote in the ntx wf action:

Import-Module -Name C:BatchTestMe.psm TestMe -Url "http://intranet"

The funny thing at this point is, when i only let the action return the SPWeb-Object, it works:

But trying to access the properties of the SPWeb object is never working. Can anyone explain this?

Badge +1

Hi Aaron Labiosa‌,

I am getting an error message when I publish my workflow where I have added a PowerShell Action. Do you know how to solve this problem?

soap:ServerServer was unable to process request. --> Failed to

publish workflow: <Error> <CompilerError Line="0" Column="10"

Text="The type or namespace name 'PSActivity' could not be

found (are you missing a using directive or an assembly

reference?)" /><CompilerError Line="315" Column="16"

Text="The type or namespace name 'PSActivity' could not be

found (are you missing a using directive or an assembly

reference?)" /><CompilerError Line="237" Column="16"

Text="The type or namespace name 'PSActivity' could not be

found (are you missing a using directive or an assembly

reference?)" /><CompilerError Line="204"

Text="The type or namespace name 'PSActivity' could not be

found (are you missing a using directive or an assembly

reference?)" /><CompilerError Line="200" Column="16"

Text="The type or namespace name 'PSActivity' could not be

found (are you missing a using directive or an assembly

reference?)" /><CompilerError Line="132" Column="16"

Text="The type or namespace name 'PSActivity' could not be

found (are you missing a using directive or an assembly

reference?)" /><CompilerError Line="113" Column="16"

Text="The type or namespace name 'PSActivity' could not be

found (are you missing a using directive or an assembly

reference?)" /></Error>

Thanks.

Hey Aaron Labiosa‌,

we have a problem to deploy the custom action at our farm (SharePoint 2013).

We try to deploy it with the farm administrator.

The problem is, that in the downloaded "ntx"-zip-file isn't the powershell script or a .wsp-file.

I found the powershell script in the wiki, but as I said, there isn't a wsp-file aynwhere.

Can you or someone else please help us?

Userlevel 5
Badge +12

Hi Guys,

I'm stuck at the same exact spot... get-spweb doesn't seem to return anything through the action.  Where you able to figure this out?

Thanks

Mike

Badge +3

The same functionality available in O365? Or any other alternatives for the same in Nintex O365? 

Userlevel 5
Badge +12

I was able to get it working, it comes down to having the right DB permissions.

Userlevel 5
Badge +12

Only on prem as far as this action goes. 

Badge +3

Thanks. No other alternatives to using PowerShell script in Nintex O365 workflow?

Badge +2

Hey ‌,

have you found a solution for the missing wsp/installer?

Hey ‌,

unfortunately no.

Hi Aaron,

              I have downloaded the source code but there is not wsp file in it to install. Can you please guide me where to found the wsp to install.

Many Thanks

Userlevel 7
Badge +10

If you are wanting a WSP, do not use the source code. You would need to use one of the release files.

Reply