Getting Product Details From Sales Orders

Getting Product Details From Sales Orders

Hi to all,

I try to get products details from a salesorder in custom function.

I try to use getRelatedRecords funciton but it seems doesnt work for products.

Any suggestion?

umut.