JIWA 7 API Seaching and fetching  Topic is solved

Discussions relating to Jiwa 7 plugin development, and the Jiwa 7 API.

JIWA 7 API Seaching and fetching

Postby Drew » Wed Nov 04, 2015 10:34 am

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
Drew
Occasional Contributor
Occasional Contributor
 
Posts: 10
Joined: Mon Oct 12, 2015 5:21 pm

Re: JIWA 7 API Seaching and fetching  Topic is solved

Postby Mike.Sheen » Thu Nov 05, 2015 3:00 pm

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.
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2583
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 807

Re: JIWA 7 API Seaching and fetching

Postby Drew » Fri Nov 06, 2015 11:44 am

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
Drew
Occasional Contributor
Occasional Contributor
 
Posts: 10
Joined: Mon Oct 12, 2015 5:21 pm


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 2 guests