SOLVED

record contact form entries to Microsoft List

%3CLINGO-SUB%20id%3D%22lingo-sub-1717960%22%20slang%3D%22en-US%22%3Erecord%20contact%20form%20entries%20to%20Microsoft%20List%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1717960%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20a%20wordpress%20site%20running%20Contact%20Form%207%20addin.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDoes%20anyone%20know%20a%20way%20I%20can%20automatically%20record%20submissions%20on%20this%20form%20directly%20to%20Microsoft%20List%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1717960%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Econtact%20form%207%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Lists%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Ewordpress%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1718088%22%20slang%3D%22en-US%22%3ERe%3A%20record%20contact%20form%20entries%20to%20Microsoft%20List%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1718088%22%20slang%3D%22en-US%22%3EUse%20Power%20Automate%2FLogic%20apps.%3CBR%20%2F%3E%3CBR%20%2F%3ESend%20the%20email%20from%20the%20contact%20form%2C%20poll%20the%20email%20address%20in%20the%20aforementioned%20technology%2C%20parse%20the%20contents%20of%20the%20email%20and%20map%20it%20to%20the%20relevant%20fields%20and%20create%20an%20item%20in%20the%20list%20of%20your%20choice.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1718184%22%20slang%3D%22en-US%22%3ERe%3A%20record%20contact%20form%20entries%20to%20Microsoft%20List%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1718184%22%20slang%3D%22en-US%22%3EThanks%20for%20reply.%20Do%20you%20know%20if%20there%20is%20a%20way%20to%20avoid%20polling%20the%20email%3F%20I've%20read%20that%20sometimes%20email%20doesn't%20send%2C%20even%20when%20someone%20fills%20out%20form%2C%20and%20so%20it's%20more%20reliable%20to%20hit%20the%20database%20directly%2C%20where%20entry%20is%20recorded.%3C%2FLINGO-BODY%3E
Highlighted
Contributor

I have a wordpress site running Contact Form 7 addin. 

 

Does anyone know a way I can automatically record submissions on this form directly to Microsoft List?

4 Replies
Highlighted
Best Response confirmed by liverlarson (Contributor)
Solution
Use Power Automate/Logic apps.

Send the email from the contact form, poll the email address in the aforementioned technology, parse the contents of the email and map it to the relevant fields and create an item in the list of your choice.
Highlighted
Thanks for reply. Do you know if there is a way to avoid polling the email? I've read that sometimes email doesn't send, even when someone fills out form, and so it's more reliable to hit the database directly, where entry is recorded.
Highlighted

@liverlarson well, that's a completely different approach then and depending on your expertise and ability, could be a lot more complex.

Bottom line, if you're not catching the event via some kind of PHP hook on the back of the contact form then you need to poll the database.  Alternatively, you could apply an approach like that mentioned in this post ... http://www.mooreds.com/wordpress/archives/1497 ... and use DB triggers but it looks shakey and potentially problematic, still worth a shot though I'd say.

Once you have the data though, using the Azure based services (like a Logic App or Azure Function or Power Automate) to create the list item is a sure fire approach.

You can also connect to MySQL from Logic Apps but depending on where your DB is hosted and how accessible it is could depend on how much complexity needs to go into the solution, i.e. you may need a gateway instance to connect.  Honestly, catching the email is the easiest path but I guess, if you don't trust it then that's not going to get you across the line.

Highlighted
Hmm. Ok, hitting up database idea was in order to reduce moving parts - what seemed to me to be more potential points of failure - but I suppose the reliability/complexity balance is to be considered.

"Once I have the data" indeed - the reason I'm trying to do this is to bring contact forms together from multiple sites and do stuff with them - automating from Lists has a lot of opportunity.

Thanks for comments.