Skip to main content

Lucid,
I have setup both the Poll and HardRefresh actions for my LucidChart extension package.  

Is there a way to programmatically get the documentId within a Poll or HardRefresh?

Here is the documentation for DataConnectorActionContext:

https://lucid.readme.io/reference/dataconnectoractioncontext-sdk

Thanks,

Dan

Hi ​@quodsimDan , thank you for your question. Someone from our team will reach out shortly help.


Hello Dan!

 

As of right now, it is not possible to get the documentId within a data action. Can I ask why you want the documentId in these instances?


Thanks for your response.  Here is what I am attempting to do.

An action is taken in LucidChart which triggers a web api call which results in files being created in azure blob storage container async.  In my current design, I passed the documentId to that action and the documentid is used as the blob storage container name.

I then wanted to create Poll and DataRefresh actions that check for the existance and contents of files in that blob storage container name.

My question was triggered when I was writing the Poll and DataRefresh method.  Both of those actions are automatic and such, do not take any parameters.  I was hoping I can fetch the documentId so that I could fetch the azure blob container associated with the document.

Based upon your response, I believe I need to alter my design.  The key to the design is to make sure Poll and HardRefresh and able to know what  blob storage container name is. 

Poll and HardRefresh do have access to Collection primary keys.  I could create an DataItem in a Collection where the Primary key is the Container.

What do you recommend?

 


Reply