If you take him to a chunk of grass/earth where you know other dogs have pottied, you may have better success with getting him to go outside.

Take care in walking in the heat! Remember those paws are on hot pavement.