web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

SalesLine table export

(0) ShareShare
ReportReport
Posted on by 8

Hi,

I am trying to export the salesline table, so I created an entity that is called Order Line.

I am trying to export it to the database, or even to excel but it comes up empty, when I go to the database the data is on the table.

Why am I not able to export data using that entity?

Thanks!!

I have the same question (0)
  • Suggested answer
    nmaenpaa Profile Picture
    101,172 Moderator on at

    I suggest you use the standard Sales order lines V2 entity so you don't need to use any time & money for development.

    Why your entity returns nothing? Most likely it's because of some relations in the child data sources of your entity, that are generated by the wizard.

  • AstridMalanka Profile Picture
    8 on at

    Thanks for your reply, I am very new to this.

    From what I was told, the standard order lines v2 summarize data and also are missing a number of columns.

    Is there a way I can try to understand the issues on the relationships? Can I even fix it?

  • Suggested answer
    nmaenpaa Profile Picture
    101,172 Moderator on at

    I really recommend you checking the standard entity and seeing if it fulfills your business requirement.

    You can fix the relationships. It's just potentially a lot of work that is not needed because there is already an entity that most likely suits your business requirement.

  • AstridMalanka Profile Picture
    8 on at

    The problem is that I am missing a number of columns and the aggregated data

  • nmaenpaa Profile Picture
    101,172 Moderator on at

    Which columns? Just add them to the standard entity with extension.

    What do you mean by aggregate data? Can you give some example?

  • AstridMalanka Profile Picture
    8 on at

    I am not sure, that is what I was told, I will do some digging myself and give you samples in case I find it.

    thanks!!

  • AstridMalanka Profile Picture
    8 on at

    Hi,

    I did some more digging, and here is what I found.

    We need all the orders including the returns, and we need all the fields from the form salesline opened order.

    the issue we are having with sales_order_line_v2 is we are missing a delivery remainder and also in come cases we get an extra line that sums the ordersalesquanty.

    And there is no indication that the 238 is a sum of the other 3. (we are not sure why that happens.

    LINEAMOUNT  ORDEREDSALESQUANTITY

    83457.000000  99.000000

    33720.000000  40.000000

    83457.000000  99.000000

    .000000          238.000000

  • Verified answer
    nmaenpaa Profile Picture
    101,172 Moderator on at

    You can add delivery remainder to the standard entity via extension.

    About the extra line, I would try to understand what it is, instead of developing a new entity to get rid of it. Most likely your new entity would also show similar record.

    First you need to use table browser, as well as look directly in the database, perhaps already that helps you understand what that line is.

    If you think developing a new entity is the best approach, try removing dimension related data sources and see if your entity now returns something. I've seen issues many times with the (financial) dimension data sources generated by the entity wizard.

  • AstridMalanka Profile Picture
    8 on at

    thanks, i will look into all of it, and let you know.

  • AstridMalanka Profile Picture
    8 on at

    Thanks for the replies, it took me a while to understand, but I followed your advice and added extensions. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 330 Most Valuable Professional

#2
CU10121822-0 Profile Picture

CU10121822-0 310

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 242 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans