Notes in PRPC are strored seperately as links to the work table. So the Notes data is always a seperate top level page. When you are copying this Workpage into another page what is the expectation to do (I mean do you want to save the work object as a new one).
If so you will have to use the Notes page and re link all the notes to the new work object. There are API's available like pxAttachNote which will take the note text and the workobject to which the note need to be added and it will do that.
Yes Pondu, I need to copy notes to new workobject. I will look at the API. I am dotnet/java developer pretty new to this pega world and its syntax....can understand what is there but tough to write....:)
Thankyou for the info.
So I need to basically loop through User Pages->allNotes.pxResults and then in the loop use pxAttachNote to attach to new workobject, right?
We do have a CopyWork activity, but it doesn't copy the notes over. Yes looping through the notes and calling pxAttachNote as you suggest will work. If there are thousands of notes, you could come up with a more performant solution.