How to get a jackon json response and send it to an external webhook in AEMaaCS? | Community
Skip to main content
Mario248
Level 7
January 18, 2023

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

  • January 18, 2023
  • 1 reply
  • 704 views
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)? 
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Kiran_Vedantam
Community Advisor
Community Advisor
January 18, 2023

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?lang=en

 

Hope this helps!


Thanks,
Kiran Vedantam.

Mario248
Mario248Author
Level 7
January 19, 2023

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)?