Quantcast
Channel: Baanboard.com
Viewing all articles
Browse latest Browse all 4216

Get field value from xml

$
0
0
Hi
From one ION dataflow I want to write to a database.
from the Database connection point I call to a store procedure

EXEC update_opportunity @xmlData='[Data]';
message sync.quote

In the store procedure I try to get in variables the quote and opportunity value
What am I doing wrong?
I don´t get any value

Thanks
/**
[dbo].[update_opportunity] (@xmlData as XML)

SET NOCOUNT ON;
DECLARE @XmlDocumentHandle int;
declare @qono as varchar(9);
declare @qtno as varchar(9);

EXEC sp_xml_preparedocument @XmlDocumentHandle OUTPUT,
@XmlData;

set @qono =(SELECT ID
FROM OPENXML (@XmlDocumentHandle,
'Quote/QuoteHeader/DocumentID/ID',2)
)

set @qtno = (SELECT ID
FROM OPENXML (@XmlDocumentHandle,
'Quote/QuoteHeader/OpportunityReference/DocumentID/ID',2)
)

Viewing all articles
Browse latest Browse all 4216

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>