Table of Contents

Class WorkflowsRequestBuilder

Namespace
Autodesk.ACC.CostManagement.V1.Projects.Item.Workflows
Assembly
Autodesk.ACC.CostManagement.dll

Builds and executes requests for operations under \v1\projects{projectId}\workflows

public class WorkflowsRequestBuilder : BaseRequestBuilder
Inheritance
BaseRequestBuilder
WorkflowsRequestBuilder
Inherited Members
BaseRequestBuilder.PathParameters
BaseRequestBuilder.RequestAdapter
BaseRequestBuilder.UrlTemplate

Constructors

WorkflowsRequestBuilder(Dictionary<string, object>, IRequestAdapter)

Instantiates a new WorkflowsRequestBuilder and sets the default values.

public WorkflowsRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter)

Parameters

pathParameters Dictionary<string, object>

Path parameters for the request

requestAdapter IRequestAdapter

The request adapter to use to execute the requests.

WorkflowsRequestBuilder(string, IRequestAdapter)

Instantiates a new WorkflowsRequestBuilder and sets the default values.

public WorkflowsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter)

Parameters

rawUrl string

The raw URL to use for the request builder.

requestAdapter IRequestAdapter

The request adapter to use to execute the requests.

Properties

Actions

The actions property

public ActionsRequestBuilder Actions { get; }

Property Value

ActionsRequestBuilder

Definitions

The definitions property

public DefinitionsRequestBuilder Definitions { get; }

Property Value

DefinitionsRequestBuilder

this[string]

Gets an item from the Autodesk.ACC.CostManagement.v1.projects.item.workflows.item collection

public WithAssociationTypeItemRequestBuilder this[string position] { get; }

Parameters

position string

The type of the item with which the actions are associated. Possible values Budget, Contract, FormInstance, CostItem, Payment, MainContract, BudgetPayment.

Property Value

WithAssociationTypeItemRequestBuilder

A WithAssociationTypeItemRequestBuilder

Methods

GetAsync(Action<RequestConfiguration<WorkflowsRequestBuilderGetQueryParameters>>?, CancellationToken)

List the current workflow that can execute on the specified item according to the item’s current state.

public Task<List<Step>?> GetAsync(Action<RequestConfiguration<WorkflowsRequestBuilder.WorkflowsRequestBuilderGetQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)

Parameters

requestConfiguration Action<RequestConfiguration<WorkflowsRequestBuilder.WorkflowsRequestBuilderGetQueryParameters>>

Configuration for the request such as headers, query parameters, and middleware options.

cancellationToken CancellationToken

Cancellation token to use when cancelling requests

Returns

Task<List<Step>>

A List<global::Autodesk.ACC.CostManagement.Models.Step>

Exceptions

DefinedError

When receiving a 400 status code

Error

When receiving a 401 status code

Error

When receiving a 403 status code

Error

When receiving a 404 status code

Error

When receiving a 500 status code

Error

When receiving a 503 status code

ToGetRequestInformation(Action<RequestConfiguration<WorkflowsRequestBuilderGetQueryParameters>>?)

List the current workflow that can execute on the specified item according to the item’s current state.

public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<WorkflowsRequestBuilder.WorkflowsRequestBuilderGetQueryParameters>>? requestConfiguration = null)

Parameters

requestConfiguration Action<RequestConfiguration<WorkflowsRequestBuilder.WorkflowsRequestBuilderGetQueryParameters>>

Configuration for the request such as headers, query parameters, and middleware options.

Returns

RequestInformation

A Microsoft.Kiota.Abstractions.RequestInformation

WithUrl(string)

Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.

public WorkflowsRequestBuilder WithUrl(string rawUrl)

Parameters

rawUrl string

The raw URL to use for the request builder.

Returns

WorkflowsRequestBuilder

A WorkflowsRequestBuilder