Tutorial: Application.getParentUuid

Application.getParentUuid

Retrieves UUID of the application that launches this application.

Example

async function getParentUuid() {
    const app = await fin.Application.create({
        uuid: 'app-1',
        name: 'myApp',
        url: 'https://cdn.openfin.co/docs/javascript/stable/tutorial-Application.getParentUuid.html',
        autoShow: true
    });
    await app.run();
    return await app.getParentUuid();
}

getParentUuid().then(parentUuid => console.log(parentUuid)).catch(err => console.log(err));