From Bright Pattern Documentation
(Created page with "<translate> =addNote= Adds a note to the interaction; it is possible to add multiple notes per interaction. If the ''interactionId'' isn't specified, the method will set the...") |
(Updated via BpDeleteTranslateTags script) |
||
Line 1: | Line 1: | ||
− | + | ||
=addNote= | =addNote= | ||
Line 46: | Line 46: | ||
''null'' | ''null'' | ||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 04:01, 29 May 2024
• 5.19
addNote
Adds a note to the interaction; it is possible to add multiple notes per interaction. If the interactionId isn't specified, the method will set the note for the currently active interaction.
Request
Syntax
addNote(note: string, interactionId?: string): Promise<OperationResult<null>> |
Parameters
Parameter | Parameter Values | Data Type | Optional/Required | Description |
note | String | Required | The note you want to set for the interaction. | |
interactionId | String | Optional | The specific interaction ID for which you will be setting the disposition. |
Example Request
addNoteButton.onclick = () => {
const note = noteInput.value
const itemId = notesInteractionIdInput.value
adApi.addNote(note, itemId)
}
Return Value
null