This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Orderby quering the database with script

Hi all,

 

I need to get the reasonHead from Decisiontype Unsubscribe on a Request but if on that request are started more Unsubscribe I need to get the last one made.

Basically I need the orderby on Connection.getSingleValue or Connection.getSingleRow.

 

I tried too with a IColDbObject e SQLFormatter but can't find any documentation if this is possible

The workaround is to loop on the result of IColDbObject  and take the row with the newer date. But seems impossible that you can't do order by on a query.

 

I search for some documentation on script classes but can't find 

 

 

Thanks Mik