Get the context of your current window or view environment that was previously set using Platform.setContext. The context will be saved in any platform snapshots. Returns a promise that resolves to the context.
Example
const platform = fin.Platform.getCurrentSync();
const myContext = await platform.getContext();
console.log(myContext);