Show / Hide Table of Contents

Class BulkUpdateAgent

Proxy class for the BulkUpdate Agent Used when communicating remote using WebServices. Avoid using directly. Use the AgentFactory to create the proxy instead.

Inheritance
object
BulkUpdateAgent
Implements
IBulkUpdateAgent
IAgent
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.CRM.Services
Assembly: SuperOffice.Services.Implementation.dll
Syntax
public class BulkUpdateAgent : IBulkUpdateAgent, IAgent

Constructors

BulkUpdateAgent(IFieldValueInfoImplementation, ISoRequestItemsAccessor)

Proxy class for the BulkUpdate Agent Used when communicating remote using WebServices. Avoid using directly. Use the AgentFactory to create the proxy instead.

Declaration
public BulkUpdateAgent(IFieldValueInfoImplementation fieldValueInfoImplementation, ISoRequestItemsAccessor accessor)
Parameters
Type Name Description
IFieldValueInfoImplementation fieldValueInfoImplementation
ISoRequestItemsAccessor accessor

BulkUpdateAgent(IFieldValueInfoImplementation, ISoRequestItemsAccessor, IDebugUser, IServiceCallsRepository, IScriptingConfiguration, IOnlineConfiguration)

Proxy class for the BulkUpdate Agent Used when communicating remote using WebServices. Avoid using directly. Use the AgentFactory to create the proxy instead.

Declaration
public BulkUpdateAgent(IFieldValueInfoImplementation fieldValueInfoImplementation, ISoRequestItemsAccessor accessor, IDebugUser debugUser, IServiceCallsRepository serviceCallsRepository, ConfigFile.IScriptingConfiguration scriptingConfiguration, ConfigFile.IOnlineConfiguration onlineConfiguration)
Parameters
Type Name Description
IFieldValueInfoImplementation fieldValueInfoImplementation
ISoRequestItemsAccessor accessor
IDebugUser debugUser
IServiceCallsRepository serviceCallsRepository
IScriptingConfiguration scriptingConfiguration
IOnlineConfiguration onlineConfiguration

Methods

ExecuteByEntityIdsAsync(FieldValueInfo[], string, string, string, CancellationToken)

Do the batchupdate on selected

Declaration
public Task<int> ExecuteByEntityIdsAsync(FieldValueInfo[] fieldValueInfos, string tableName, string context, string ids, CancellationToken cancellationToken = default)
Parameters
Type Name Description
FieldValueInfo[] fieldValueInfos

The name of the wanted tablename

string tableName

The name of the table to bulk update

string context

Where is the function called from

string ids

Comma separated string of the ids of the entities to update

CancellationToken cancellationToken

This operation cannot be cancelled; the cancellationToken parameter is ignored

Returns
Type Description
Task<int>

Return batchtaskinfoid

ExecuteBySelectionIdAsync(FieldValueInfo[], string, string, int, bool, CancellationToken)

Do the batchupdate on this selection

Declaration
public Task<int> ExecuteBySelectionIdAsync(FieldValueInfo[] fieldValueInfos, string tableName, string context, int selectionId, bool isShadow, CancellationToken cancellationToken = default)
Parameters
Type Name Description
FieldValueInfo[] fieldValueInfos

The name of the wanted tablename

string tableName

The name of the table to bulk update

string context

Where is the function called for

int selectionId

The id of the selection

bool isShadow

Use the shadow selection

CancellationToken cancellationToken

This operation cannot be cancelled; the cancellationToken parameter is ignored

Returns
Type Description
Task<int>

Return batchtaskinfoid

GetAvailableFieldsAsync(string, CancellationToken)

Get all available fields for a given tablename/entity

Declaration
public Task<FieldValueInfo[]> GetAvailableFieldsAsync(string tablename, CancellationToken cancellationToken = default)
Parameters
Type Name Description
string tablename

The name of the wanted tablename

CancellationToken cancellationToken

This operation cannot be cancelled; the cancellationToken parameter is ignored

Returns
Type Description
Task<FieldValueInfo[]>

Returns array of the available fields for the given entity

GetJobResultAsJsonFromBinaryObjectIdAsync(string, int, CancellationToken)

Get result of the batchupdate job

Declaration
public Task<string> GetJobResultAsJsonFromBinaryObjectIdAsync(string tableName, int binaryObjectId, CancellationToken cancellationToken = default)
Parameters
Type Name Description
string tableName

The name of the table that was updated to show the log from

int binaryObjectId

Which binaryobject id has stored the job result

CancellationToken cancellationToken

This operation cannot be cancelled; the cancellationToken parameter is ignored

Returns
Type Description
Task<string>

Result of job as json

GetJobResultsFromStorageAsJsonAsync(CancellationToken)

Get result of the batchupdate job

Declaration
public Task<string[]> GetJobResultsFromStorageAsJsonAsync(CancellationToken cancellationToken = default)
Parameters
Type Name Description
CancellationToken cancellationToken

This operation cannot be cancelled; the cancellationToken parameter is ignored

Returns
Type Description
Task<string[]>

Result of job as json

GetStoredFieldsAsync(string, string, CancellationToken)

Get all stored fields for a given tablename/entity and context

Declaration
public Task<FieldValueInfo[]> GetStoredFieldsAsync(string tablename, string context, CancellationToken cancellationToken = default)
Parameters
Type Name Description
string tablename

The name of the wanted tablename

string context

Where is the function called for

CancellationToken cancellationToken

This operation cannot be cancelled; the cancellationToken parameter is ignored

Returns
Type Description
Task<FieldValueInfo[]>

Returns array of the stored or default fields for the given entity

RemoveStoredFieldsAndGetDefaultFieldsAsync(string, string, CancellationToken)

Remove the stored settings of the bulk update for this table from this context, to get the default settings instead

Declaration
public Task<FieldValueInfo[]> RemoveStoredFieldsAndGetDefaultFieldsAsync(string tableName, string context, CancellationToken cancellationToken = default)
Parameters
Type Name Description
string tableName

The name of the table to remove stored settings from

string context

Where is the function called from that we will remove the settings from

CancellationToken cancellationToken

This operation cannot be cancelled; the cancellationToken parameter is ignored

Returns
Type Description
Task<FieldValueInfo[]>

Returns array of the available fields for the given tablename

RemoveStoredFieldsAsync(string, string, CancellationToken)

Remove the stored settings of the bulk update for this table from this context

Declaration
public Task<bool> RemoveStoredFieldsAsync(string tableName, string context, CancellationToken cancellationToken = default)
Parameters
Type Name Description
string tableName

The name of the table to remove stored settings from

string context

Where is the function called from that we will remove the settings from

CancellationToken cancellationToken

This operation cannot be cancelled; the cancellationToken parameter is ignored

Returns
Type Description
Task<bool>

Implements

IBulkUpdateAgent
IAgent
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top