I hope this message finds you well. I'm currently working on a project where I need to determine the association between the `WHSWorkLine` and `SalesLine` tables in Dynamics 365 Finance and Operations.
Specifically, I'm trying to find out which `SalesLine` is associated with a given `WHSWorkLine`. Can you please provide insights on:
Question about Relationship Between WHSWorkLine and SalesLine
An obvious problem of your SQL code is that it ignores Partition and DataAreaId field, therefore it may be potentially joining unrelated data from different companies. F&O handles it for you, but it's your responsibility if you bypass F&O and query the DB directly.
Question about Relationship Between WHSWorkLine and SalesLine
Hello,
Thank you both for your valuable input; it has been incredibly helpful.
I've tried the suggested query, and while it provided the expected result in my current scenario, I have concerns about its accuracy in other cases. I want to ensure that the query is robust and won't lead to inaccuracies in different scenarios.
Could you kindly review the query below and advise if it covers a broader range of cases? Additionally, if there are any potential pitfalls or improvements you could suggest, I would greatly appreciate your insights.
Notes: I'm working on works of WHSWorkTransType::Sales and work lines of WHSWorkType::Pick
the query I'm talking about is the first one. the second query is the one suggested by u.
Your expertise is highly valued, and I'm grateful for any further guidance you can provide.
Question about Relationship Between WHSWorkLine and SalesLine
I guess you can use InventTransOrigin table (WHSWorkLine has a relation with it) and InventTransOriginSalesLine table.
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.