You can call *certain* eConnect stored procedures directly, this is certainly
one of the ones you can call. Use this as a template:
DECLARE @Result INT, @ErrorState INT;
DECLARE @ErrString varchar(255);
EXEC @Result = taCreateVendorAddress
'ACETRAVE0001' -- Vendor ID
, 'WAREHOUSE' -- Address Code
, '' -- UPS Zone
, 'OVERNIGHT' -- Shipping Method
, 'USAUSSTCITY+6*' -- Tax Schedule ID
, 'Oscar Wilde' -- Vendor Contact
, '1101 Sactuary Dr' -- Adress 1
, 'Suite 200' -- Address 2
, '' -- Address 3
, 'USA' -- Country
, 'Chicago' -- City
, 'IL' -- State
, '43221' -- Zip Code
, '29455501010000' -- phone 1
, '' -- phone 2
, '' -- phone 3
, '' -- fax
, 0 -- update if exists
, 0 -- Requester transaction
, '' -- vCCode
, '' -- User defined 1
, '' -- User defined 2
, '' -- User defined 3
, '' -- User defined 4
, '' -- User defined 5
, @ErrorState OUTPUT
, @ErrString OUTPUT
SELECT @ErrorState, @ErrString
Needless to say, the vendor must already exist for this stored proc to work.
Best regards,
--
MG.-
Mariano Gomez, MIS, MCP, PMP
Maximum Global Business, LLC
http://www.maximumglobalbusiness.com
The Dynamics GP Blogster at http://dynamicsgpblogster.blogspot.com
Post by VishalHi, trying to call procedure [taCreateVendorAddress] directy but keep getting
error 902. Can someone provide an example of how to use the econnect procs.
I have the econnect web service installed but I would like to call the proc
directly in this instance. Thanks in advance.