Supplementary Financial Information - Schedule of Trade Receivables Sold and Cash Received (Details) - USD ($) $ in Millions |
3 Months Ended | 9 Months Ended | ||
|---|---|---|---|---|
Jul. 31, 2026 |
Jul. 31, 2025 |
Jul. 31, 2026 |
Jul. 31, 2025 |
|
| Trade Receivables Sold and Cash Received [Roll Forward] | ||||
| Balance at beginning of period | $ 289 | $ 217 | $ 117 | $ 284 |
| Trade receivables sold | 1,729 | 3,085 | 7,153 | 9,259 |
| Cash receipts | (2,009) | (3,184) | (7,264) | (9,431) |
| Foreign currency and other | (5) | 2 | (2) | 8 |
| Balance at end of period | $ 4 | $ 120 | $ 4 | $ 120 |