The 'ListCallbackUrl' is not supported for 'Servicebus send message triggers action "'.
This is my logic apps workflow: { "definition": { "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", "actions": { "Send_message": { "type": "ApiConnection", "inputs": { "host": { "connection": { "referenceName": "servicebus" } }, "method": "post", "body": { "ContentData": "@{base64('success')}" }, "path": "/@{encodeURIComponent(encodeURIComponent('test'))}/messages", "queries": { "systemProperties": "None" } }, "runAfter": {} }, "Response": { "type": "Response", "kind": "http", "inputs": { "statusCode": 200, "body": "success" }, "runAfter": { "Send_message": [ "Succeeded" ] } } }, "triggers": { "manual": { "type": "Request", "kind": "Http", "inputs": {} } }, "contentVersion": "1.0.0.0", "outputs": {} }, "kind": "Stateful" }
This is my test case code:
[TestMethod]
public void Stateful()
{
var workflowName = "Stateful1";
var workflowDefinition = File.ReadAllText($"{workflowName}\workflow.json");
var hostDefinition = File.ReadAllText("host.json");
var localSettingsDefinition = File.ReadAllText("local.settings.json");
using (new WorkflowTestHost(new WorkflowTestInput[] { new WorkflowTestInput(workflowName, workflowDefinition) }, host: hostDefinition, localSettings: localSettingsDefinition))
using (var client = new HttpClient())
{
// Get workflow callback URL.
**var response = client.PostAsync(TestEnvironment.GetTriggerCallbackRequestUri(flowName: workflowName, triggerName: "manual"), null).Result;**
Assert.AreEqual(HttpStatusCode.OK, response.StatusCode);
// Run the workflow.
response = client.PostAsync(response.Content.ReadAsAsync