Tuesday, June 18, 2019

SuiteTalk (Web Services) C# Sample (2013.2) – Initalize Record Example – Vendor Bill to Vendor Credit

        public void initBillCredit(){

            NetSuiteService service = new NetSuiteService();

            LoginClass passport = new LoginClass();

            service.passport = passport.login();

 

            InitializeRecord initRec = new InitializeRecord();

            initRec.type = InitializeType.vendorCredit;

 

            InitializeRef initRef = new InitializeRef();

            initRef.typeSpecified = true;

            initRef.type = InitializeRefType.vendorBill;

            initRef.internalId = "12218"; // this is the Invoice Internal ID

            initRec.reference = initRef;

     ReadResponse getInitResp = service.initialize(initRec);

 

        }

No comments:

Post a Comment