Expiration Date Notification to Email via Survey123

3474
20
Jump to solution
02-12-2020 06:41 AM
JeffDavis7
Occasional Contributor

Hello,

I've created a form using Survey123 Connect that contains electric meter information.  Within the form, I have added "date" field which allows me to select some future date.  This future date lets me know when I need to change the battery in our meters.  I use Integromat for all my notifications using the Survey123 module coupled with the Send Email module.

What can I use to integrate with Survey123 and Integromat to send me an email notification when this future date has been reached?

Thank you.

Jeff

0 Kudos
20 Replies
JeffDavis7
Occasional Contributor

Eric,

I've added another screen capture.  Is that the workflow you were indicating?

Thanks.

Jeff

0 Kudos
JeffDavis7
Occasional Contributor

Eric,

I've expanded a bit beyond my earlier screen capture.  Please see "Battery Inventory New Part2" screen capture.  I am not quite sure what to apply for the "Spreadsheet" and "Sheet" sections for the Add a Row dialog box.  Can you possibly offer some suggestions? 

Thanks

Jeff

0 Kudos
EricChez
New Contributor III

I suggest creating a Google spreadsheet with the columns you want to log first, and in your Google Sheet module, change the mode to "Spreadsheet and Sheet", select the google spreadsheet and sheet, and then map out each field with the corresponding feature\attributes from survey123 data.  See image:

0 Kudos
JeffDavis7
Occasional Contributor

Eric,

Thank you so much for sticking with me on this.  I've uploaded...yes...yet another screen shot (...Part3).  I am having difficulty...big surprise...with creating a spreadsheet...at least I think so since when I attempt to reference the spreadsheet in Google Sheets Add a Row...it doesn't see it.  I am assuming somewhere in the spreadsheet there is a problem but I can't see it.  Can you?

Thanks.

Jeff

0 Kudos
JeffDavis7
Occasional Contributor

Eric,

I've updated my attachments.  Lots of changes since I started this adventure.  Using Google Drive I was able to create a Google Spreadsheet featuring two headers; one for meter number and another for replacement date.  The attachment entitled "Google Sheets-Add a Row" corresponds to my configuration of that scenario.  I've tested this scenario and it functions very well.  An alert is provided via email and the Google Sheet is populated with the corresponding meter number and replacement date from the survey.  That's great!

Can you provide some guidance on the next stage?  Following your suggestion, I have created a second scenario illustrated in my attachment as "Google Sheets-Search Rows".  The final attachment to this posting entitled "Google Sheets-Search Rows Configure" illustrates a screen capture where I am a little stumped.  I have a column in Google Sheets entitled Battery Replace Date (MM/DD/YYYY) and Meter Number.  Ideally I would like someone to receive the reminder corresponding to the date and supply them with which meter requires its battery to be replaced.

Thank you in advance for any assistance you can provide.

Jeff

0 Kudos
EricChez
New Contributor III

Hi Jeff,

You are going to want to setup a filter that looks at your battery replace date and checks to see if its the same as when the scenario runs.  You can right click the connection between the Google Sheet and Email and set the condition formatDate([Battery Replace Date]; MMDDYYYY)  equal to formatDate(now; MMDDYYYY)  so that when the criteria is met, it will execute your Email part.

If you need help on working with functions within Integromat see Date & Time Functions – Integromat Support 

Hope this helps.

JeffDavis7
Occasional Contributor

Hi Eric,

The filter worked perfectly!  Thank you for that suggestion.  I really appreciate your help with my project.

The only other stumbling block I am experiencing is the scheduling function.  Since the Google Sheet is not a Trigger, "Immediately" is not available as a selection.  I'd like to have it just run one time without intervals.  When I choose "Once" Integromat wants you to enter a date.  The dates can obviously change depending on the replacement date of the battery so one absolute date will not be valid.

Jeff

0 Kudos
EricChez
New Contributor III

Jeff,

Glad to hear it worked for you.  For your scheduling, I would set it to run "Every Day" at a set time (probably before the work day starts).  If you only want to run once for testing purposes, just select once and set the date and time for it to run.

By setting it to run every day, it will check to ensure the battery replacement date is set to that date, and email once for that day if the criteria matches.

JeffDavis7
Occasional Contributor

Eric,

Thank you.  The Every Day option is exactly what I need.  Thanks again for all your help.  You were an excellent resource.  Appreciate your time.

Jeff

EricChez
New Contributor III

Glad to have helped.  Take care.

0 Kudos