Fetching information from the database along with the variable during the work can be done using both the “code” and “design” methods, which are given below with related explanations.

bpmAppService.BPMSServices.SqlService.ExecuteSqlQuery (input1);
input1: String Query (string qry = string.Format (“select [field name] FROM [table name] where id == ‘0’”, domainObject.id))
Output: List (Query result)