cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Kai_Ulrich
Level: Power Up

Microsoft Flow - From Forms to Asana

Hi,

 

I've created a flow to send informations, that I collect with Microsoft Forms to Asana.

Since this week, I always get the message "source not found".

My flow first creats an Asana task. That works fine. But when I want to add comments, I always get the message "404 - Source not found".

 
Input:
Host:
{
"api": {
},
"connection": {
"name": "/providers/Microsoft.PowerApps/apis/shared_asana/connections/shared-asana-120567aa-4ca2-4403-be22-b869985306ec"
}
}
 
Authentification:
{
"scheme": "Key",
"parameter": "*sanitized*",
"type": "Raw"
}
 
Body:
{
"data": {
"text": "Kunde wünscht \n[\"Angebot\"]"
}
}
 
Output
Statuscode:
404
 
Body:
{
"statusCode": 404,
"message": "Resource not found"
}
 
Can someone tell me, what I'm doing wrong?
 
Kind regards
 
Kai
2 REPLIES 2
Community Support Team
Community Support Team

Re: Microsoft Flow - From Forms to Asana

 

Hi @Kai_Ulrich ,

 

Flows fail if a setting in an action of the flow doesn't function as expected. In this case, the error message contains Bad request or Not found, or an error code of 400 or 404 appears.

Please share the details of the Flow configuration so that we can analyze the issue.

 

In addition, this error seems to be because the Asana task has just been created successfully or has not been completely created. If it adds comments directly, it may not be able to get the specified task, so this problem may occur.

Please try adding a Delay action after the Create task and then performing the add comments operation.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Kai_Ulrich
Level: Power Up

Re: Microsoft Flow - From Forms to Asana

Helly Barry,

does the json code help you to find a solution for this issue?

 

