To address your specific requirement of capturing changes to the files uploaded without changing the status field (yes/no), you may need to implement custom logic in your application to track and record those changes explicitly. Here's a suggested approach by ChatGPT:
When a user uploads a file, in addition to updating the corresponding document field, create a separate record in a separate collection or a separate document within Cosmos DB. This record should capture the information about the file upload, such as the file name, file upload date, and the corresponding document or resource it belongs to.
Modify your application logic to compare the previous and current versions of the file to determine if there have been any changes. You can compare attributes such as the file name, file size, or even generate a hash of the file content to identify changes. If changes are detected, update a flag or timestamp in the corresponding document indicating that the file has been modified.
Configure your application to send an email notification based on the changes detected. This email can include information about both field changes and file changes, based on the flags or timestamps recorded in the documents.