Creating a GetAllCustomers activity function 

Perform the following steps:

  1. Create a new function named GetAllCustomers using the Durable Functions Activity template, replace the default code with the following code, and then click on the Save button to save the changes:
        #r "Microsoft.Azure.WebJobs.Extensions.DurableTask"
public static int[] Run(string name)
{
int[] customers = new int[]{1,2,3,4,5};
return customers;
}
  1. In the Advanced editor of the Integrate tab, replace the default code with the following code:
        {
"bindings": [
{
"name": "name",
"type": "activityTrigger",
"direction": "in"
}
]
}