Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.

How to get a jackon json response and send it to an external webhook in AEMaaCS?

Avatar

Level 9
I am using Jackson exporter to export aem page content into json. for example below aem url will give me 
 
http:4502/content/instaffers/jcr:content/root/container.model.json
 
It is working as expected. Now I want to send this json response to an external webhook as part of my custom workflow. To achieve this, I am planning to do below things, 
 
Step 1 - Get JSON response in custom workflow process step 
Step 2 - Send the generated json response to external webhook 
 
For step 1 - Do we have any OOTB java api available to get the json response and send it to an external webhook? or Do we have to use the Http client api to AEM to get a json response ? or is there any other option to get a json response ?
Also can I send the json file directly to an external webhook instead of creating physical json and give it to an external webhook(because in AEMaCS there would be challenges in creating physical files)? 
2 Replies

Avatar

Community Advisor

Hi @Mario248 

 

Please verify this link, I think it covers your use-case: https://experienceleague.adobe.com/docs/experience-manager-64/developing/components/pageinfo.html?la...

 

Hope this helps!


Thanks,
Kiran Vedantam.

Avatar

Level 9

Kiran - The doc you mentioned explains how to generate json. I already have solution to generate json using jackson exporter. I want know, 

Do we have any OOTB java api available to get the json response and send it to an external webhook? or Do we have to use the Http client api to AEM to get a json response ? or is there any other option to get a json response ?
Also can I send the json file directly to an external webhook instead of creating physical json and give it to an external webhook(because in AEMaCS there would be challenges in creating physical files)?