Trying to use idn.getSourceAttributeBySourceName to get a Source ID

You can add custom attributes using VS Code + IDN Extension (like sourceId below)

and use application.getAttributeValue("sourceId") to get the value