feat: added notifications workflow
This commit is contained in:
@@ -45,3 +45,16 @@ export async function uploadAttachments(
|
||||
await item.attachmentFiles.add(file.name, content);
|
||||
}
|
||||
}
|
||||
|
||||
/** Удалить вложение элемента по имени файла (для правки заявки). */
|
||||
export async function deleteAttachment(
|
||||
listTitle: string,
|
||||
itemId: number,
|
||||
fileName: string
|
||||
): Promise<void> {
|
||||
await getSP()
|
||||
.web.lists.getByTitle(listTitle)
|
||||
.items.getById(itemId)
|
||||
.attachmentFiles.getByName(fileName)
|
||||
.delete();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user