define variable policy as IPartitionPolicy no-undo.
define variable detail as IPartitionPolicyDetail no-undo. policy = service:GetPartitionPolicy("orderlineDate") for each order no-lock: detail = policy:Details:FindLastByValue(order.orderDate). if not valid-object(detail) then do: <do some action for missing partition detail> end. end. |