Important Update: Some Community URL Redirects are Under Maintenance. Learn More. .

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating Comments with API

ThomasHeath3
Contributor II

I'm working with someone on our Data Integration team attempting to create multiple Comments via API on an existing Finding.

We're successful in creating one new Comment but if we attempt to add another Comment it deletes any that are existing on the Finding and replaces it with the new one.

I've attached the Engineer's notes and code...Is anyone able to help determine where we're going wrong?

Thank you.

2 REPLIES 2

Anonymous
Not applicable

@ThomasHeath3,

If you are adding a new comment, you have to include all previous IDs as well, otherwise, API code will replace existing records. I did not check to be honest the API code you attached, but that is usually most common issue people are facing with API calls.

BodieMinster
Archer Employee
Archer Employee

You will face that same challenge with all list- based fields when updating through the API: values lists, cross references, related records, subforms, images, and attachments.