Power Pages (Part 3)
Neil Haddley โข December 20, 2024
Customer Order Lines
I extended the Power Pages Customer Portal to support Customer Order Lines, allowing customers to add, edit, and delete individual items within their orders.

I named the child permissions entry Customer Order Lines by Customer Order. The Customer Order Lines by Customer Order permission entry allows the logged in user to view any Customer Order Line that is related to a Customer Order they have access to. Account Customer Orders permissions provides the given users to only the rows/records that relate to their organization.
Under the hood: Passing the order id along
The New Customer Order Line page needs to know which order it is adding to. I updated the On Success settings so that the Customer Order's id would be passed, and the form then redirected to the Edit Customer Order page for that order. I did the same kind of redirect for the Edit Customer Order Line page.


















































