0

I'm looking for one of two things.

  1. A complete reference guide for all SFMC SSJS objects, or
  2. A way to return all contents of an object so I can see what I need to use.

For an example, I've been following this guide to show the status of an automation. It uses the ProgramID, CustomerKey, Status. What I'd also like to do is return the last date the automation was run, or any further information about it.

The problem is, I don't even know if this property exists in the object, or what else it contains that I can search for. Is there a library somewhere out there where I can look up all of the properties for particular SFMC objects, or a way I can print the full object, with all property/value pairs, so I can see what it contains?

1 Answer 1

1

This is not dependant on SSJS, but instead the API objects. To get a full list of available properties/attributes on the API Objects related go here

Screen shot showing the properties:

enter image description here

The Object you may want to investigate using instead of 'Automation' is the 'AutomationInstance' object. This appears to have a property near what you want (StatusLastUpdate).


EDIT
Status should mimic what is shown in the Automation Object, which is below:

Status ScreenShot

3
  • Thanks, managed to be able to pull a list of all automations of a certain status. Now trying a retrieve from AutomationInstance but not sure what to search on. It times out if I try 'Modified Date = Now()' and claims there is no such column as 'AutomationID' any idea how to just pull the latest one or at least get some idea of what sort of values 'Status' holds? Thanks!
    – TCassa
    Jan 17, 2019 at 15:59
  • 1
    @TCassa edited my answer to show different values status should hold Jan 17, 2019 at 17:31
  • Thanks, but I get 'no rows found' for all of those statuses unfortunately.
    – TCassa
    Jan 18, 2019 at 12:04

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .