Expand my Community achievements bar.

Adobe Summit 2025: AEM Session Recordings Are Live! Missed a session or want to revisit your favorites? Watch the latest recordings now.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

SlingModel to get cloudconfig

Avatar

Level 5

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);

1 Accepted Solution

Avatar

Correct answer by
Level 5

Hi,

Thanks for your reply !

I have resolved the issue with below code

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

View solution in original post

2 Replies

Avatar

Employee

Avatar

Correct answer by
Level 5

Hi,

Thanks for your reply !

I have resolved the issue with below code

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