on 2023 Feb 03 2:54 PM
Hi Team,
Good Day...
my scenario is we need to get data from DB to SAP, i am using JDBC adapter to connect the DB directly and able to connect successfully and fetch the data from DB by using get operation from SAP by using query select * from dbo.[Table_Name] .
now my concern is customer wants to fetch the data based on month and year (response has the filed as same mnth_year>202301</mnth_year> )dynamically like below.
can you please help to achive this from cpi end.
Thnks in-advance.
BR,
Chinnu
Request clarification before answering.
Hi Chinnu
You can get at those query parameters using the built-in header called CamelHttpQuery. You need to parse its contents in a script and then construct your database query dynamically.
When constructing the query, be very mindful that you are not opening yourself up to SQL injection. I.e. verify that the format of the parameter is as expected; don't just concatenate strings to form a SQL query.
Regards,
Morten
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
66 | |
12 | |
12 | |
7 | |
7 | |
4 | |
4 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.