How to retrieve and populate data from external services-AEM 6.4 | Community
Skip to main content
September 12, 2018
Solved

How to retrieve and populate data from external services-AEM 6.4

  • September 12, 2018
  • 5 replies
  • 2407 views

Hi Experts,

we have one drop-down metadata field "Dealer ID". When user will select any value from this drop down then we want to call some external REST service and want to retrieve the some data and populate in to another metadata fields like (dealer name, dealer location etc. ) in same metadata schema.

For example in below screen Dealer Name and location will be populate based on dealer ID via external REST API

Can you please help us and suggest the approach like how it is possible in AEM 6.4.

Thanks

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

Hi Sameer,

You can do it that as well for schema but I have never seen this kind of use case before so it is hard to find example but you can write javascript to make ajax call on selection of one dropdown and update another.

5 replies

arunpatidar
Community Advisor
Community Advisor
September 12, 2018

you need to write JS event on select and populate fields into another dropdown, you can do it with DOM manupulation or they with datasource if works but not sure.

Example

Adobe Experience Manager Help | Dynamically updating Adobe Experience Manager TouchUI Dialog Select Fields

AEM 6.0 Forms Help | Dynamically populating drop-down lists

Arun Patidar
September 12, 2018

Hi Arun

Actually we want to do it on metadata schema editor not on dialog and forms.

Any example or sample for metadata schema?

Thanks

smacdonald2008
Level 10
September 12, 2018

Most third party integration done at component level (displayed in a component that is then visible in a web site) or dialog level. I have never seen an example for metadata schema.

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
September 13, 2018

Hi Sameer,

You can do it that as well for schema but I have never seen this kind of use case before so it is hard to find example but you can write javascript to make ajax call on selection of one dropdown and update another.

Arun Patidar
smacdonald2008
Level 10
September 13, 2018

Arun is correct - this can be done - but this is a very uncommon use case - so you will not find examples in the Adobe docs and articles.