Organizations must improve their employees’ performance in order to compete effectively. Evidence shows that flow experiences enhance performance. However, a dynamic approach to this phenomenon is needed. Furthermore, different work patterns (based on task profiles) can have specific environmental requirements (office types). This research aims to analyze the dynamic relationship between office workers’ flow and in‐role and extra‐role performance, considering work pattern–office type fit as a predictor of the initial level of each of these three variables. A total of 83 workers participated in this diary study. Results of the latent growth model showed a positive association between: (1) the initial levels of flow and in‐role and extra‐role performance; and (2) the changes in flow and in‐role and extra‐role performance. Furthermore, work pattern–office type fit directly influenced workers’ flow. In addition, flow mediated between work pattern–office type fit and in‐role performance. Our results show that workspaces that fit employees’ work patterns are more likely to induce flow, which, in turn, will have beneficial consequences for the organization.