Capture Sparkroom API response in AEM
Hi,
For my project so what we do is we have a form(NOT AEM FORMS) that the visitor fills up and upon submitting that the data gets propagated into sparkroom. It is a synchronous call, once we get the response from the sparkroom we redirect the user to a Inquiry submitted page and we don't store the data anywhere in AEM.
My requirement is : I want to store all these data in AEM that is getting into sparkroom when the user clicks on submit along with sparkroom response codes for future references. It should have all the data (whatever fields are there in the form) stored in someplace in AEM where we can based on requirement go and look up what all data were sent on X date and what was the response from Sparkroom upon submitting the same.
As for my setup, I've 2 dispatchers : 2 publishers.
Can someone please advise me or help me with the detailed steps/ideas/relevant code so that I can implement the same in AEM?