Activity_log api

Guys, why don’t you make the data field in activity_log api a json instead of a string with quotes scapped?

Current Response:

{
  "data": {
    "boards": [
      {
        "activity_logs": [
          {
            "id": "d55fdedb-9b22-4f5b-be95-8c18cdd494d9",
            "event": "move_pulse_into_group",
            "data": "{\"board_id\":742493580,\"group_id\":\"new_group92054\",\"source_board\":{\"id\":742493580,\"name\":\"Daily Lead Tracker!!\",\"kind\":\"private\"},\"source_group\":{\"id\":\"new_group24198\",\"title\":\"Qualified\",\"color\":\"#66CCFF\",\"is_top_group\":true},\"dest_group\":{\"id\":\"new_group92054\",\"title\":\"Proposal Sent\",\"color\":\"#333333\",\"is_top_group\":false},\"pulse\":{\"id\":1004416766,\"name\":\"cufflinks\"},\"action_record_id\":2756165838,\"is_undo_action\":false,\"is_batch_action\":false}",
            "created_at": "16117778199476648",
            "entity": "pulse"
          }
        ]
      }
    ]
  },
  "account_id": 6226343
}

It could be:

{
	"data": {
		"boards": [
			{
				"activity_logs": [
					{
						"id": "d55fdedb-9b22-4f5b-be95-8c18cdd494d9",
						"event": "move_pulse_into_group",
						"data": {
							"board_id": 742493580,
							"group_id": "new_group92054",
							"source_board": {
								"id": 742493580,
								"name": "Daily Lead Tracker!!",
								"kind": "private"
							},
							"source_group": {
								"id": "new_group24198",
								"title": "Qualified",
								"color": "#66CCFF",
								"is_top_group": true
							},
							"dest_group": {
								"id": "new_group92054",
								"title": "Proposal Sent",
								"color": "#333333",
								"is_top_group": false
							},
							"pulse": {
								"id": 1004416766,
								"name": "cufflinks"
							},
							"action_record_id": 2756165838,
							"is_undo_action": false,
							"is_batch_action": false
						},
						"created_at": "16117778199476648",
						"entity": "pulse"
					}
				]
			}
		]
	},
	"account_id": 6226343
}

Much better huh?
Tks

Can’t you just JSON.parse(data.boards[0].data) ?

Yeah, I can do it but it will require an external script to treat your Json outside the platform that I am using to create KPIs (Klipfolio). They don’t provide us JSON parsers unfortunately, only objects/fields selectors so when I get the data field it will give me a String instead of the possibility of get the pulse/id (the information I need).

Hi @marcelogr,

Thanks for letting us know about your use-case! I would be happy to submit this as feedback for our team’s consideration.

-Helen