SlingModel to get cloudconfig

Avatar

Avatar

sathya_prakasha

Avatar

sathya_prakasha

sathya_prakasha

19-11-2019

Hi Team,

I am using below code to get cloudconfig but configurationmanager is null here..any help ?

cloudConfig = pageProperties.getInherited("cq:cloudserviceconfigs", new String[0]);

    final Configuration configuration = configurationManager.getConfiguration("salesforce-demo", cloudConfig);

    log.info("configuration Cloud"+configuration);

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

sathya_prakasha

Avatar

sathya_prakasha

sathya_prakasha

20-11-2019

Hi,

Thanks for your reply !

I have resolved the issue with below code

ConfigurationManager cfMgr = resourcePage.getContentResource().getResourceResolver().adaptTo(ConfigurationManager.class);

Answers (1)

Answers (1)

Avatar

Avatar

sunjot16

Employee

Avatar

sunjot16

Employee

sunjot16
Employee

19-11-2019