How to append dynamic rows to a table in a private note from backend code?

Hi Folks,

I am having reqirement to add table rows dynamically in an private note when each create event triggers.can any one help in this.

Thanks in advance.


Hi @Tipuranjali

Essentially the note displayed on the UI is an HTML object contained within a <div> tag. Perhaps this might be of interest to you: Updating a Note using FD API. Basically, GET the note then, PUT the note. If the GET fails, do a POST note to create a new one.

Now how you append the HTML table itself requires some DOM manipulation for which you can use any method that you see fit. Maybe this library would help cheeriojs.

Hope this helps.