I just want to make sure I am on right path, so need your guidance.
I am working on a project where I need to integrate NetSuite with a third party application. The third party application exposes their API's in the form of -
http:// www........asmx url
So I have build code as a 'User Event' script in NetSuite to invoke this API; issue the SOAP request; use nlapiRequestURL() to get that request in XML; format the data; and then use code such as:
customerRecord.setFieldValue('comments', response.getBody());
to add the value in NS database? Is this the correct way?
I have a scenario where I need to search for all the new Sales Orders, Customers, etc. created in the third party application to be integrated into NetSuite within 5-10 min. How can I achieve this? There is no trigger in the third party application but only those APIs.
Do I need to write a scheduled script to replicate what I am doing in user event script?
Can someone please suggest the correct method?