call/run another notebook

282
4
09-09-2021 12:46 AM
StuartMoore
Occasional Contributor III

i'm very new to notebooks but i have two questions that i couldn't find an answer for in the community

is it possible to call/run a notebook from a webhook, ie survey completed in Survey123 initiates the notebook?

and my second question is it possible to call/run another Notebook at the end of Notebook (ie running Notebook A but run Notebook B to create some data etc)

thanks

Stu

0 Kudos
4 Replies
StuartMoore
Occasional Contributor III

thanks for the reply i'll have a play

shikhar_deep
New Contributor III

Hi @StuartMoore,

Thank you for your interest in ArcGIS Notebooks. The current released version of ArcGIS Enterprise (10.9) do not support executing a notebook from webhooks. We are actively actively working on adding support for this in near future.

 
Although, you can call a notebook from another notebook using execute_notebook operation available in ArcGIS API for Python:

https://developers.arcgis.com/python/api-reference/arcgis.gis.nb.html?highlight=execute_notebook#arc...).

Also, please ensure the version of ArcGIS API for Python used in notebook has support for this operation.
 
Thanks & Regards
Shikhar Deep

 

0 Kudos
StuartMoore
Occasional Contributor III

thanks @shikhar_deep i've had a play but can't seem to get it to work, it wont even find the notebookmanager maybe its not implimented in Notebooks in ArcGIS Online

StuartMoore_0-1631776584316.png

 

0 Kudos
shikhar_deep
New Contributor III

Hi @StuartMoore  if you may try the following.

shikhar_deep_1-1637681702951.png

 

 

Thanks

Shikhar Deep

0 Kudos