AEMaaCS - Context aware configurations for specific run modes | Community
Skip to main content
Level 9
May 22, 2024

AEMaaCS - Context aware configurations for specific run modes

  • May 22, 2024
  • 4 replies
  • 1644 views

I am trying to add a cloud configuration such that it is specific to run mode 

Followed the doc  and section to set up context aware config per runmode

https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/forms/integrate/use-form-data-model/create-form-data-models

The config is picked up by instance in felix console and is stored under config.author

But this is not syncing to the configuration that i assume should have been reflected at?

I am trying to use a form model with data source and data for data source is below

 

// Configuration created by Apache Sling JCR Installer
{
"enabled":true,
"description":"Test a Connectivity",
"overrides":[
"cloudconfigs/fdm/test-connectivity/resource=\"hello123\""
]
}

 

I expect that refreshing the node under the config /conf/<conf-name>/settings/cloudconfigs/fdm/test-connectivity/jcr:content the property "resource" should have updated to 123?

 

Kindly let me know if i am missing something

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

4 replies

Level 9
May 22, 2024

Anyone who knows this? @joerghoh  FYI

aanchal-sikka
Community Advisor
Community Advisor
May 23, 2024

@nitrohazedev 

 

The OSGi override would not rewrite the CA config value in /conf nodes. The /conf nodes will have the value what is authored from CA config pages.

 

The OSGi override value will take priority when the config is fetched via other Services (like Services, Sling Models etc).

Aanchal Sikka
Level 9
May 23, 2024

Thanks @aanchal-sikka  is there a way to validate that it indeed does refresh by any chance ?

aanchal-sikka
Community Advisor
Community Advisor
May 23, 2024

Apologies @nitrohazedev  I haven't use Form Data Model. I have shared details based on my experience with PDF viewer.

 

Could you possibly validate this in the Data Sources ui?

 

 

 

 

 

Aanchal Sikka
joerghoh
Adobe Employee
Adobe Employee
May 23, 2024

IIRC /conf does not know about runmodes. 

Level 9
May 23, 2024

So @joerghoh  and @aanchal-sikka 

I first validate it with the env and his he to be step 1 due to the reply url 

 

the next step is to export and put the json after setting it with values under run mode specific configs . 

this when on refresh of data sources picks run mode specific while the original connection is not synced with changes under cloud config ? 

wonder if there are easy ways to test it is picking up from config and not the configuration based of which the config author config was created ?

Level 9
May 27, 2024

Thanks both @joerghoh @aanchal-sikka 

observed that with CA config for recaptcha didn work as the one for dynamics connectivity (tested dynamics per doc but updated a value at config to validate that refresh picks values set via run mode)

 

raised a ticket with adobe for recaptcha and ca config overall 

kautuk_sahni
Community Manager
Community Manager
June 4, 2024

@nitrohazedev Did you find the suggestions from users helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

Kautuk Sahni
Level 9
June 5, 2024

Definitely helpful , waiting to get confirmation from adobe on the issue raised to close the loop on this 

thanks