Skip to main content
Mohit_KBansal
Adobe Employee
Adobe Employee
Sep 26, 2022 6:39 AM UTC
Solved

InheritedProperty using HTL JavaScript Use API

Can anyone please point me to the correct syntax to get InheritedProperty using HTL JavaScript Use API?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Mohit_KBansal
Mohit_KBansalAccepted solution
Adobe Employee
Sep 26, 2022 6:57 AM UTC

Found the correct syntax below

use strict";
use( function() {
    var data = {};
    data.id = inheritedPageProperties.get("id", String.class) || "";
  
    return data;
});

1 reply

Mohit_KBansal
Adobe Employee
Mohit_KBansalAdobe EmployeeAuthorAccepted solution
Adobe Employee
Sep 26, 2022 6:57 AM UTC

Found the correct syntax below

use strict";
use( function() {
    var data = {};
    data.id = inheritedPageProperties.get("id", String.class) || "";
  
    return data;
});
Translate