# Workflow$list\_datasources

### Workflow$<mark style="color:purple;">list\_datasources</mark>(*max\_results=NULL*) → list<[Datasource](https://docs.redivis.com/api/client-libraries/redivis-r/reference/datasource)>

Returns a list of datasources within the workflow.

### **Parameters:**

**`max_results` :&#x20;*****int, default NULL***\
If specified, will only return up to max\_results datasources

### **Returns:**&#x20;

**list<**[**Datasource**](https://docs.redivis.com/api/client-libraries/redivis-r/reference/datasource)**>**

### **Examples:**

<pre class="language-r"><code class="lang-r">workflow &#x3C;- redivis$user("imathews")$workflow("example_workflow_climate_analysis")
datasources &#x3C;- workflow$list_datasources()

for (datasource in datasources){
<strong>    print(datasource$properties) # Properties will be populated with the datasource.list resource representation
</strong>}
</code></pre>
