Table of Contents

Interface SheetAutomationRuleResources

Namespace
Smartsheet.Api
Assembly
smartsheet-csharp-sdk.dll

This interface provides methods to access AutomationRule resources that are associated to a sheet object.

Thread Safety: Implementation of this interface must be thread safe.

public interface SheetAutomationRuleResources

Methods

DeleteAutomationRule(long, long)

Deletes an automation rule for this sheet.

Mirrors to the following Smartsheet REST API method: DELETE /sheets/{sheetId}/automationrules/{automationRuleId}

void DeleteAutomationRule(long sheetId, long automationRuleId)

Parameters

sheetId long

the Id of the sheet

automationRuleId long

the automation rule Id

Exceptions

InvalidOperationException

if any argument is null or an empty string

InvalidRequestException

if there is any problem with the REST API request

AuthorizationException

if there is any problem with the REST API authorization (access token)

ResourceNotFoundException

if the resource cannot be found

ServiceUnavailableException

if the REST API service is not available (possibly due to rate limiting)

SmartsheetException

if there is any other error during the operation

GetAutomationRule(long, long)

Gets an automation rule for this sheet.

Mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/automationrules/{automationRuleId}

AutomationRule GetAutomationRule(long sheetId, long automationRuleId)

Parameters

sheetId long

the Id of the sheet

automationRuleId long

the automation rule Id

Returns

AutomationRule

the automation rule

Exceptions

InvalidOperationException

if any argument is null or an empty string

InvalidRequestException

if there is any problem with the REST API request

AuthorizationException

if there is any problem with the REST API authorization (access token)

ResourceNotFoundException

if the resource cannot be found

ServiceUnavailableException

if the REST API service is not available (possibly due to rate limiting)

SmartsheetException

if there is any other error during the operation

ListAutomationRules(long, PaginationParameters?)

Gets all automation rules for this sheet.

Mirrors to the following Smartsheet REST API method: POST /sheets/{sheetId}/automationrules

PaginatedResult<AutomationRule> ListAutomationRules(long sheetId, PaginationParameters? paging = null)

Parameters

sheetId long

the Id of the sheet

paging PaginationParameters

the pagination parameters

Returns

PaginatedResult<AutomationRule>

a list of automation rules

Exceptions

InvalidOperationException

if any argument is null or an empty string

InvalidRequestException

if there is any problem with the REST API request

AuthorizationException

if there is any problem with the REST API authorization (access token)

ResourceNotFoundException

if the resource cannot be found

ServiceUnavailableException

if the REST API service is not available (possibly due to rate limiting)

SmartsheetException

if there is any other error during the operation

UpdateAutomationRule(long, AutomationRule)

Updates an automation rule for this sheet.

Mirrors to the following Smartsheet REST API method: PUT /sheets/{sheetId}/automationrules/{automationRuleId}

AutomationRule UpdateAutomationRule(long sheetId, AutomationRule automationRule)

Parameters

sheetId long

the Id of the sheet

automationRule AutomationRule

the automation rule

Returns

AutomationRule

the automation rule

Exceptions

InvalidOperationException

if any argument is null or empty string

InvalidRequestException

if there is any problem with the REST API request

AuthorizationException

if there is any problem with the REST API authorization (access token)

ResourceNotFoundException

if the resource cannot be found

ServiceUnavailableException

if the REST API service is not available (possibly due to rate limiting)

SmartsheetException

if there is any other error during the operation