Platform API

<back to all web services

GetAutomationsForObject

Get automations that are setup for an object

Requires Authentication
The following routes are available for this service:
GET/api/automation/{ObjectId}/list
GetAutomationsForObject Parameters:
NameParameterData TypeRequiredDescription
ObjectIdpathGuidNoObject to retrieve automations for.
GetAutomationsForObjectResponse Parameters:
NameParameterData TypeRequiredDescription
AutomationsformList<AutomationModel>NoList of automations.
ResponseStatusformResponseStatusNo
AutomationModel Parameters:
NameParameterData TypeRequiredDescription
AutomationIdqueryGuidNoThe unique automation Id
AutomationTypeIdqueryGuidNoThe automation type Id
AutomationTypequerystringNoThe automation type
ObjectIdqueryGuidNoThe object this automation applies to
ObjectNamequerystringNoThe object name this automation applies to
RmsTableCtxIdObjectqueryGuidNoThe Id of the object type that this automation applies to.
RmsTableCtxNamequerystringNoThe name of the object type that this automation applies to.
ActionListqueryList<Guid>NoA guid list containing the selected system action Id's that trigger this automation.
ActionsquerystringNoA comma separated string of the selected system action names that trigger this automation.
NamequerystringNoName of the automation.
DescriptionquerystringNoDescription of the automation
OwnerContactIdqueryGuidNoOwner Contact Id
RecordStatusquerystringNoRecord Status of the automation.

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /api/automation/{ObjectId}/list HTTP/1.1 
Host: pfapi.pstpf.com.au 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Automations: 
	[
		{
			AutomationType: String,
			ObjectName: String,
			RmsTableCtxName: String,
			ActionList: 
			[
				00000000-0000-0000-0000-000000000000
			],
			Actions: String,
			Name: String,
			Description: String,
			RecordStatus: String
		}
	],
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}