give me the code in nodejs for an azure function that receives a webook notification…
- User
give me the code in nodejs for an azure function that receives a webook notification from Sharepoint where a new file is created there, receives metadata about the new file and then copies that new file into an Azure blob container, applying a retention policy based on the file metadata
- Assistant
- User
what metadata will I receive from sharepoint?
- Assistant
When a new file is created in SharePoint and a Webhook notification is triggered, the payload of the notification will contain metadata about the file. The metadata that you can receive from SharePoint includes:
siteUrl: The URL of the SharePoint site where the file was created.webUrl: The URL of the SharePoint web where the file was created.listId: The unique identifier of the SharePoint list where the file was created.listTitle: The title of the SharePoint list where the file was created.listUrl: The URL of the SharePoint list where the file was created.itemId: The unique identifier of the SharePoint list item that represents the file.itemTitle: The title of the SharePoint list item that represents the file.itemUrl: The URL of the SharePoint list item that represents the file.fileUrl: The URL of the file in SharePoint.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.