Adding notes (via API) as a reply to an existing note | Community
Skip to main content
May 31, 2024
Solved

Adding notes (via API) as a reply to an existing note

  • May 31, 2024
  • 2 replies
  • 1350 views

Hey there,

I'm looking to add a note/reply to an existing projects (note/update/comment/reply) using the API.

 

I am able to add a note to an existing project via the endpoint "/attask/api/v17.0/note" using a POST request.

 

{ "noteObjCode": "PROJ", "objID": <<PROJECT OBJ ID>>>, "noteText": "Test message" }

 

And this successfully comes through with the same outcome as "New comment" in the Workfront online interface.

 

I can't however work out how to add a note, to this note. i.e. The same outcome as "Reply".

 

Published Notes don't appear to have their own ObjIDs, and I've tried various versions of the ID, threadID, topObjID, etc, to no avail.

Any thoughts on how this can be achieved? e.g.

 

Best answer by lgaertner

Hi,

 

to create a reply to a note, you just need to do the same, you already did, to create a note, but additionally pass the parentNoteID.

 

 

Regards

Lars

2 replies

Rafal_Bainie
Community Advisor
Community Advisor
May 31, 2024

Hi Chris,

you need to include threadID in the API call you use to post a note. We do that in our instance and it's definitely doable.

Good luck

Rafal

lgaertner
lgaertnerAccepted solution
Level 9
May 31, 2024

Hi,

 

to create a reply to a note, you just need to do the same, you already did, to create a note, but additionally pass the parentNoteID.

 

 

Regards

Lars

May 31, 2024

This solution works! Thanks Lars! Much appreciated.