Kev_B
12 months agoAdvisor
Send data to third-party API when posting/updating post
Hi,
I'm exploring automating the Ideas front-end of our community with the different system our product teams use on the back-end.
The first issue I'm attempting to solve - creating an API call when a new idea is posted, or an idea is updated on the community. I think this should flow something like follows:
- Get the ID when a message is posted/updated (assume I need a POST request)
- This triggers an endpoint to pull out the message data via GET request and pass relevant information to the third-party API
- Third-party API receives relevant data and their information is updated
I have two sticking points I'm trying to answer currently:
- What's the best way to trigger something from the post page? Is an additional click event on the 'Submit' button acceptable practice?
- How do I then get the ID so I can use it in a GET request to get relevant data? (Alternatively - is it better to just grab that data - subject, message body, etc, from the post page?)
Appreciate any input or suggestions. I'm quite new to POST requests, I think I understand the basics, but I can't find anything in developer docs that breaks down the steps I'm trying to take.
Thanks,