Platform API

<back to all web services

GetObjectDynamicContent

Get dynamic content for an object.

Requires Authentication
The following routes are available for this service:
GET/api/dynamiccontent/{ObjectId}
GET/api/dynamiccontent/{ObjectId}/mastertasklinks
GetObjectDynamicContent Parameters:
NameParameterData TypeRequiredDescription
ObjectIdpathGuidNoThe object id to retrieve dynamic content for.
DynamicContentDefinitionIdpathGuidNoThe dynamic content definition id for the type of dynamic content to retrieve.
GetDynamicContentResponse Parameters:
NameParameterData TypeRequiredDescription
DynamicContentformObjectDynamicContentModelNoDynamic Content Value.
ResponseStatusformResponseStatusNo
ObjectDynamicContentModel Parameters:
NameParameterData TypeRequiredDescription
ObjectDynamicContentIdqueryGuidNoThe dynamic content Id (PKID)
ObjectIdqueryGuidNoThe object Id this dynamic content record is for.
DynamicContentDefinitionIdqueryGuidNoThe dynamic content definition id that indicates what this dynamic content contains
DefinitionNamequerystringNoName of the dynamic content definition
ContentFormatIdqueryGuidNoThe format Id the dynamic content is saved as
ContentFormatquerystringNoName of the content format
ContentquerystringNoThe content string regardless of the format.
XmlContentquerystringNoXML content if the format is XML
OwnerContactIdqueryGuidNoThe contact id of the licensee who owns this record
RecordStatusquerystringNoRecord Status of the dynamic content

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/dynamiccontent/{ObjectId} HTTP/1.1 
Host: pfapi.pstpf.com.au 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	DynamicContent: 
	{
		DefinitionName: String,
		ContentFormat: String,
		Content: String,
		XmlContent: String,
		RecordStatus: String
	},
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}