var itemExists = false;
var pubishedSectionList = getActiveSectionUUIDList(globalStoryID=arguments.globalStoryID);
// Was this key (section UUID) part of the last published Story Sections list?
if ( ListFindNoCase(pubishedSectionList, arguments.sectionID) )
itemExists = true;
return itemExists;
var retList = "";
var dataStruct = application.npsStory.storyService.getActiveStoryData(globalStoryID=arguments.globalStoryID);
// if a data is returned ... get the section UUID list
//if ( StructKeyExists(dataStruct,"values") AND StructKeyExists(dataStruct.values,"Sections") )
// retList = dataStruct.values.sections;
if ( StructKeyExists(dataStruct,"values") AND StructKeyExists(dataStruct.values, application.npsStory.appConfig.story.fieldNames.section) )
retList = dataStruct.values[application.npsStory.appConfig.story.fieldNames.section];
return retList;