Hi,
last few months Microsoft disabled triggers when the record is created/modified in Dynamics NAV.
However, if you have already created flow with that triggers your flow will not stop to work, but if you want to create a new one you are not able to do that.
In this blog post, I will demonstrate how to modify your existing flow and enable trigger (when record is created) on another data source even when Microsoft block this 2 triggers.
First you need to export to *.zip your existing flow which has “When a record is created” trigger.
When you download *.zip file, extract it to folder and go to definition.json file under Folder\Microsoft.Flow\flows\<ID> and find definition.json and open it with notepad.
Now inside definition.json find encodeURIComponent tag and inside the ‘ ‘ put web sources name from NAV for which you have the connection (for example I have connection to NAV and I want to have flow which will notify me when new item is created).
Optionally you can also change the name under the displayName but it is available to change later when you import this flow. Now just save this json file and zip complete folder to have structure of .zip file like following.
- NewItem = name of the zip, which has Microsoft.Flow folder and manifest.json file
- NewItem.zip\Microsoft.Flow\flows has ID of flow folder and another manifest.json file
- NewItem.zip\Microsoft.Flow\flows\3f046c70-dbac-4efc-84a0-4dce637e45f6 has 3 json files (apisMap, connectionsMap, definition)
Now when you have .zip file go to flow and import that zip.
Click on Import and then on Upload and choose zip file
After upload new screen will open
Click on tool under number 1 and you can choose to update existing flow or to create a new one.
I will create new, enter new resource name (NewItem) and click on Save.
If you have errors like me under “Related resources” you can also change to connect to another custom API but if you only modify data source then you will only need to review import option, and the last step click on Import and the new flow with “When a record is created” trigger for new data source is imported.
I hope this will help you to resolve problems with missing triggers for Dynamics NAV in Flow.
Br,
Renato.
Tags: dynamics nav Flow
Hi Renato.
Excellent post. Thanks for sharing.
Let me ask you a question to check if you can help me.
I had a flow with connection with NAV with action “When a Item is created” but it was done for pitch purposes and after that Flow instance was deleted. So now, I need to prepare a similar one to another prospect and do not have a package to import and modify as you explain in this post.
Do you have a package example that could share with me? I really appreciate if your can help me.
I made a lot of searching but do not find any.
Thanks
Jose
Hi Renato!
Excellent post.
I need your help. I had a flow with a connection with Dynamics NAV with the action “when an Item is created” for a pitch purpose that works fine but that instance was deleted!
Now I need again to show a similar scenario to another prospect and do not have the ability to export the package file because it was deleted.
Can you kindly share your package example to prepare this pitch?
I really appreciate your help.
Thanks,
Jose
Hi Renato!
Excellent post.
I need your help. I had a flow with a connection with Dynamics NAV with the action “when an Item is created” for a pitch purpose that works but that instance was deleted!
Now I need again to show a similar scenario to another prospect and do not have the ability to export the package file because it was deleted.
Can you kindly share your package example to prepare this pitch?
I really appreciate your help.
Thanks,
Jose
Excellent post!