GL Source Codes

Hello Everyone,

How we can get the data from Sage 50 US (Accountant Edition 2019)) for GL Source Codes, Hierarchy of Account Segments using COM API or .Net API?