Select to view content in your preferred language

Execute agol notebook from Experience Builder Button Widget

1001
2
09-27-2023 03:00 PM
Status: Open
TravisJPeterson
Emerging Contributor

I would like to execute an AGOL Notebook from the Experience Builder Button Widget. I have AGOL Notebooks that I use to trace content in my portal. For example, one script can take a Web Map ID and find a Web Application that is using that Web Map. It returns the results in a print statement and as csv in my account.

I would like to be able to call the script and execute it from a button in experience builder.

2 Comments
JoeEastman1

The closest thing I've found to being able to do this is by creating a dashboard, embedding my experience builder app in the dashboard and also embedding the notebook in the dashboard. Then I can run my notebook directly in the dashboard. It's not the prettiest, but it's the only solution I've come up with thus far. I just allow elements to be resized in the dashboard and hide the notebook when the dashboard first launches. When I need to execute it I just expand the window and run. 🙂

DougC
by

Seconded.

There are some basic actions for data in Experience Builder but would be good to add one that can fire off a backend process i.e. Notebook.

So you would choose Add Action->Run Notebook->Select Notebook and choose an attribute from your datasource to use as a parameter OR if no param chosen, it just runs the Notebook.