Forum Discussion
User data function as target for webhook from ADO
- 9 months ago
Hi Mauro89
Thank you for contacting the Microsoft Fabric Community Forum.In Microsoft Fabric, User-Defined Functions (UDFs) operate in a secure, sandboxed environment and are intended solely for internal data processing. As such, UDFs cannot initiate or receive HTTP requests or webhooks; they only work with internal data types such as str, dict, or FabricLakehouseClient. This approach ensures the security and reliability of in-platform data transformations.
To connect with external systems, it is advisable to use a Fabric Pipeline or Spark Notebook. Pipelines can leverage Web Activities to interact with webhooks and store responses in a Lakehouse or Delta Table, allowing UDFs to process the resulting data. Alternatively, Notebooks can utilize Python’s requests library to retrieve external data and write it into Fabric storage for subsequent UDF processing.
For real-time integrations, Azure Functions or Logic Apps are recommended to manage webhook events and transfer data to OneLake or Blob Storage, where it can be ingested and processed within Fabric by UDFs or Notebooks. This architecture supports a secure, scalable environment and aligns with Microsoft’s best practices for Fabric deployments.
I hope this information is helpful. . If you have any further questions, please let us know. we can assist you further.
Regards,
Microsoft Fabric Community Support Team.
Hi KevinChant,
thanks for this nice hint with Postman. I had a try but also here I got the 403.
Any other ideas? Maybe some tenant or admin setting which I might have missed?
Best regards!
Hi Mauro89
Thank you for contacting the Microsoft Fabric Community Forum.
In Microsoft Fabric, User-Defined Functions (UDFs) operate in a secure, sandboxed environment and are intended solely for internal data processing. As such, UDFs cannot initiate or receive HTTP requests or webhooks; they only work with internal data types such as str, dict, or FabricLakehouseClient. This approach ensures the security and reliability of in-platform data transformations.
To connect with external systems, it is advisable to use a Fabric Pipeline or Spark Notebook. Pipelines can leverage Web Activities to interact with webhooks and store responses in a Lakehouse or Delta Table, allowing UDFs to process the resulting data. Alternatively, Notebooks can utilize Python’s requests library to retrieve external data and write it into Fabric storage for subsequent UDF processing.
For real-time integrations, Azure Functions or Logic Apps are recommended to manage webhook events and transfer data to OneLake or Blob Storage, where it can be ingested and processed within Fabric by UDFs or Notebooks. This architecture supports a secure, scalable environment and aligns with Microsoft’s best practices for Fabric deployments.
I hope this information is helpful. . If you have any further questions, please let us know. we can assist you further.
Regards,
Microsoft Fabric Community Support Team.
- Mauro899 months agoSuper User
Hi v-karpurapud,
thanks for your response and letting me know that currently there is no option in Fabric to receive webhooks.
I also want to note that your proposal with notebooks and especially the webhook activity does NOT work, as the webhook activities is not supposed to receive rather than acting like a webhook for sending events.
So for now the only way is via Azur functions.Thanks and best regards!
- v-karpurapud9 months agoCommunity Support
Hi Mauro89
Thank You for the update.