Solved
To create last ten published article news component
How to create a component that populates the last ten published article news components in AEM pages.
How to create a component that populates the last ten published article news components in AEM pages.
@divanshjohndigital If you want to run it at regular intervals you can use sling schedulers and run a cron job. You may also try using event handlers.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.