Since the upgrade to frappe cloud, the webservice api we were using has changed and our business is suffering. Support hasn't helped and suggested to use the forums, so I hope someone can help. Everyday we delay this the work piles up as the automation of creating customers and invoices is absolutely essential to our business.
I just need an example of using the webservice to insert a customer. Even a url would do. Its better than the time I have wasted doing the trial and error.
Note: Login api works and I get check whether a customer exists.
i have tried so the following urls: 1.https://company.frappecloud.com/server.py?cmd=frappe.client.insert&doclist=%5B%7B%22doctype%22%3A%22Customer%22%2C%22customer_name%22%3A%22Ajay%20Devgan%22%2C%22customer_type%22%3A%22Individual%22%2C%22customer_group%22%3A%22Default%20Customer%20Group%22%2C%22territory%22%3A%22Default%22%2C%22company%22%3A%22COMPANY%22%7D%5D
We are paying customers of your product and have been for last 3 years. I integrated the web service api into a third party product using the help from support but seems like they are too busy to respond with an example.
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
On 24-Jun-2014, at 5:56 pm, Ankit <ap...@gmail.com> wrote:
Hello,
Since the upgrade to frappe cloud, the webservice api we were using has changed and our business is suffering. Support hasn't helped and suggested to use the forums, so I hope someone can help. Everyday we delay this the work piles up as the automation of creating customers and invoices is absolutely essential to our business.
I just need an example of using the webservice to insert a customer. Even a url would do. Its better than the time I have wasted doing the trial and error.
Note: Login api works and I get check whether a customer exists.
i have tried so the following urls: 1.https://company.frappecloud.com/server.py?cmd=frappe.client.insert&doclist=%5B%7B%22doctype%22%3A%22Customer%22%2C%22customer_name%22%3A%22Ajay%20Devgan%22%2C%22customer_type%22%3A%22Individual%22%2C%22customer_group%22%3A%22Default%20Customer%20Group%22%2C%22territory%22%3A%22Default%22%2C%22company%22%3A%22COMPANY%22%7D%5D
We are paying customers of your product and have been for last 3 years. I integrated the web service api into a third party product using the help from support but seems like they are too busy to respond with an example.
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
Since the upgrade to frappe cloud, the webservice api we were using has changed and our business is suffering. Support hasn't helped and suggested to use the forums, so I hope someone can help. Everyday we delay this the work piles up as the automation of creating customers and invoices is absolutely essential to our business.
I just need an example of using the webservice to insert a customer. Even a url would do. Its better than the time I have wasted doing the trial and error.
Note: Login api works and I get check whether a customer exists.
We are paying customers of your product and have been for last 3 years. I integrated the web service api into a third party product using the help from support but seems like they are too busy to respond with an example.
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
I refered to that example when I started making the changes. Its not working for us.
This is the url that gets generated from JSON. Please spot what is wrong and why it returns the list of customers rather than performing an insert. I am using http post.
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
Insert must be a POST request - are you doing a GET ? and update must be a PUT
The script should work. I just built and used it script for a wiring in Job Applications via Google Forms into our ERP (which is a vanilla application on frappecloud.com)
I refered to that example when I started making the changes. Its not working for us.
This is the url that gets generated from JSON. Please spot what is wrong and why it returns the list of customers rather than performing an insert. I am using http post.
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
I am doing a POST via the curl library in php. This worked before for insert. So that hasn't changed. The error i suggests that it is interpreting that as something else
Traceback (innermost last):
File "/home/frappe/press/benches/2406141220/env/lib/python2.7/site-packages/frappe/app.py", line 49, in application
response = frappe.api.handle()
File "/home/frappe/press/benches/2406141220/env/lib/python2.7/site-packages/frappe/api.py", line 97, in handle
data.update({
AttributeError: 'list' object has no attribute 'update'
On Wednesday, June 25, 2014 12:58:01 AM UTC+12, rushabh wrote:
Insert must be a POST request - are you doing a GET ? and update must be a PUT
The script should work. I just built and used it script for a wiring in Job Applications via Google Forms into our ERP (which is a vanilla application on frappecloud.com)
I refered to that example when I started making the changes. Its not working for us.
This is the url that gets generated from JSON. Please spot what is wrong and why it returns the list of customers rather than performing an insert. I am using http post.
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
On Tue, Jun 24, 2014 at 6:47 PM, Ankit <ap...@gmail.com> wrote:
I am doing a POST via the curl library in php. This worked before for insert. So that hasn't changed.
The error i suggests that it is interpreting that as something else
Traceback (innermost last):
File "/home/frappe/press/benches/2406141220/env/lib/python2.7/site-packages/frappe/app.py", line 49, in application
response = frappe.api.handle()
File "/home/frappe/press/benches/2406141220/env/lib/python2.7/site-packages/frappe/api.py", line 97, in handle
data.update({
AttributeError: 'list' object has no attribute 'update'
the request options look like this $options = array( CURLOPT_RETURNTRANSFER => true, CURLOPT_POST => TRUE, CURLOPT_HEADER => true,
Insert must be a POST request - are you doing a GET ? and update must be a PUT
The script should work. I just built and used it script for a wiring in Job Applications via Google Forms into our ERP (which is a vanilla application on frappecloud.com)
On 24-Jun-2014, at 6:24 pm, Ankit <ap…@gmail.com> wrote:
Hi Rushabh,
I refered to that example when I started making the changes. Its not working for us.
This is the url that gets generated from JSON. Please spot what is wrong and why it returns the list of customers rather than performing an insert. I am using http post.
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
Ok, I have managed to add the customer now. Turns out [] brackets around the JSON string were causing that error.
Thank you for the help, I am working on invoice creation now.
–
Note:
If you are posting an issue,
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
Ok, I have managed to add the customer now. Turns out [] brackets around the JSON string were causing that error.
Thank you for the help, I am working on invoice creation now.
–
Note:
If you are posting an issue,
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.