Skip to main content
Answer

API call trying to add linked activity on a customer. Please help

  • August 13, 2025
  • 2 replies
  • 51 views

Forum|alt.badge.img

Hi there,

I am currently trying to resolve a API call to enter a activity on a customer. I have tried referring a few articles online. One of them was as below.

https://www.postman.com/flight-geoscientist-57391170/celigo-pakcage/request/wgijcfd/create-an-activity-that-is-linked-to-a-customer

My postman call is as below:

https://{URL}/entity/Default/24.200.001/Activity/

{

    "Summary": {"value": "Automated Test 2"},

    "Type": {"value": "N"},

    "RelatedEntityNoteID": {"value": "a474872e-1378-f011-ac49-0a202afc9b19"},

    "RelatedEntityType": {"value": "PX.Objects.AR.Customer"},

    "ActivityDetails":{"value": "Automated Test 2"},

    "RefNoteID":{"value": "CUST000001, BA Industries"}

}

My error is: 406 not acceptable.

 

My I please get some tips in this regards.

Best answer by amitkaryekar

Worked this out below is the solution using PUT and below payload

 

API payload:

 

 {

                "Date": {

            "value": "2025-08-13T07:00:27+00:00"

        },

                     "NoteID": {

            "value": "a474872e-1378-f011-ac49-0a202afc9b19"

        },

        "Owner": {

            "value": "9239"

        },

        "RelatedEntityDescription": {

            "value": "CUST000001, BA Industries"

        },

        "RelatedEntityNoteID": {

            "value": "f19657f3-b24e-ea11-aa5c-bc0187cfc04c"

        },

        "RelatedEntityType": {

            "value": "PX.Objects.AR.Customer"

        },

        "Status": {

            "value": "Completed"

        },

        "Summary": {

            "value": "TEST ID"

        }

                 

    }

 

Response:

 

{

    "id": "a474872e-1378-f011-ac49-0a202afc9b19",

    "rowNumber": 1,

    "note": null,

    "Body": {},

    "CreatedByID": {

        "value": "amit.karyekar"

    },

    "CreatedDateTime": {

        "value": "2025-08-13T07:00:39.330598+00:00"

    },

    "Date": {

        "value": "2025-08-13T07:00:27+00:00"

    },

    "Internal": {

        "value": false

    },

    "LastModifiedDateTime": {

        "value": "2025-08-13T07:59:50.531777+00:00"

    },

    "NoteID": {

        "value": "a474872e-1378-f011-ac49-0a202afc9b19"

    },

    "Owner": {

        "value": "9239"

    },

    "RelatedEntityDescription": {

        "value": "CUST000001, BA Industries"

    },

    "RelatedEntityNoteID": {

        "value": "f19657f3-b24e-ea11-aa5c-bc0187cfc04c"

    },

    "RelatedEntityType": {

        "value": "PX.Objects.AR.Customer"

    },

    "Status": {

        "value": "Completed"

    },

    "Summary": {

        "value": "TEST ID"

    },

    "Task": {},

    "Type": {

        "value": "N"

    },

    "Workgroup": {},

    "custom": {},

    "_links": {

        "self": "/entity/Default/24.200.001/Activity/a474872e-1378-f011-ac49-0a202afc9b19",

        "files:put": "/entity/Default/24.200.001/files/PX.Objects.EP.CRActivityMaint/Activities/a474872e-1378-f011-ac49-0a202afc9b19/{filename}"

    }

}

2 replies

Forum|alt.badge.img
  • Author
  • Varsity I
  • Answer
  • August 21, 2025

Worked this out below is the solution using PUT and below payload

 

API payload:

 

 {

                "Date": {

            "value": "2025-08-13T07:00:27+00:00"

        },

                     "NoteID": {

            "value": "a474872e-1378-f011-ac49-0a202afc9b19"

        },

        "Owner": {

            "value": "9239"

        },

        "RelatedEntityDescription": {

            "value": "CUST000001, BA Industries"

        },

        "RelatedEntityNoteID": {

            "value": "f19657f3-b24e-ea11-aa5c-bc0187cfc04c"

        },

        "RelatedEntityType": {

            "value": "PX.Objects.AR.Customer"

        },

        "Status": {

            "value": "Completed"

        },

        "Summary": {

            "value": "TEST ID"

        }

                 

    }

 

Response:

 

{

    "id": "a474872e-1378-f011-ac49-0a202afc9b19",

    "rowNumber": 1,

    "note": null,

    "Body": {},

    "CreatedByID": {

        "value": "amit.karyekar"

    },

    "CreatedDateTime": {

        "value": "2025-08-13T07:00:39.330598+00:00"

    },

    "Date": {

        "value": "2025-08-13T07:00:27+00:00"

    },

    "Internal": {

        "value": false

    },

    "LastModifiedDateTime": {

        "value": "2025-08-13T07:59:50.531777+00:00"

    },

    "NoteID": {

        "value": "a474872e-1378-f011-ac49-0a202afc9b19"

    },

    "Owner": {

        "value": "9239"

    },

    "RelatedEntityDescription": {

        "value": "CUST000001, BA Industries"

    },

    "RelatedEntityNoteID": {

        "value": "f19657f3-b24e-ea11-aa5c-bc0187cfc04c"

    },

    "RelatedEntityType": {

        "value": "PX.Objects.AR.Customer"

    },

    "Status": {

        "value": "Completed"

    },

    "Summary": {

        "value": "TEST ID"

    },

    "Task": {},

    "Type": {

        "value": "N"

    },

    "Workgroup": {},

    "custom": {},

    "_links": {

        "self": "/entity/Default/24.200.001/Activity/a474872e-1378-f011-ac49-0a202afc9b19",

        "files:put": "/entity/Default/24.200.001/files/PX.Objects.EP.CRActivityMaint/Activities/a474872e-1378-f011-ac49-0a202afc9b19/{filename}"

    }

}


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • August 21, 2025

Thank you for sharing your solution with the community ​@amitkaryekar!