I have a client who owns a cellphone shop and he wants to gather customer numbers and send weekly/monthly offers to them.
I use MySQL and Node JS, is it possible to send an SMS to multiple numbers through using MySQL database inside twilio node code ?
For example, we have a MySQL DB table called "customers" which has "custid", "custname" and "custnumber" columns, which basically gathers the numbers through his website (a subscription form on his website where customer names and numbers get automatically added to the DB when a customer submits). I want to use this table in twilio node code so that I don't hardtype numbers every time(in the twilio code) I want to send an offer to multiple customers.
Related
I am trying to build a simple ms Access database.
For the sake of convenience, I will translate into sales, orders and such.
Orders
OrderID - PK (auto number)
Client ID - FK to clientID in the Clients table
Clients
ClientID - PK (auto number)
LastName
FirstName
Company
Address
...
I created a form (main form) that allow the user to specify details for a new order, including the client details.
The same form is used to look the details of older orders, to change their step for instance.
When the clerks types in, I don't know if the client is already registered. After everything has been completed, the clerk saves the new order as a new record in the Orders table.
However, Access complains rightly that the clientID FK has not been set: we set the clients name, first name... but not the ID.
My ultimate goal is that, at the saving of the new record, a request that look up into the Clients table to identify a list of possible candidates that match the client first and last name and open a form (contact form) that nicely displays the data from the first record of the request and allow the clerk to navigate between the records, and eventually select one or select create new record with the data from the main form.
I figured that a good place to do this would be in the save button on my form.
I tried to add something in the event code (macro) with something like (not VBA, a pseudo code I've never seen in the other office applications):
if IsNull([main form]![clientID]) then
bip
launch a request to identify the clients in the clients table with the same first and last name
open a form to look into each selected record and select the correct one or if none is identical generate a new one and return the clientID
end if
executeMenuCommand
command saveRecord
The code I tried above didn't even bipped...
I have placed the bip first, and that didn't bipped either.
I receive a message (explicit) that ms Access could not find a record in the client table with the specified clientID.
So I guess my main question is how do I test if there is a clientID associated with the current record?
The next problem is to come back to the main form with the selected clientID.
From what I have seen in the templates provided by Microsoft, it is avoided by defining a single field for customer in their main form. This field is a list populated from the client table, and if you stray away from the list you get a new form for editing a new client.
This is not the behaviour I am looking into. I need to have the posibility to free text enter every field and chose at the saving moment to create or not a new customer.
I hope I am clear enough, please feel free to ask for more details.
edit: thanks to Gustav's hint, I figured that the event was not to be associated with a button click but on the form itself. It helped me uncover other underlying problems... so I guess my problem is not ripe anymore for soliciting external help.
In VBA, use IsNull, and Me if the form is bound to table Orders:
If IsNull(Me![clientID].Value) Then
logged into the website by using the csv .By default particular customers data will be displayed on the page. Different customers would be present in the dropdown where the Admin has the access to select the customer and then the data of that particular customer would be displayed on the screen
Used blazemeter to generate the jmeter script where the default data response is generated all the time instead of the selected customer ID?
Kindly help me know how to pull the latest selected customer data In the jmeter and use that customer data in the consecutive steps?
if you mean you want to dynamically select customer and fetch data respective to the selective customer and want to use that data in the consecutive steps.
For this
First identify from which endpoints your frontend is receviving list of customers and their details.
Once identified you will be having 2 endpoints
1st which provide all the list of customer/ or select is pre-rendred
2nd which provide detail for that customer
Now extract data from 1st endpoint or HTML if pre-renderd save it in varaibe
Now call the 2nd endpoint and extract the required data and save it in variable
now the variable can be used in the consecutive requests
JMeter doesn't know anything about "dropdowns", it acts on HTTP protocol level so by default it will always execute the HTTP Requests which you have recorded.
So when you "select" the customer it generates some specific value for the HTTP Request, you can check the values for the different customers using browser developer tools, put them into a CSV file and replace the recorded hard-coded customer name or ID with the JMeter Variable from the CSV file.
With regards to your question itself, the exact solution will depend on the dropdown implementation, it's hard to suggest anything meaningful without seeing the HTML code for the dropdown.
Here is an example of how you can get the last value for the HTML Select dropdown using XPath Extractor:
Save all the contact us inputs on the database, and create a view to handle all the
records. Tasks include
Search and sort: based on the user entries like the services, or the
email, phone number, names etc.
Delete: records with irrelevant information to be
removed/fake/false records to be removed
Insert:: new records to be inserted when a new entry is submitted
how to perform these tasks
You should create a model and define the fields in question here. You can use the django admin panel to organize the records, it gives sorting and searching by default. You can detect fake records by sending an e-mail to the entered e-mail address. I have no idea how you can do this with a phone number.
I have a table
it has four fields :Phone_number(primary key),City_name,Category_product and sub_Category
I am develoing a php application such based on an sms gateway.
whenver a user sends and sms requesting a product service,
his details will be saved in this table.
Now when a user sends an SMS ,i will store the details in the table,and
wait for the user to send back an sms with further details as per required.
Now what i want to do is:
if a user does not respond in lets say 15 min his details should be deleted from the table automatically.
How should i proceed?
You add a column to your table that stores the time it was sent.
Then you have to choices, you can either run cron jobs to clean out the data, or you clean up the records that are not valid when another user sends a sms, etc. Since you store the time with the data you can easily change the timeout from 15 minutes later on, too.
You have to use some scheduling. PHP dont have any native support for scheduling. What I would suggest is create a descktop applicaion or a service which listens the table for SMS response. If it did not get response then it will delete the correspond record. Your job will be running infinitely.
If this is going to be a table with many records, you should set up a pre-order table and then copy the record over when the order is made. In this way, you can clean up the pre-order table anytime you want if it starts getting slow.
As Ben said, it should have a timestamp for checks.
I'm trying to produce a list of names and addresses of our clients that have paid within a particular timeframe.
Doing a query with just the client table is fine, but when I link in the payment table and access fields from that, the clients address (memo field from the client table) is displayed only as little square symbols. If I leave the payment table joined in on the query but don't print any fields from it, all's well but, as soon as I use data then the address gets fried.
Any idea what's wrong?
This may be of interest: Index corrupts memo-field in joined table
It suggests using the solution offered by http://allenbrowne.com/bug-18.html