XML 94 R64.htm IDEA: XBRL DOCUMENT v3.22.2.2
Leases - Supplemental cash flows (Details) - USD ($)
$ in Millions
12 Months Ended
Jul. 31, 2022
Jul. 31, 2021
Jul. 31, 2020
Leases [Abstract]      
Cash paid for amounts included in the measurement of operating lease liabilities $ 104 $ 76 $ 70
Right-of-use assets obtained in exchange for new operating lease liabilities $ 238 $ 60 346
Right-of-use assets, obtained in exchange for new operating lease liabilities, existing prior to August 1, 2019     319
Right-of-use assets, obtained in exchange for new operating lease liabilities, operating leases not yet commenced     $ 27