I am working on an AirTable.Wanna make a check if email provided on form exists already in sheet.
So something like: FIND(1.email, {email}) (it gives error) but to check each row instead.
Is there any dedicated Formula for this? I couldn't find any :(
Thanks in advance :)
Related
I m trying to collect on a google spreadsheet the dates of the latest activity related to one specific email adresse.
So ideally, I'd like to input a list of email adresses and get on the next column the date of the latest interaction (incoming or outcoming email)
I've been looking for an add-on, but no luck for now.
Anyone can help ?
Many thanks,
Jeremy
Solution
This can easily be achieved using Apps Script. In the Spreadsheet with your email addresses go to Tools->Script Editor and use the code below by running the script (Run->Run function -> myFunction).
This is the piece of code that performs what you were trying to achieve with comments explaining how it works:
function myFunction() {
// Get the value in the cell A1 (which will have the email to check the latest interaction)
var ss = SpreadsheetApp.getActive().getSheetByName('Sheet1').getRange('A1').getValue();
// Search the date of the last message of the search from the email in cell A1 and log it
var latestEmail = GmailApp.search('from:"'+ss+'"')[0].getLastMessageDate();
Logger.log(latestEmail);
// Print the date on the cell to the right
SpreadsheetApp.getActive().getSheetByName('Sheet1').getRange('B1').setValue(latestEmail);
}
I hope this has helped you. Let me know if you need anything else or if you did not understood something. :)
Need help for adding else condition if the input answer is not correct.
Please find the screen shot of If statement I have added.
Sample_Condition
I think you can't put the else because it's just another intent.
So you could just create another node with an IF test corresponding to the ELSE you want to write.
I can't give you the extract but I hope this screenshot will help you.
This is a small test case for a virtual assistant helping you to do simple banking tasks.
I am trying to figure out how to update a ZenDesk custom field when the user or organization has been updated. I've read through the docs, I've tried everything I can think of... All to no avail... Below is the basics of what I want to do:
When any User or Organization has been updated (there has to be some function running as the record updates every time I blur() from a field) I want to check a custom checkbox that is on the same record. Problem is, I can't find anything that triggers when the record is updated (via a ZAT app).
I tried using organization..changed:function(){}. That worked to set the field, sort of. I tried the following code, which checks the box then immediately unchecks the box??? Any thoughts at all on this? Thanks!
events:{
'organization.last_edited_by.changed':'markOrgSend'
},
markOrgSend:function(e){
var organization=this.organization();
organization.customField("update_checkbox",true);
}
Thanks for any insight into how to catch the update/save action for User/Organization records.
What about something like this?
'ticket.assignee.user.id.changed': 'markOrgSend',
'ticket.organization.id.changed': 'markOrgSend'
I have created a call report form with my contact's first name & contact's last name in my scaffold. Although I can clearly see the fields in the form and I can go ahead and edit them, the fields of contact_first_name & contact_last_name are always empty after being saved and returning to my view. I don't know what to do or how to approach this issue.
Any suggestions would be greatly appreciated.
There could be many problems:
contact_first_name or contact_last_name could be misspelled.
in controller they may not be permitted
you might be overriding these fields somewhere
etc etc
Possible solutions or the directions to the solution are:
check database for their existence
check spells
check them in permit list
check the logs
But Code would be helping for both you and answering persons. So please post code with your question.
I have a table called settings, when I would change or enter data into the form it did not change the data in the table. In addition on form an image upload file is not running, There may be the wrong code below.
(Solved by me)
Maybe someone can help me Related to this.
What you are doing here is tottaly in secure and your data can be hacked / manipulate really fast.
Why dont you use a framework like codeignighter there are about 100 easy frameworks that will help you manage database a lot easyer.
Are you sure that you are updating the wrond ID? where id = 1, seems to be not dynamic.
Please post your error http://www.w3schools.com/php/func_mysql_error.asp
I know it is not so related to your question, but you should see these light frameworks:
http://kohanaframework.org/
https://github.com/ElbertF/Swiftlet
http://ellislab.com/codeigniter
You're not checking the return status of of your query, so if it's not working you wouldn't know. Do this:
mysql_query("UPDATE settings SET site='$name',keywords='$keys',descrp='$desc',email='$email',fbpage='$fbpage',twitter='$twitter',gplus='$gplus',disclaimer='$disclaimer',template='$template' WHERE id=1")
or die(mysql_error());
Note: mysql_*() is deprecated: you shouldn't use it. Use mysqli_*() or PDO instead.
Also: You are susceptible to an SQL Injection attack. You should escape your input variables with mysql_real_escape_string() (or the equivalent if you switch to mysqli), or consider moving to prepared statements.