Loading...

GET   https://api.3seventy.com/api/v2.1/account/{accountId}/action/{actionId}/execute/{executeId}

Description

Gets a detailed action execution log.

Path Parameters

accountId integer The account Id which owns the action. required
actionId integer The action to get execution log for. required
executeId integer The execution id to get details for. required

Response Properties application/json

Id integer Unique id
AccountId integer The account ID to which the action was run as.
ActionId integer The action this status belongs to.
ScheduleId integer Schedule this run was initiated for, if any
Started string When the action run was started
Finished string When the action run was finished
Created string When the status object was created.
Modified string When this status was last updated.
Approved boolean Approval status
Declined boolean Declined status
ApprovedBy string User which approved or declined the run
TotalItems integer The total number of items to process on this event.
ProcessedItems integer The total number of items processed successfully on this event.
ErroredItems integer The total number of items that failed out on this event.
StatusId number The current status of the event.
Message string Error message that can be safely shown to the user
Logs array[object] Log records associated with this run
{
  "Id": 835,
  "AccountId": 44142,
  "ActionId": 16976,
  "ScheduleId": null,
  "Started": "2015-10-23T15:08:53",
  "Finished": "2015-10-23T15:08:53",
  "Created": "2015-10-23T15:08:53",
  "Modified": "2015-10-23T15:08:53",
  "Approved": false,
  "Declined": false,
  "ApprovedBy": null,
  "TotalItems": 0,
  "ProcessedItems": 0,
  "ErroredItems": 0,
  "StatusId": 2,
  "Status": "Completed",
  "Message": "",
  "Logs": null
}

C#


using System;
using System.Collections.Generic;
using ThreeSeventy.Vector.Client;
using ThreeSeventy.Vector.Client.Enums;
using ThreeSeventy.Vector.Client.Models;


public class Program
{

private static void Main(string[] args)
{

const int accountId = XXXX;

const int actionId = XXXX;

const int executeId = XXXX;

var context = new T70Context();

var actionExecuteRepo = context.Repository<ActionExecute>(new { AccountId = accountId, ActionId = actionId });

var item = actionExecuteRepo.Get(executeId);

}

}