Web Service: TaskEventsService

Port TaskEventsService

Location:
http://<MRI_Evolution_Site_Path>/Services/Basic/TaskEventsService.svc
Protocol:
SOAP
Transport protocol:
SOAP over HTTP
Operations:
  1. CreateEventDetail

Port type ITaskEventsService

1. CreateEvent

Style: document

Operation type: Request-response. The endpoint receives a message, and sends a correlated message.

Input: ITaskEventsService_CreateEvent_InputMessage (soap:body, use = literal)

parameters type CreateEvent

Parameter Name Required Type Description
sessionId Optional string sessionId parameter (nillable)
impersonateAccountId Optional long impersonateAccountId parameter (nillable)
dto Optional F_EVENTSDto dto parameter (nillable)
DisplayText Optional string DisplayText parameter (nillable)
FilterQueryId Optional long FilterQueryId parameter
PrimaryKeyId Optional long PrimaryKeyId parameter
PrimaryTableCatalogId Optional long PrimaryTableCatalogId parameter
ValidateOnly Optional boolean ValidateOnly parameter
AccountId Optional long AccountId parameter (nillable)
ActionedBy Optional string ActionedBy parameter (nillable)
ActionedByAccountId Optional int ActionedByAccountId parameter (nillable)
Duration Optional double Duration parameter (nillable)
EV_ACTIONED Optional unsignedByte EV_ACTIONED parameter (nillable)
EV_COMMENTS Optional string EV_COMMENTS parameter (nillable)
EV_DATE_ACTIONED Optional dateTime EV_DATE_ACTIONED parameter (nillable)
EV_DATE_DUE Optional dateTime EV_DATE_DUE parameter (nillable)
EV_DATE_LOGGED Optional dateTime EV_DATE_LOGGED parameter (nillable)
EV_EVENT Optional string EV_EVENT parameter (nillable)
EV_EVENT_TYPE Optional int EV_EVENT_TYPE parameter (nillable)
EV_FKEY_TA_SEQ Optional int EV_FKEY_TA_SEQ parameter (nillable)
EV_FKEY_USER_SEQ Optional int EV_FKEY_USER_SEQ parameter (nillable)
EV_FKEY_WEB_USER_SEQ Optional int EV_FKEY_WEB_USER_SEQ parameter (nillable)
EV_LOGGED_BY Optional string EV_LOGGED_BY parameter (nillable)
EV_SEQ Optional int EV_SEQ parameter (nillable)
EV_TYPE Optional string EV_TYPE parameter (nillable)
EV_USER_ACTIONED Optional dateTime EV_USER_ACTIONED parameter (nillable)
EV_VALUE Optional double EV_VALUE parameter (nillable)
ExternalController Optional boolean ExternalController parameter (nillable)
IntegrationDate Optional dateTime IntegrationDate parameter (nillable)
IntegrationIdentifier Optional string IntegrationIdentifier parameter (nillable)
IntegrationObject Optional string IntegrationObject parameter (nillable)
IntegrationSystem Optional string IntegrationSystem parameter (nillable)
IsSystem Optional boolean IsSystem parameter (nillable)
Latitude Optional double Latitude parameter (nillable)
Longitude Optional double Longitude parameter (nillable)
LookupId Optional int LookupId parameter (nillable)
TimeZoneId Optional long TimeZoneId parameter (nillable)
Code Examples
C# Example
// Create the service client
using (var client = new TaskEventsServiceClient())
{
    // Create the request parameters
    string sessionId = "your_value_here";
    long impersonateAccountId = 123;
    var dto = new F_EVENTSDto
    {
        // Set DTO properties here
    };
    
    // Call the service method
    var response = client.CreateEvent(sessionId, impersonateAccountId, dto);
    
    // Process the response
    if (response != null)
    {
        // Handle successful response
        Console.WriteLine("Operation completed successfully");
    }
}
SOAP XML Example
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
               xmlns:bas="http://basic.evolutionsvc.mriapi.com/">
   <soap:Header/>
   <soap:Body>
      <bas:CreateEvent>
         <bas:sessionId>sample_value</bas:sessionId>
         <bas:impersonateAccountId>123</bas:impersonateAccountId>
         <bas:dto>
            <!-- F_EVENTSDto properties here -->
         </bas:dto>
      </bas:CreateEvent>
   </soap:Body>
</soap:Envelope>
PowerShell Example
# Create web service proxy
$serviceUrl = "http://your-evolution-site.com/Services/Basic/TaskEventsService.svc?wsdl"
$proxy = New-WebServiceProxy -Uri $serviceUrl

# Set parameters
$sessionId = "your_value_here"
$impersonateAccountId = 123
$dto = New-Object F_EVENTSDto

# Call the service method
$result = $proxy.CreateEvent($sessionId, $impersonateAccountId, $dto)

# Process the result
if ($result) {
    Write-Host "Operation completed successfully"
    $result | Format-List
}