We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Slack: Use a channel form to add an entry AND post to an API

How Do I?

From EE Slack's avatar
From EE Slack
185 posts
9 months ago
From EE Slack's avatar From EE Slack

I have a channel form set up to add a new channel entry, but I also want that same input data to be transferred via an API POST to a third party app. How do I capture the newly input channel data from the form to use it in the module I’m building to transfer the data out? Is there a specific methodology I should follow? A (long) while back I did something similar by using a form action to trigger a module method to do the transfer and add the data to the channel, but I’m thinking there are probably more elegant and robust ways to do this now. Thanks

Interested in learning more solutions or want to get to know other EE users? Read more about joining the slack here! Join Our Slack!

       
From EE Slack's avatar
From EE Slack
185 posts
9 months ago
From EE Slack's avatar From EE Slack

To capture the newly input channel data and transfer it via an API POST, you should use an extension to hook into the channel_form_submit_entry_end hook. This allows you to grab the data once it has been saved to the entry, ensuring a more reliable integration with your API. By employing this method, you can achieve a more elegant and robust solution. Additionally, if you’re looking for more convenience, consider using the Weebhooks add-on, which can send a POST payload on most of the entry hooks without needing to write everything from scratch.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.