Supplementary Financial Information - Schedule of Trade Receivables Sold and Cash Received (Details) - USD ($) $ in Millions |
3 Months Ended | 6 Months Ended | ||
|---|---|---|---|---|
Apr. 30, 2026 |
Apr. 30, 2025 |
Apr. 30, 2026 |
Apr. 30, 2025 |
|
| Trade Receivables Sold and Cash Received [Roll Forward] | ||||
| Balance at beginning of period | $ 199 | $ 133 | $ 117 | $ 284 |
| Trade receivables sold | 2,610 | 3,125 | 5,424 | 6,174 |
| Cash receipts | (2,518) | (3,056) | (5,255) | (6,247) |
| Foreign currency and other | (2) | 15 | 3 | 6 |
| Balance at end of period | $ 289 | $ 217 | $ 289 | $ 217 |