RELATED PARTY TRANSACTIONS (Details)
3 Months Ended 6 Months Ended
Sep. 06, 2016
USD ($)
shares
Jan. 31, 2017
USD ($)
Jan. 31, 2016
USD ($)
Jan. 31, 2017
USD ($)
director
Jan. 31, 2016
USD ($)
Oct. 31, 2016
USD ($)
Sep. 05, 2016
Jul. 31, 2016
USD ($)
Related Party Transaction [Line Items]                
Purchases from related party   $ 500,000 $ 300,000 $ 700,000 $ 700,000      
Accounts receivable, related parties           $ 0   $ 0
Revenue from related parties   $ 0 $ 0 $ 100,000 $ 200,000      
PernixData Acquisition                
Related Party Transaction [Line Items]                
Business acquisition equity issued (in shares) | shares 1,711,019              
Contingent consideration maximum $ 19,000,000              
Lightspeed Venture Partners | Lightspeed Venture Partners                
Related Party Transaction [Line Items]                
Number of directors affiliated with related party | director       2        
Lightspeed Venture Partners | Lightspeed Venture Partners | Convertible preferred stock                
Related Party Transaction [Line Items]                
Ownership percentage by noncontrolling owners               36.70%
Lightspeed Venture Partners | PernixData Acquisition | Lightspeed Venture Partners                
Related Party Transaction [Line Items]                
Business acquisition equity issued (in shares) | shares 625,478              
Contingent consideration maximum $ 2,700,000              
PernixData | Lightspeed Venture Partners                
Related Party Transaction [Line Items]                
Ownership percentage             26.40%