title: Executing a Dataprep template with Dataflow API holds the timestamp included in the flow recipe
body: <p>I have a cloud function which uses the dataflow API to create a new job from a template I created using DataPrep. The recipe basically cleans up some JSON objects, turn them into CSV format, and add a timestamp column to fetch everything in a BigQuery database. The main idea is to take a snapshot of certain information of our platform.</p>
  
  <p>I managed to run the job from the dataflow API, and the data is correctly inserted in the bigquery table, however in the timestamp field, the value of the timestamp is always the same, and it corresponds to the execution time from the job where I take the template from(DataPrep template). When I run the job from the dataprep interface, this timestamp is correctly inserted, but it is not changed when I execute the job with the same template from the cloud function.</p>
  
  <p>The snippet of code which calls the dataflow API:</p>
  
  <pre><code>dataflow.projects.templates.launch({
     projectId: projectId,
     location: location,
     gcsPath: jobTemplateUrl,
     resource: {
       parameters: {
         inputLocations : `{"location1" :"gs://${file.bucket}/${file.name}"}`,
         outputLocations: `{"location1" : "${location2}"}`,
         customGcsTempLocation: `gs://${destination.bucket}/${destination.tempFolder}`
       },
        environment: {
          tempLocation: `gs://${destination.bucket}/${destination.tempFolder}`,
          zone: "us-central1-f"
       },
       jobName: 'user-global-stats-flow',
  
     }
   }
  </code></pre>
  
  <p>This is the Dataflow execution console snapshot, as it can be seen the latest jobs are the ones executed from the cloud function, the one in the bottom was executed from the Dataprep interface:</p>
  
  <p><a href="https://i.stack.imgur.com/9vttW.png" rel="nofollow noreferrer">Dataflow console snapshot</a></p>
  
  <p>This is the part of the recipe in charge of creating the timestamp:</p>
  
  <p><a href="https://i.stack.imgur.com/hG2Sv.png" rel="nofollow noreferrer">Dataprep recipe sample</a></p>
  
  <p>Finally this is what is inserted in the BigQuery table, where the first insertion with the same timestamp (row 4) corresponds to the job executed from Dataprep, and the rest are the executions from the cloud function with the Dataflow API:</p>
  
  <p><a href="https://i.stack.imgur.com/Y9XR3.png" rel="nofollow noreferrer">Big Query Insertions</a></p>
  
  <p>So the question is whether there is a way I can make the timestamp to get resolved during the job execution time for the insertion, because now it looks like it is fixed in the template's recipe.</p>
  
  <p>Thanks for your help in advance.</p>