Retrieving fields of email with logic apps / azure function -


i have use case html form somewhere filled user data , email sent email address, , logic app.

what i'd have logic app receive email (which generated based on template) , read values after "name:" , "email" (the fields of form essentially) can pass them along function.

what want simple i've no clue how in logic apps , can't find documentation explains how (if possible) scan through email , retrieve data points.

would possible in azure functions instead maybe? i'm new azure.

this blog has great information on using azure functions logic apps. assuming have logic app set receive emails, add step process emails in azure function app sending email content input. sample input payload nodejs webhook trigger:

{   "email": {     "emailbody": "body×​​",     "text": "hello logic apps"   } } 

note: "bodyx" dynamic content representing email body received in earlier step.

corresponding index.js in function app:

  module.exports = function (context, data) {   var email = data.email;   // can processing on emailbody   context.log('email body', email.emailbody);   context.res = {     body: {       greeting: 'hello !' + email.text     }              };   context.done(); }; 

hope helps!


Comments

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -