function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Neena BainsNeena Bains 

Custom button on Order Products that copies Edit All

I'm trying to create a button on Order Products that copies the built-in functionality of the Edit All button. I need to do this so I can display OrderProducts as a related list on another object. Can anyone tell me what's wrong with this URL?

/_ui/busop/orderitem/MultiOrderItemEdit?ordId= {!OrderItem.OrderId}&retURL=%2F{!OrderItem.IdFieldOfALookupId__c}

Neena BainsNeena Bains
Actually you can't reference the Order Id. Had to create a formula field that populates the Order ID as text. So --

/_ui/busop/orderitem/MultiOrderItemEdit?ordId={!OrderItem.OrderIdText__c}&retURL=%2F{!OrderItem.Pulse_ProjectId__c}