SELECT PROGRAM_ID, ID, DOCUMENT_ID, LINE_NO, DEL_LINE_NO, DATA_TYPE, STRING_VALFROM USER_DEF_FIELDSWHERE PROGRAM_ID = 'STATIC_DATA'AND ID = 'UDF-0000094'AND DOCUMENT_ID IS NULLAND LINE_NO IS NOT NULLAND DEL_LINE_NO IS NULLAND DATA_TYPE = '10050'ORDER BY LINE_NO ASC
In SBO you would do this where “conn” is the SBO DatabaseConnection object: