@jothsna gali You may want to try with a complex JSON payload in the request body ( assuming this is a Http trigger). You can then deserialize the json body into the required format ( https://www.vainolo.com/2018/10/22/azure-functions-part-3-handling-http-query-get-and-post-requests/) and read the property values which you can use to build the final query - if you follow this approach one function would be sufficient. Otherwise you can have multiple functions based on your requirement.
Please let me know if this answers your question.
Azure Functions - get records by attribute name
jothsna gali
1
Reputation point
I have created a function app to retrieve the records from Azure SQL DB table(loan table). Function app works fine. I want to now add filters and retrieve the records based on loan record attributes ( loan id, loan amount,...). Should I create a new function for each of the attribute that I need or is there any better approach to do it?
Thanks in advance.
1 answer
Sort by: Most helpful
-
JayaC-MSFT 5,531 Reputation points
2020-08-20T13:14:21.317+00:00