def get_dynamic_links():
 df = []
 for query in dynamic_link_queries:
  df += frappe.db.sql(query, as_dict=True)
 return df

def get_dynamic_links ( ) : df = [ ] for query in dynamic_link_queries : df += frappe . db . sql ( query , as_dict = True ) return df
return list of dynamic link fields as docfield .