Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered

Reply
Anonymous
Not applicable

Trigger Execute Fabric Item Notebook

Hi,

 

Is it possible to use the Reflex trigger to trigger a notebook that gets the values from the "Additional information" field?
If yes how would I write the Notebook to use the data sent from the trigger?
Are there any examples of this?

I want to do some manipulation before I use the notebook to trigger an HTTP request if the solution mentioned above does not work are there any ways to trigger an HTTP with the values from the "Additional information" field?

9 REPLIES 9
ramankr48
Helper II
Helper II

Logging and tracking of alaram events for post-analysis and system improvements

I'm working with Microsoft Fabric's Data Activator to monitor real-time device temperatures. My goal is to implement a solution that does the following whenever a temperature exceeds a predefined threshold:

  1. Trigger an Alert:
    Send an email notification to the relevant stakeholder when the threshold is crossed.

  2. Log Alarm Data:
    Write the event into two separate Lakehouse tables:

    • alarm_event_log: stores the actual telemetry data that caused the alarm.

    • alarm_metadata: stores metadata about the alarm (timestamp, severity etc.).

  3. Execute Logging via Notebook:
    Use the "Action" section of the Data Activator rule to trigger a Fabric notebook that logs this data into the Lakehouse. (in action i am using fabric item which is notebook)

What I need help with:

  • How can I retrieve the data from Data Activator in the triggered notebook?
    Specifically, how do we access the relevant data (e.g., device ID, temperature reading, time of alert) that triggered the rule, and then pass or retrieve it within the notebook to log it properly?

  • so like is there any way to retrieve that particular record from activator which caused the alert, if yes then how to implement it, I am planning to write the pyspark script for it, but little confuse about the logic
  • What are the best practices or recommended methods for passing parameters from Data Activator to a Fabric notebook?

  • Has anyone implemented a similar pattern?
    Any sample implementation or guidance on structuring this kind of workflow for reliability and scalability would be very helpful.

Thanks in advance for your support!

Fabamik
Frequent Visitor

Same for me on params.get it is showing object not found

rparavia
Frequent Visitor

Hello all, I was about to create a post about the problem but this one captures what I am looking for. Please, the example in the current documentation [1] shows that it is possible to provide context to Notebooks, but I don't see this option available for me yet. I created the "Package Delivery Sample" in My Workspace this past hour to check if it was working, but the Context option is missing.

rparavia_0-1738027407370.png

 


Am I missing something? Is it a configuration that we should turn on? Thanks in advance.

[1] https://learn.microsoft.com/en-us/fabric/real-time-intelligence/data-activator/activator-trigger-fab...

jantse
Microsoft Employee
Microsoft Employee

Hi @Anonymous, @PhilBrown , @rabbisht , and @Anonymous ,

 

Thanks for sharing this question. Activator currently does not support passing parameters to Fabric items like pipelines and notebooks. We have this feature in our roadmap for the coming months, so stay tuned! 

 

Best,

Janet

rabbisht
Microsoft Employee
Microsoft Employee

Is this question from the future? 😅

rabbisht_0-1730848497807.png

 

<<My bad, it is in different format: mm/dd/yyyy>>

 

😃   Sorry for somewhat reactivating this one, but the solution doesn't appear to actually work for me.  Doesn't seem to be such a thing as a params dictionary when the notebook is called from a Reflex trigger

It looks like Fabric introduced some changes, relex was there before and working pretty well. Now there is activator but not refreshing with respect to Semantic Model. I am also looking out for a solution. 🤕

Anonymous
Not applicable

Hi @Anonymous ,

 

Yes, you can trigger a Fabric notebook using a Reflex trigger. When conditions are met, the corresponding notebook is executed.
To achieve this, create a Reflex trigger that monitors your desired condition. In the "Act" card for the trigger, select "Fabric item" and choose the notebook you want to execute.

vtangjiemsft_0-1720752422256.pngvtangjiemsft_1-1720752435774.png

In your notebook, you can access the trigger data using the params object. For example:
```python
# Accessing parameters sent from the trigger
parameter_value = params.get("parameter_name")
```

 Replace `"parameter_name"` with the actual parameter name you want to retrieve.

 

For more details, please refer: Trigger Fabric items - Microsoft Fabric | Microsoft Learn

Develop, execute, and manage notebooks - Microsoft Fabric | Microsoft Learn

 

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

Attempting similar stuff using a Reflex trigger, but attempting code advised above throws NotDefined on the params object. Am I missing something?

PhilBrown_0-1730831011842.png

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June FBC25 Carousel

Fabric Monthly Update - June 2025

Check out the June 2025 Fabric update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Top Kudoed Authors