[Vtigercrm-developers] web service adding line items

Prasad prasad at vtiger.com
Sun Jan 19 08:49:15 GMT 2014


Is HTTP POST being used? Please submit the script used instead.

Regards,
Prasad

*Connect with us on: *Twitter <http://twitter.com/vtigercrm> *I*
Facebook<http://www.facebook.com/pages/vtiger/226866697333578?sk=wall>
 *I* Blog <https://blogs.vtiger.com/>* I*
Wiki<http://wiki.vtiger.com/index.php/Main_Page>
 *I *Forums  <https://discussions.vtiger.com>*I*
Website<https://www.vtiger.com/>


On Fri, Jan 17, 2014 at 6:41 PM, Pankaj Pal <pankaj83k at gmail.com> wrote:

> Use WS api create http://vtiger_url/webservice.php?operation=create
>
>
>     &sessionName=[session id]
>     &element=[object]
>     &elementType=[object type]
>
> *and format *$lineItem =
> array('productid'=>'6x91','listprice'=>'2000','quantity'=>'1');
>
>         $data = array (
>                'subject' => 'Mango Invoice',
>                'sostatus' => 'Created',
>                'invoicestatus' => 'Created',
>                'account_id'=> '3x40',
>                'assigned_user_id' => '19x1',
>                'bill_street'=>'Commercial Street',
>                'ship_street'=>'Bangalore',
>                'currency_id'=>'21x1',
>                'hdnTaxType' => 'group',
>                'conversion_rate' => 1,
>                'productid'=>'6x91',
>                'hdnDiscountAmount'=>'2',
>                'LineItems'=>array($lineItem),
>        );
>
> but not able to create sales order.
>
> Any one can help in this regards,
>
>
> * Pankaj *
>
>
>  On Thu, Jan 16, 2014 at 6:26 AM, Prasad <prasad at vtiger.com> wrote:
>
>>  My team-mate pushed the link I was looking for ...here we go:
>> https://wiki.vtiger.com/index.php/ServerAPI_reference_manual#Inventory_Record_Create
>>
>> The same format would be reflected when the client (REST) api in invoked.
>>
>> Regards,
>> Prasad
>>
>> *Connect with us on: *Twitter <http://twitter.com/vtigercrm> *I* Facebook<http://www.facebook.com/pages/vtiger/226866697333578?sk=wall>
>>  *I* Blog <https://blogs.vtiger.com/>* I* Wiki<http://wiki.vtiger.com/index.php/Main_Page>
>>  *I *Forums  <https://discussions.vtiger.com>*I* Website<https://www.vtiger.com/>
>>
>>
>> On Wed, Jan 15, 2014 at 7:33 PM, Stefan Warnat <ich at stefanwarnat.de>wrote:
>>
>>> Hy,
>>>
>>> I'm not fully sure, but I think the Creation/Change isn't possible in GA
>>> release.
>>> I only see a function "retrieve_inventory" in webservice operations
>>> database table.
>>>
>>> This means again I will search for a way to do this manually.
>>> But I will wait until a official developer say something to this topic.
>>>
>>> Stefan
>>>
>>>
>>> On Wed, Jan 15, 2014 at 9:09 AM, Pankaj Pal <pankaj83k at gmail.com> wrote:
>>>
>>>> Dear All,
>>>>
>>>> Please describe the new enhancement in  Vtiger 6 webservices line
>>>> Item.How to use to retrieve and create sales order with line items.
>>>>
>>>> As per source code :
>>>> http://trac.vtiger.com/cgi-bin/trac.cgi/browser#vtigercrm/branches/6.0.0/include/Webservices/LineItem
>>>>
>>>>
>>>> Thanks in advance.
>>>>
>>>>
>>>> Regards,
>>>> Pankaj Kumar
>>>>
>>>> _______________________________________________
>>>> http://www.vtiger.com/
>>>>
>>>
>>>
>>> _______________________________________________
>>> http://www.vtiger.com/
>>>
>>
>>
>> _______________________________________________
>> http://www.vtiger.com/
>>
>
>
> _______________________________________________
> http://www.vtiger.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20140119/1e021397/attachment.html>


More information about the vtigercrm-developers mailing list