# Workflow.datasource

### Workflow.<mark style="color:purple;">datasource</mark>(_source_) → [Datasource](../datasource)

Create a reference to a datasource within a workflow.

### **Parameters:**

**`name` :&#x20;**_**str**_ _**|**_ [_**Dataset**_](../dataset) _**|**_ [_**Workflow**_]()\
A [fully qualified reference](../../../../referencing-resources) to the source dataset _or_ workflow associated with this datasource, or a corresponding Dataset or Workflow instance.

### **Returns:**

[**Datasource**](../datasource)

### Examples

```python
workflow = redivis.user("imathews").workflow("example_workflow_climate_analysis")

datasource = workflow.datasource("Demo.ghcn_daily_weather_data:v1_0")

# Update to a new version
datasource.update(source_dataset="Demo.ghcn_daily_weather_data:v2_0")
```
