GetFullName
function GetFullName(): string
Description
Returns the full name of the currently opened file.
Returns
string
Try It
var oWorksheet = Api.GetActiveSheet();
var sName = Api.GetFullName();
oWorksheet.GetRange("B1").SetValue("File name: " + sName);