Add-InlineFunction
Adds an inline function to the farm.
Syntax
Add-InlineFunction [-FunctionAlias] <string> [-AssemblyName] <string> [-Namespace] <string> [-TypeName] <string> [-MethodName] <string> [-Usage <string>] [-Description <string>] [-Lcid <string>] [-Hidden <string>]
Note: SharePoint Subscription Edition does not support the standard Nintex Workflow cmdlets. You may see the error The term 'X' is not recognized as the name of a cmdlet, function, script file, or operable program. If you want to use these cmdlets in SharePoint Subscription Edition, see Invoke cmdlets in SharePoint Subscription Edition.
Parameters
Parameter | Required | Type | Description |
---|---|---|---|
FunctionAlias | Required | System.String | The plain text alias that appears in insert reference. |
AssemblyName | Required | System.String | The assembly where the function method appears. |
Namespace | Required | System.String | The namespace where the class for the method is. |
TypeName | Required | System.String | The class where the static method is. |
MethodName | Required | System.String | The static method that represents the code that is going to be executed. |
Usage | Optional | System.String | The usage that will appear in insert reference. |
Description | Optional | System.String | The description that will appear in insert reference. |
Lcid | Optional | System.Int32 | The locale for this function and translated strings. |
Hidden | Optional | System.Boolean | Will hide the function from the user interface. |
Detailed Description
Registration is required for each language you want the function to be available in.
Examples
Add-InlineFunction -FunctionAlias “MyFunctionAlias” -AssemblyName “MyFunction.AssemblyName , Version=1.0.0.0, Culture=neutral, PublicKeyToken=a32a744ddd6ee383” -Namespace “MyFunction.AssemblyName.MyType” -TypeName “MyType” -MethodName “MyFunction”