How do i group order lines by name and get the last created record from each group and clone that line?
How do i group order lines by name and get the last created record from each group and clone that line?
Hello,
If you want to achieve your requirement using Plugin c# code then please see my blog for Group by usage in Fetchxml
Yes, its not about the quantity. For example we have a contract for internet that its duration is 12 months. For each month we need to create a new line of the product. That is why we need to find the last created line of each product and based on that to clone that last line for each product. (if the contract is still active of course)
Can you share some screenshots if possible. because as per above explanation is it possible that a user can add same product multiple times(Not talking about the quantity but number of product rows)?
Yes.
I have an order. In that order i have products. Each product has a contract from and to date. For each product I have as many lines as long as the contract is active (for each month) .
Now, i have to group these products by name and find each product's last created line and clone that line.
Hello,
Can you elaborate your requirement more.
Thank you,
Amit Katariya
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,269 Super User 2024 Season 2
Martin Dráb 230,198 Most Valuable Professional
nmaenpaa 101,156