To access fundamental data from AFL level you can use new GetFnData function. It has quite simple syntax:
GetFnData("field")
where "field" is any of the following fundamental data field supported. For detailed list please see GetFnData function reference.
The function returns the number (scalar) representing current value of fundamental data item. There is no history of values (no arrays are returned), so it is useful for scanning, explorations (for current situation), market commentary / interpretation, but not for backtesting.