{"$schema":"https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"logicAppName":{"type":"String","metadata":{"description":"Name of the logic app."}},"logicAppLocation":{"defaultValue":"[resourceGroup().location]","allowedValues":["eastasia","southeastasia","centralus","eastus","eastus2","westus","northcentralus","southcentralus","northeurope","westeurope","japanwest","japaneast","brazilsouth","australiaeast","australiasoutheast","southindia","centralindia","westindia","canadacentral","canadaeast","westcentralus","westus2","[resourceGroup().location]"],"type":"String","metadata":{"description":"Location of the logic app."}},"microsoftforms_Connection_Name":{"defaultValue":"microsoftforms","type":"String","metadata":{"description":"Name of the connection."}},"asana_Connection_Name":{"defaultValue":"asana","type":"String","metadata":{"description":"Name of the connection."}}},"resources":[{"type":"Microsoft.Logic/workflows","name":"[parameters('logicAppName')]","apiVersion":"2016-06-01","location":"[parameters('logicAppLocation')]","properties":{"state":"Disabled","definition":{"$schema":"https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#","contentVersion":"1.0.0.0","parameters":{"$connections":{"defaultValue":{},"type":"Object"},"$authentication":{"defaultValue":{},"type":"SecureObject"}},"triggers":{"Bei_Übermitteln_einer_neuen_Antwort":{"metadata":{"flowSystemMetadata":{"swaggerOperationId":"CreateFormWebhook"}},"type":"ApiConnectionWebhook","inputs":{"host":{"connection":{"name":"@parameters('$connections')['microsoftforms']['connectionId']"}},"body":{"eventType":"responseAdded","notificationUrl":"@{listCallbackUrl()}","source":"ms-connector"},"path":"/formapi/api/forms/@{encodeURIComponent('ri-g4TqNVk6eSP-04s-iU5xsUitt4aNOof6HQXwd1NZURjNFNEU0UU8xTTEwTDVRQkZaRkNERlBZSS4u')}/webhooks","authentication":"@parameters('$authentication')"}}},"actions":{"Asana_Aufgabe_anlegen":{"foreach":"@triggerBody()?['value']","actions":{"Antwortdetails_abrufen":{"runAfter":{},"metadata":{"flowSystemMetadata":{"swaggerOperationId":"GetFormResponseById"}},"type":"ApiConnection","inputs":{"host":{"connection":{"name":"@parameters('$connections')['microsoftforms']['connectionId']"}},"method":"get","path":"/formapi/api/forms('@{encodeURIComponent('ri-g4TqNVk6eSP-04s-iU5xsUitt4aNOof6HQXwd1NZURjNFNEU0UU8xTTEwTDVRQkZaRkNERlBZSS4u')}')/responses","queries":{"response_id":"@items('Asana_Aufgabe_anlegen')?['resourceData']?['responseId']"},"authentication":"@parameters('$authentication')"}},"Aufgabe_erstellen":{"runAfter":{"Antwortdetails_abrufen":["Succeeded"]},"metadata":{"flowSystemMetadata":{"swaggerOperationId":"CreateTask"}},"type":"ApiConnection","inputs":{"host":{"connection":{"name":"@parameters('$connections')['asana']['connectionId']"}},"method":"post","body":{"data":{"name":"@{body('Antwortdetails_abrufen')?['r0211b7f5d8b442a3b43c9530e1ae0148']} - @{body('Antwortdetails_abrufen')?['r99091ca407e941b6be6e584d2423dd74']}","notes":"Ansprechpartner: @{body('Antwortdetails_abrufen')?['r8c4d8d78409b4b07bfd5b64428373f34']} @{body('Antwortdetails_abrufen')?['r6939062ffca94a40bf6a5f4da8f778fc']}\nRufnummer: @{body('Antwortdetails_abrufen')?['r3c12b0931a06404fae3d5f93c44655cb']}\nE-Mail: @{body('Antwortdetails_abrufen')?['rb9d9fafc005f406db9035c9d602bddb1']}","completed":false,"due_on":"@body('Antwortdetails_abrufen')?['rf89770588b394cfaaff80ec39f1330d1']"}},"path":"/tasks","queries":{"workspace":"547106431276530","projects":"1124776617522105"},"authentication":"@parameters('$authentication')"}},"Kommentar_hinzufügen":{"runAfter":{"Aufgabe_erstellen":["Succeeded"]},"metadata":{"flowSystemMetadata":{"swaggerOperationId":"AddComment"}},"type":"ApiConnection","inputs":{"host":{"connection":{"name":"@parameters('$connections')['asana']['connectionId']"}},"method":"post","body":{"data":{"text":"@body('Antwortdetails_abrufen')?['r7e97bec89b614a6fb00e5a1df0c20e8e']"}},"path":"/tasks/@{encodeURIComponent(body('Aufgabe_erstellen')?['id'])}/stories","authentication":"@parameters('$authentication')"}},"Kommentar_hinzufügen_2":{"runAfter":{"Kommentar_hinzufügen":["Succeeded"]},"metadata":{"flowSystemMetadata":{"swaggerOperationId":"AddComment"}},"type":"ApiConnection","inputs":{"host":{"connection":{"name":"@parameters('$connections')['asana']['connectionId']"}},"method":"post","body":{"data":{"text":"@body('Antwortdetails_abrufen')?['re04f47cb6d26401e8b338414b0a5ce94']"}},"path":"/tasks/@{encodeURIComponent(body('Kommentar_hinzufügen')?['data']?['target']?['id'])}/stories","authentication":"@parameters('$authentication')"}}},"runAfter":{},"type":"Foreach"}},"outputs":{},"description":"Microsoft Flow der die Erfassung der Daten für eine Kundenanfrage aus Microsoft Forms in eine Asana Aufgabe anlegt und gleichzeitig einen SharePoint Listeneintrag erzeugt.\nAußerdem erfolgt eine Benachrichtigung an einen oder mehrere E-Mail Empfänger und eine Teams Benachrichtigung."},"parameters":{"$connections":{"value":{"microsoftforms":{"id":"[concat('/subscriptions/', subscription().subscriptionId, '/providers/Microsoft.Web/locations/', parameters('logicAppLocation'), '/managedApis/', 'microsoftforms')]","connectionId":"[resourceId('Microsoft.Web/connections', parameters('microsoftforms_Connection_Name'))]","connectionName":"[parameters('microsoftforms_Connection_Name')]"},"asana":{"id":"[concat('/subscriptions/', subscription().subscriptionId, '/providers/Microsoft.Web/locations/', parameters('logicAppLocation'), '/managedApis/', 'asana')]","connectionId":"[resourceId('Microsoft.Web/connections', parameters('asana_Connection_Name'))]","connectionName":"[parameters('asana_Connection_Name')]"}}}},"runtimeConfiguration":{"lifetime":{"unit":"Day","count":30},"collections":{"maximumItemCount":5000},"performanceProfile":{"throttles":{"mode":"Low"}}}},"dependsOn":["[resourceId('Microsoft.Web/connections', parameters('microsoftforms_Connection_Name'))]","[resourceId('Microsoft.Web/connections', parameters('asana_Connection_Name'))]"]},{"type":"Microsoft.Web/connections","name":"[parameters('microsoftforms_Connection_Name')]","apiVersion":"2016-06-01","location":"[parameters('logicAppLocation')]","properties":{"api":{"id":"[concat('/subscriptions/', subscription().subscriptionId, '/providers/Microsoft.Web/locations/', parameters('logicAppLocation'), '/managedApis/', 'microsoftforms')]"},"displayName":"[parameters('microsoftforms_Connection_Name')]"}},{"type":"Microsoft.Web/connections","name":"[parameters('asana_Connection_Name')]","apiVersion":"2016-06-01","location":"[parameters('logicAppLocation')]","properties":{"api":{"id":"[concat('/subscriptions/', subscription().subscriptionId, '/providers/Microsoft.Web/locations/', parameters('logicAppLocation'), '/managedApis/', 'asana')]"},"displayName":"[parameters('asana_Connection_Name')]"}}]}

Best regards

Kai

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,393)