The API Info Class. An instance is available via the global API.v1.info variable.

//== Usage:
const caseid = API.v1.info.getGlobalCaseId();
API.v1.getReference(caseid).then(ref => console.info('Reference for', caseid, 'is', ref));

Methods

  • Returns the caseId this widget is on (differs from globalCaseId when inside a view widget)

    Returns string

    const caseId = API.v1.info.getCaseId();
    
  • Returns the devParentCase for which the current page is requested.

    Returns string

    const devParentCase = API.v1.info.getDevParentCase();
    
  • Get the current platform's dtap

    Returns "" | "meta" | "test" | "accept" | "studio" | "dev" | "demo" | "production"

    const dtap = API.v1.info.getDTAP();
    
  • Returns the caseId for which the current page is requested. NOTE: This will NOT return the 'correct' caseId when inside one or multiple view-widgets, it will always return the caseId in the address bar. When the former functionality is desired, use getCaseId() instead.

    Returns string

    const caseId = API.v1.info.getGlobalCaseId();
    
  • Returns the current locale

    Returns string

    locale in the form: "en-US" or "nl-NL"

    const locale = API.v1.info.getLocale();
    
  • Returns the current PlatformId

    Returns number

    const platformId = API.v1.info.getPlatformId();
    
  • Returns the user's caseId

    Returns string

    const userCase = API.v1.info.getUserCaseId();
    
  • Returns the user's mail address.

    Returns string

    const email = API.v1.info.getUserEmail();
    
  • Returns the user's name.

    Returns string

    const username = API.v1.info.getUsername();