コミュニティアチーブメントバーを展開する。

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

この会話は、活動がないためロックされています。新しい投稿を作成してください。

解決済み

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 受け入れられたソリューション

Avatar

正解者
Level 5

Hi,

Thanks for your reply !

I have resolved the issue with below code

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

元の投稿で解決策を見る

2 返信

Avatar

Employee

Avatar

正解者
Level 5

Hi,

Thanks for your reply !

I have resolved the issue with below code

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