Page 1 of 1

JIWA 7 API Seaching and fetching

PostPosted: Wed Nov 04, 2015 10:34 am
by Drew
Hi all.

My integration tool scope has changed. It is still JIWA to SugarCRM.
but now I also need access to Sale orders..

How can you Search and load from JIWA using the API?
Need to be able to make and save changes.
Example for sales orders and it content would be great.

Environment:
C# .net
Jiwa 7
Microsoft SQL


Thanks
Drew

Re: JIWA 7 API Seaching and fetching  Topic is solved

PostPosted: Thu Nov 05, 2015 3:00 pm
by Mike.Sheen
Sure:
Code: Select all

// Create a new sales order
var salesOrder = JiwaFinancials.Jiwa.JiwaApplication.Manager.Instance.BusinessLogicFactory.CreateBusinessLogic<JiwaFinancials.Jiwa.JiwaSales.SalesOrder.SalesOrder>(null);
salesOrder.CreateNew(JiwaFinancials.Jiwa.JiwaSales.SalesOrder.SalesOrder.NewSalesOrderTypes.e_NewSalesOrder, "1001", false);
salesOrder.Save();

// Read a sales order using the ID
salesOrder.Read(InvoiceID);

// Read a sales order using the Invoice No.
salesOrder.Find(JiwaApplication.IJiwaNavigable.ReadModes.Actual, "SO_Main.InvoiceNo", "123456", "");



Above examples adapted from here.

Re: JIWA 7 API Seaching and fetching

PostPosted: Fri Nov 06, 2015 11:44 am
by Drew
Thank you Again Mike.

Sweet a page that has documentation 8-)
I swear I was floating around that page trying to find a find or search method... some how miss this.

Cheers
Drew