我就是这样解决的。
这是我的示例 Azure 函数和逻辑应用配置
[FunctionName("Function1")]
public static IActionResult Run(
[HttpTrigger(AuthorizationLevel.Function, "get", "post", Route = null)] HttpRequest req,
ILogger log)
{
log.LogInformation("C# HTTP trigger function processed a request.");
var csvFile = new StringBuilder();
csvFile.AppendLine(string.Format("{0},{1}", "1", "ABC"));
csvFile.AppendLine(string.Format("{0},{1}", "2", "ABcd"));
csvFile.AppendLine(string.Format("{0},{1}", "3", "ABCde"));
csvFile.AppendLine(string.Format("{0},{1}", "4", "ABCdef"));
csvFile.AppendLine(string.Format("{0},{1}", "5", "ABCdefg"));
csvFile.AppendLine(string.Format("{0},{1}", "6", "ABCdefgh"));
return new OkObjectResult(csvFile.ToString());
}
让我们知道这是否适合您..我们可以对 Outlook 帐户做同样的事情..我只使用了 gmail 帐户。