I am playing about with trying to get some of the Timeline functionality, specifically Notes and Attachments, to work from a Canvas App.
In my test App I have a gallery connected to a Dataverse table and can retrieve all associated notes for that table to the Items of another gallery: galMyAppraisal.Selected.Notes
I can Patch changes to the Description (Body) of the note from an RTF control to a selected item in this gallery:
Patch(
Notes,
LookUp(
Notes,
Note = noteGUID
),
{
Description: rteNoteBody.HtmlText,
'Is Document': false,
Title: galAppraisalNotes.Selected.Title
}
);
NoteGUID was set in the gallery OnSelect: Set(noteGUID,ThisItem.Note)
All works fine, HOWEVER, when trying to add a NEW Note to a selected record I can't associate the Note to the record, my Notes table has the new entry, I can see it in the Dataverse Notes table, but I can't locate the property equivalent to the Note(GUID) used when I patched a change.
Patch(
Notes,
Defaults(Notes),
{
Description: "",
'Is Document': false,
Title: "New note ..."
}
);