In this work we study the problem with the nonlocal integral condition of the first type for the multidimensional heat equation. Applying the connection between nonlocal and inverse problems we investigate the associated inverse problem. The existence and uniqueness of the generalized solution are shown using Galerkin method.