Summit Apps Q&A
kennytlaloc at March 16th, 2017 10:40 — #1
If I have one application that is trying to retrieve a recording from another application.
How do i play back the recording from the recording ID I saved in another apps datastore?
kennytlaloc at March 20th, 2017 16:11 — #2
I have figured out (with some help) that I have to return the app id as part of the recording id. But when I create a recording result based on the external db queury, the recording stays nil.
What am I missing?
aaron at March 21st, 2017 13:47 — #3
If you're trying to access another Summit application's datastore within your tenant, you may specify the target application's application_id as the third parameter in the datastore.get_table() function call.
GET_TABLE(NAME, TYPE[, APPID])
Return an object that references a database table. This is the entry point for working with the database. This method will return a matching table (if one exists) of the given name and type.
APPID is an optional parameter. It defaults to current application, but can be set to retrieve data from other applications. If you are looking up data from a table which belongs to another application, this should be the UUID ID of that application (for example, if the git URL is firstname.lastname@example.org:b8230674-03e2-4a0b-8da0-718fa579ac36, then the appid would be "b8230674-03e2-4a0b-8da0-718fa579ac36")
Additional documentation around this function can be found here: https://code.corvisacloud.com/summit/datastore.html#get_table