Each activity can have related history records. These track changes made to the activity and are also used to add comments to an activity
Create a history item
Example request:
Parameter | Description | Examples |
---|---|---|
Action | Defines the the API call | action=activityfollowup |
Parameters described in overview | ||
Activity ID | Identifies the record you wish to create a comment/history record for | activityID=4833 |
Description | specifies the text of the comment/history item | description=hello |
http:///jsonapi/activities.json?&user=user&password=user&version=3.1&activityID=4833&action=comment&description=hello
Example response
{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"responsemessage": "Comment created.",
"warningmessage": "",
"success": true
}
List history items
Example request:
Parameter | Description/example |
---|---|
Action | action=history |
activityID | Identifies the record you wish to create a comment/history record for |
http:///jsonapi/activities.json?&user=user&password=user&version=3.1&action=history&activityID=4833
or
http:///jsonapi/activityhistory.json?&user=user&password=user&version=3.1&activityID=4833
Example response
{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"totalrows": 44,
"totalpages": 1,
"responsemessage": "",
"pagerows": 0,
"pagenumber": 1,
"success": true,
"data": [
{
"activityhistoryUuid": "1EB57F5625EE344B84DAEEF92F93AD10",
"activityhistoryTimeStampModified": 1494410784,
"activityhistoryRecordVersionNumber": 0,
"activityhistoryComment": "",
"activityhistoryCreatedByUserID": 54,
"activityhistoryDateCreated": "2017-05-10",
"activityhistoryHistoryDetail": "hello3",
"activityhistoryNotesHistoryCategory": 0,
"activityhistoryTimeCreated": "11:06:24",
"activityhistoryCreatedByFullNAme": "User",
"activityhistoryCreatedDisplayDescription": "Created by User on 10/05/2017 at 11:06am"
},
{
"activityhistoryUuid": "EDF3AB010E6A92468123C5A686B1B951",
"activityhistoryTimeStampModified": 1475771092,
"activityhistoryRecordVersionNumber": 0,
"activityhistoryComment": "",
"activityhistoryCreatedByUserID": 3,
"activityhistoryDateCreated": "2016-10-06",
"activityhistoryHistoryDetail": "Document 32424 deleted.",
"activityhistoryNotesHistoryCategory": 14,
"activityhistoryTimeCreated": "17:24:52",
"activityhistoryCreatedByFullNAme": "SYN_Jon",
"activityhistoryCreatedDisplayDescription": "Created by SYN_Jon on 06/10/2016 at 5:24pm"
},
]
}