How to retrieve file metadata from Azure Blob in Event Grid Notifications or API?

Chirag Mehta 5 Reputation points
2025-01-21T07:39:17.67+00:00

We have an existing AppExchange app integrating Salesforce with Azure Blob Storage and need guidance on retrieving file metadata when working with Azure Event Grid Notifications or APIs.

Scenario

  1. File with metadata uploaded to Azure Blob:
    • Does the metadata (key-value pairs) reflect in the Event Grid notification?
    • If yes, we plan to use an Apex REST parser to process the metadata and create records in Salesforce.
  2. Metadata of an existing file is added/updated:
    • Does this action trigger an Event Grid notification?
    • If yes, does the notification include details about the metadata addition or changes?
    • If no, is there an alternative way to fetch the updated metadata, perhaps by calling an API (from Salesforce) after receiving the event notification?

Our Findings So Far

  • Metadata is not included in the Event Grid notification sent to our Apex REST parser for file uploads.
  • This limits our ability to process metadata directly upon event notification.

What We Need Help With

  • Is there a way to include metadata in Event Grid notifications, either directly or via configuration?
  • If not, what API or method can we use to fetch metadata after receiving the event notification?
  • Any workaround for cases where metadata of an existing file is added or changed?

We are open to calling an API from our Apex REST parser after receiving the event notification if that helps retrieve the metadata.

Thank you in advance for your insights and recommendations!

Azure Event Grid
Azure Event Grid
An Azure event routing service designed for high availability, consistent performance, and dynamic scale.
416 questions
{count} vote

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.