Hi,
I'm using Database Lookup Functoidwith ProductID and Brand sources node as below query:
SELECT [ProductID], [ProductName], [Price], [Brand]
FROM [BiztalkSample].[dbo].[Products]
Where ProductID=1 And Brand='Nokia'
When I run this query within SQL Server then get a record result,
In my map have configure the Database lookup functiod as below
1. Use String Concatenate functoid as the first parameter. Input of this string Concatenate functoid contain
ProductID and Brand from the source schema.
2. In the Fourth parameter: Set the value as (CAST(ProductID as nvarchar(3)+ '|' + Brand).
This is my input xml:
<?xml version="1.0"?>
<ns0:PurchaseOrder xmlns:ns0="http://MultilpleINParamInLookupDBFunctoid.Messages.PurchaseOrder">
<ProductID>1</ProductID>
<Brand>Nokia</Brand>
</ns0:PurchaseOrder>
But my output xml are not return value like the result in SQL Server,
this is output xml:
<?xml version="1.0" encoding="UTF-16"?>
<ns0:Invoice xmlns:ns0="http://MultilpleINParamInLookupDBFunctoid.Messages.Invoice">
<ProductName/>
<Price/>
<Brand/>
</ns0:Invoice>
What I work wrong?
Any help is greatly appreciated.
Thanks,