The API seems to have a way to get object data, and scene + view data. But how can I get an entire scene and all of its associated views via the API? (or, at the very least, get a list of views in a scene so I can manually do a call for each one to get all the data from the scene)?
looking for this as well. I have a scene with 2 grids and a details. i want to pull the entire scene, not the individual components. I want the whole scene to save and send as a pdf.
I’d really be interested in how you plan to turn the data from the API into a pdf.
I will post tomorrow about how to use the Knack object to get all viewIds in a scene, I’ll need to be at computer to get it right so bear with.
Craig
Hi @Irfan
You can get all the views in a scene with this:
Knack.scenes.getByKey('scene_123').attributes.views
You would then need to loop through them.
Craig