Men’s cricket was an event at the 1998 CWG at Kuala Lumpur. 16 countries took part, and India failed to get a medal. South Africa won the gold, followed by Australia (silver) and New Zealand (bronze). India did not get beyond the group stage. And these matches were List A, not ODIs
More details can be seen here:
That does not include scorecards and other details. They can be found here:
We should be more concerned about the 2022 CWG, where the cricket is restricted to women’s T-20s. They do have T20I status, though that doesn’t mean much nowadays.
More details (including the match schedules) can be seen here:
India is one of the 8 teams participating. Today India has an ICC ranking of 4 (after Australia, England and New Zealand) so one can think there is some chance of a medal. To get to the semi-final round India will have to finish 1st or 2nd in a pool which also includes Australia, Barbados and Pakistan.