Calls cas server and returns the results(async)
Parameters:
Name | Type | Description |
---|---|---|
store |
store
|
restaf store |
session |
rafObject
|
cas session |
parameters |
object
|
parameters for the action |
returns results from cas
promise
Example
async function test_casAction () {
let {session} = await restaflib.casSetup(store);
// run fetch action
let p =
{ action: 'table.fetch',
data : { table: { caslib: 'public', name: 'cars' } }
};
let casResults = await restaflib.casActionRun(store, session, p);
print.object(casResults.tables.Fetch, 'Fetched Table');
await store.apiCall(session.links('delete'));
}