Fair Value Measurements (Details) - USD ($) $ in Thousands | Jan. 31, 2023 | Jul. 31, 2022 |
Cash equivalents: | | |
Fair Value | $ 950,060 | $ 692,082 |
Short-term investments: | | |
Short-term investments | 648,332 | 718,129 |
Total cash equivalents and short-term investments | 1,598,392 | 1,410,211 |
Fair Value, Measurements, Recurring | | |
Cash equivalents: | | |
Fair Value | 950,060 | 692,082 |
Short-term investments: | | |
Short-term investments | 648,332 | 718,129 |
Total cash equivalents and short-term investments | 1,598,392 | 1,410,211 |
Fair Value, Measurements, Recurring | Foreign currency contracts | Designated as Hedging Instrument | | |
Designated derivative instruments: | | |
Foreign currency contract assets-current | 7,770 | 178 |
Foreign currency contract assets-noncurrent | 5,368 | 17 |
Foreign currency contracts liabilities-current | 4,084 | 10,921 |
Foreign currency contracts liabilities-noncurrent | 145 | 588 |
Non-designated derivative instruments: | | |
Foreign currency contract assets-current | 7,770 | 178 |
Foreign currency contracts liabilities-current | 4,084 | 10,921 |
Fair Value, Measurements, Recurring | Foreign currency contracts | Not Designated as Hedging Instrument | | |
Designated derivative instruments: | | |
Foreign currency contract assets-current | 617 | 452 |
Foreign currency contracts liabilities-current | 2,309 | 3,427 |
Non-designated derivative instruments: | | |
Foreign currency contract assets-current | 617 | 452 |
Foreign currency contracts liabilities-current | 2,309 | 3,427 |
Fair Value, Measurements, Recurring | Level I | | |
Cash equivalents: | | |
Fair Value | 436,581 | 247,613 |
Short-term investments: | | |
Short-term investments | 0 | 0 |
Total cash equivalents and short-term investments | 436,581 | 247,613 |
Fair Value, Measurements, Recurring | Level I | Foreign currency contracts | Designated as Hedging Instrument | | |
Designated derivative instruments: | | |
Foreign currency contract assets-current | 0 | 0 |
Foreign currency contract assets-noncurrent | 0 | 0 |
Foreign currency contracts liabilities-current | 0 | 0 |
Foreign currency contracts liabilities-noncurrent | 0 | 0 |
Non-designated derivative instruments: | | |
Foreign currency contract assets-current | 0 | 0 |
Foreign currency contracts liabilities-current | 0 | 0 |
Fair Value, Measurements, Recurring | Level I | Foreign currency contracts | Not Designated as Hedging Instrument | | |
Designated derivative instruments: | | |
Foreign currency contract assets-current | 0 | 0 |
Foreign currency contracts liabilities-current | 0 | 0 |
Non-designated derivative instruments: | | |
Foreign currency contract assets-current | 0 | 0 |
Foreign currency contracts liabilities-current | 0 | 0 |
Fair Value, Measurements, Recurring | Level II | | |
Cash equivalents: | | |
Fair Value | 513,479 | 444,469 |
Short-term investments: | | |
Short-term investments | 648,332 | 718,129 |
Total cash equivalents and short-term investments | 1,161,811 | 1,162,598 |
Fair Value, Measurements, Recurring | Level II | Foreign currency contracts | Designated as Hedging Instrument | | |
Designated derivative instruments: | | |
Foreign currency contract assets-current | 7,770 | 178 |
Foreign currency contract assets-noncurrent | 5,368 | 17 |
Foreign currency contracts liabilities-current | 4,084 | 10,921 |
Foreign currency contracts liabilities-noncurrent | 145 | 588 |
Non-designated derivative instruments: | | |
Foreign currency contract assets-current | 7,770 | 178 |
Foreign currency contracts liabilities-current | 4,084 | 10,921 |
Fair Value, Measurements, Recurring | Level II | Foreign currency contracts | Not Designated as Hedging Instrument | | |
Designated derivative instruments: | | |
Foreign currency contract assets-current | 617 | 452 |
Foreign currency contracts liabilities-current | 2,309 | 3,427 |
Non-designated derivative instruments: | | |
Foreign currency contract assets-current | 617 | 452 |
Foreign currency contracts liabilities-current | 2,309 | 3,427 |
Fair Value, Measurements, Recurring | Level III | | |
Cash equivalents: | | |
Fair Value | 0 | 0 |
Short-term investments: | | |
Short-term investments | 0 | 0 |
Total cash equivalents and short-term investments | 0 | 0 |
Fair Value, Measurements, Recurring | Level III | Foreign currency contracts | Designated as Hedging Instrument | | |
Designated derivative instruments: | | |
Foreign currency contract assets-current | 0 | 0 |
Foreign currency contract assets-noncurrent | 0 | 0 |
Foreign currency contracts liabilities-current | 0 | 0 |
Foreign currency contracts liabilities-noncurrent | 0 | 0 |
Non-designated derivative instruments: | | |
Foreign currency contract assets-current | 0 | 0 |
Foreign currency contracts liabilities-current | 0 | 0 |
Fair Value, Measurements, Recurring | Level III | Foreign currency contracts | Not Designated as Hedging Instrument | | |
Designated derivative instruments: | | |
Foreign currency contract assets-current | 0 | 0 |
Foreign currency contracts liabilities-current | 0 | 0 |
Non-designated derivative instruments: | | |
Foreign currency contract assets-current | 0 | 0 |
Foreign currency contracts liabilities-current | 0 | 0 |
U.S. treasury securities | | |
Short-term investments: | | |
Short-term investments | 31,573 | 95,848 |
U.S. treasury securities | Fair Value, Measurements, Recurring | | |
Short-term investments: | | |
Short-term investments | 31,573 | 95,848 |
U.S. treasury securities | Fair Value, Measurements, Recurring | Level I | | |
Short-term investments: | | |
Short-term investments | 0 | 0 |
U.S. treasury securities | Fair Value, Measurements, Recurring | Level II | | |
Short-term investments: | | |
Short-term investments | 31,573 | 95,848 |
U.S. treasury securities | Fair Value, Measurements, Recurring | Level III | | |
Short-term investments: | | |
Short-term investments | 0 | 0 |
U.S. government agency securities | | |
Short-term investments: | | |
Short-term investments | 269,807 | 333,335 |
U.S. government agency securities | Fair Value, Measurements, Recurring | | |
Short-term investments: | | |
Short-term investments | 269,807 | 333,335 |
U.S. government agency securities | Fair Value, Measurements, Recurring | Level I | | |
Short-term investments: | | |
Short-term investments | 0 | 0 |
U.S. government agency securities | Fair Value, Measurements, Recurring | Level II | | |
Short-term investments: | | |
Short-term investments | 269,807 | 333,335 |
U.S. government agency securities | Fair Value, Measurements, Recurring | Level III | | |
Short-term investments: | | |
Short-term investments | 0 | 0 |
Corporate debt securities | | |
Short-term investments: | | |
Short-term investments | 346,952 | 288,946 |
Corporate debt securities | Fair Value, Measurements, Recurring | | |
Short-term investments: | | |
Short-term investments | 346,952 | 288,946 |
Corporate debt securities | Fair Value, Measurements, Recurring | Level I | | |
Short-term investments: | | |
Short-term investments | 0 | 0 |
Corporate debt securities | Fair Value, Measurements, Recurring | Level II | | |
Short-term investments: | | |
Short-term investments | 346,952 | 288,946 |
Corporate debt securities | Fair Value, Measurements, Recurring | Level III | | |
Short-term investments: | | |
Short-term investments | 0 | 0 |
Money market funds | | |
Cash equivalents: | | |
Fair Value | 436,581 | 247,613 |
Money market funds | Fair Value, Measurements, Recurring | | |
Cash equivalents: | | |
Fair Value | 436,581 | 247,613 |
Money market funds | Fair Value, Measurements, Recurring | Level I | | |
Cash equivalents: | | |
Fair Value | 436,581 | 247,613 |
Money market funds | Fair Value, Measurements, Recurring | Level II | | |
Cash equivalents: | | |
Fair Value | 0 | 0 |
Money market funds | Fair Value, Measurements, Recurring | Level III | | |
Cash equivalents: | | |
Fair Value | 0 | 0 |
U.S. treasury securities | | |
Cash equivalents: | | |
Fair Value | 26,931 | 202,708 |
U.S. treasury securities | Fair Value, Measurements, Recurring | | |
Cash equivalents: | | |
Fair Value | 26,931 | 202,708 |
U.S. treasury securities | Fair Value, Measurements, Recurring | Level I | | |
Cash equivalents: | | |
Fair Value | 0 | 0 |
U.S. treasury securities | Fair Value, Measurements, Recurring | Level II | | |
Cash equivalents: | | |
Fair Value | 26,931 | 202,708 |
U.S. treasury securities | Fair Value, Measurements, Recurring | Level III | | |
Cash equivalents: | | |
Fair Value | 0 | 0 |
U.S. government agency securities | | |
Cash equivalents: | | |
Fair Value | 369,245 | 135,489 |
U.S. government agency securities | Fair Value, Measurements, Recurring | | |
Cash equivalents: | | |
Fair Value | 369,245 | 135,489 |
U.S. government agency securities | Fair Value, Measurements, Recurring | Level I | | |
Cash equivalents: | | |
Fair Value | 0 | 0 |
U.S. government agency securities | Fair Value, Measurements, Recurring | Level II | | |
Cash equivalents: | | |
Fair Value | 369,245 | 135,489 |
U.S. government agency securities | Fair Value, Measurements, Recurring | Level III | | |
Cash equivalents: | | |
Fair Value | 0 | 0 |
Corporate debt securities | | |
Cash equivalents: | | |
Fair Value | 117,303 | 106,272 |
Corporate debt securities | Fair Value, Measurements, Recurring | | |
Cash equivalents: | | |
Fair Value | 117,303 | 106,272 |
Corporate debt securities | Fair Value, Measurements, Recurring | Level I | | |
Cash equivalents: | | |
Fair Value | 0 | 0 |
Corporate debt securities | Fair Value, Measurements, Recurring | Level II | | |
Cash equivalents: | | |
Fair Value | 117,303 | 106,272 |
Corporate debt securities | Fair Value, Measurements, Recurring | Level III | | |
Cash equivalents: | | |
Fair Value | $ 0 | $ 0 |