HomeGuidesAPI ReferenceChangelogDiscussions
GuidesiMIS ProfessionaliMIS EnterpriseClient SupportLog In
Discussions

Discussions

Ask a Question
Back to All

REST API - Get DocumentID of currently loaded page

We would like to get the document ID of the currently loaded page, so we can get some data from User Defined fields on that page via REST API.

At the top of the page we see these variables ( in the source of the page)

var gDocumentTitle = document.title;
var gPostBackFormObject = null;
var gWindowOnLoad = new Array();
var gPostBackFormProcessSubmit = true;
var gWebRoot = '';
var gWebSiteRoot = 'http://domain.com';
var gPageTheme = 'TEST-iMIS-Theme';
var gAdminWebRoot = gWebRoot + '/Admin';
var gWebsiteKey = '803e1889-2fe4-4d99-80da-511f9b1b1f69';
var gHKey = '2341cd77-d7a9-43e1-ae1f-ca7b5ec0dec7';
var gIsPostBack = false;
var gDefaultConfirmMessage = 'Continue without saving changes?';
var gIsEasyEditEnabled = false;
var gMasterPage = '/templates/masterpages/wst-sac-imis.master';
var gCurrentCultureCode = '';

can the gWebsiteKey or the gHKey allow us to get the DocumentID for that page, for example if we do a REST call passing one of these GUIDs

Is there another way to get the DocumentID of the currently loaded page

Thanks for your help
James

Contact us
Copyright © Advanced Solutions International, All rights reserved.