Table of Contents

Class IntegrationResult

Result of an integration operation

public class IntegrationResult
Inheritance
IntegrationResult
Inherited Members

Constructors

IntegrationResult()

public IntegrationResult()

Properties

ConnectorId

The connector ID that processed this request

public string ConnectorId { get; set; }

Property Value

string

ErrorDetails

Error details if the operation failed

public string ErrorDetails { get; set; }

Property Value

string

ExternalReferenceId

Optional external reference ID from the target system

public string ExternalReferenceId { get; set; }

Property Value

string

ItemsFailed

Number of items that failed

public int ItemsFailed { get; set; }

Property Value

int

ItemsProcessed

Number of items processed

public int ItemsProcessed { get; set; }

Property Value

int

Message

Human-readable message describing the result

public string Message { get; set; }

Property Value

string

Metadata

Additional metadata from the integration

public Dictionary<string, object> Metadata { get; set; }

Property Value

Dictionary<string, object>

Success

Indicates if the operation was successful

public bool Success { get; set; }

Property Value

bool

Timestamp

Timestamp when the operation completed

public DateTime Timestamp { get; set; }

Property Value

DateTime

Methods

Fail(string, string, string)

Creates a failed result

public static IntegrationResult Fail(string message, string errorDetails = null, string connectorId = null)

Parameters

message string
errorDetails string
connectorId string

Returns

IntegrationResult

Ok(string, string)

Creates a successful result

public static IntegrationResult Ok(string message = "Operation completed successfully", string connectorId = null)

Parameters

message string
connectorId string

Returns

IntegrationResult