UiPath Documentation
activities
latest
false

Productivity activities

RunScript

Runs a Google Apps Script function.

Namespace: UiPath.GSuite.Activities.API

Assembly: UiPath.GSuite.Activities.API (in UiPath.GSuite.Activities.API.dll)

Syntax

IDictionary<string, object> RunScript(
	string scriptId,
	string function,
	IEnumerable<object> parameters = null,
	bool devMode = false
)
IDictionary<string, object> RunScript(
	string scriptId,
	string function,
	IEnumerable<object> parameters = null,
	bool devMode = false
)

Parameters

scriptId String : The deployment ID (or script ID when using dev mode) of the script to run.

function String : The name of the function to run in the given script.

parameters IEnumerable<Object> (Optional) : The parameters to pass to the function. Optional, default value is null.

devMode Boolean (Optional) : If true, runs the script in dev mode using the script ID. Optional, default value is false.

Return value

IDictionary<String, Object> - The result of the script execution.

  • Syntax
  • Parameters
  • Return value

Was this page helpful?

Connect

Need help? Support

Want to learn? UiPath Academy

Have questions? UiPath Forum

Stay updated