The get_notes API is used to get all the notes for the requested object, either a container, a task, or an artifact. On completion, this API returns the requested notes.
The get_notes API is supported from within a custom function.
On Splunk SOAR 6.2.x 6.3.x, user could meet following error:
phantom.get_notes() fails with "failed to retrieve note Error: That page contains no results" There is a known issue:
PSAAS-19457 phantom.get_notes() fails with "failed to retrieve note Error: That page contains no results" when number of notes is multiple of page size
6.3.1 known-issues-for-splunk-soar-on-premises
And It has been fixed in 6.4.0
6.4.0 fixed-issues-for-splunk-soar-on-premises
The error can be reproduced by adding 10 notes into a container and run a custom function like below:
notes = phantom.get_notes(container=container)
for note in notes:
phantom.debug(note)
{
"success": true,
"message": "successfully retrieved note",
"data": {
"id": 1,
"title": "1",
"content": "1",
"create_time": "2025-09-16T02:44:18.963659Z",
"modified_time": "2025-09-16T02:44:18.968926Z",
"note_type": "general",
"author": 1,
"phase": null,
"container": 1,
"task": null,
"artifact": null,
"note_format": "markdown",
"task_name": null,
"artifact_name": null
}
}
Sep 16, 17:21:52 :
{
"success": true,
"message": "successfully retrieved note",
"data": {
"id": 2,
"title": "2",
"content": "2",
"create_time": "2025-09-16T02:44:28.687664Z",
"modified_time": "2025-09-16T02:44:28.691531Z",
"note_type": "general",
"author": 1,
"phase": null,
"container": 1,
"task": null,
"artifact": null,
"note_format": "markdown",
"task_name": null,
"artifact_name": null
}
}
Sep 16, 17:21:52 :
{
"success": true,
"message": "successfully retrieved note",
"data": {
"id": 3,
"title": "3",
"content": "3",
"create_time": "2025-09-16T02:44:40.485470Z",
"modified_time": "2025-09-16T02:44:40.489992Z",
"note_type": "general",
"author": 1,
"phase": null,
"container": 1,
"task": null,
"artifact": null,
"note_format": "markdown",
"task_name": null,
"artifact_name": null
}
}
Sep 16, 17:21:52 :
{
"success": true,
"message": "successfully retrieved note",
"data": {
"id": 4,
"title": "4",
"content": "4",
"create_time": "2025-09-16T02:44:46.611475Z",
"modified_time": "2025-09-16T02:44:46.615299Z",
"note_type": "general",
"author": 1,
"phase": null,
"container": 1,
"task": null,
"artifact": null,
"note_format": "markdown",
"task_name": null,
"artifact_name": null
}
}
Sep 16, 17:21:52 :
{
"success": true,
"message": "successfully retrieved note",
"data": {
"id": 5,
"title": "5",
"content": "5",
"create_time": "2025-09-16T02:44:52.756818Z",
"modified_time": "2025-09-16T02:44:52.771579Z",
"note_type": "general",
"author": 1,
"phase": null,
"container": 1,
"task": null,
"artifact": null,
"note_format": "markdown",
"task_name": null,
"artifact_name": null
}
}
Sep 16, 17:21:52 :
{
"success": true,
"message": "successfully retrieved note",
"data": {
"id": 6,
"title": "6",
"content": "6",
"create_time": "2025-09-16T02:44:57.951141Z",
"modified_time": "2025-09-16T02:44:57.955162Z",
"note_type": "general",
"author": 1,
"phase": null,
"container": 1,
"task": null,
"artifact": null,
"note_format": "markdown",
"task_name": null,
"artifact_name": null
}
}
Sep 16, 17:21:52 :
{
"success": true,
"message": "successfully retrieved note",
"data": {
"id": 7,
"title": "7",
"content": "7",
"create_time": "2025-09-16T02:45:04.528382Z",
"modified_time": "2025-09-16T02:45:04.532637Z",
"note_type": "general",
"author": 1,
"phase": null,
"container": 1,
"task": null,
"artifact": null,
"note_format": "markdown",
"task_name": null,
"artifact_name": null
}
}
Sep 16, 17:21:52 :
{
"success": true,
"message": "successfully retrieved note",
"data": {
"id": 8,
"title": "8",
"content": "8",
"create_time": "2025-09-16T02:45:11.493832Z",
"modified_time": "2025-09-16T02:45:11.497645Z",
"note_type": "general",
"author": 1,
"phase": null,
"container": 1,
"task": null,
"artifact": null,
"note_format": "markdown",
"task_name": null,
"artifact_name": null
}
}
Sep 16, 17:21:52 :
{
"success": true,
"message": "successfully retrieved note",
"data": {
"id": 9,
"title": "9",
"content": "9",
"create_time": "2025-09-16T02:45:30.341577Z",
"modified_time": "2025-09-16T02:45:30.345313Z",
"note_type": "general",
"author": 1,
"phase": null,
"container": 1,
"task": null,
"artifact": null,
"note_format": "markdown",
"task_name": null,
"artifact_name": null
}
}
Sep 16, 17:21:52 :
{
"success": true,
"message": "successfully retrieved note",
"data": {
"id": 10,
"title": "10",
"content": "10",
"create_time": "2025-09-16T02:45:40.014568Z",
"modified_time": "2025-09-16T02:45:40.018297Z",
"note_type": "general",
"author": 1,
"phase": null,
"container": 1,
"task": null,
"artifact": null,
"note_format": "markdown",
"task_name": null,
"artifact_name": null
}
}
Sep 16, 17:21:52 : failed to retrieve note Error: That page contains no results
Sep 16, 17:21:52 : That page contains no results
Sep 16, 17:21:52 :
{
"success": false,
"message": "That page contains no results",
"data": []
}| Revision | Publish Date | Comments |
|---|---|---|
1.0 |
01-Oct-2026
|
Initial Release |