Home > Back-end >  Power Automate Flows missing in Dynamics365?
Power Automate Flows missing in Dynamics365?

Time:06-28

I have a PowerShell script to get information on Power Automate Flows. I learned that some of the flows do not have a WorkflowID (or workflowentityid). The failing ones seem random. They're in different environments, enabled and disabled, and have different creators/owners.

I went to view the CRM table (? I'm new to this IT area, so please pardon any wrong terminology) at https://myenvironment.crm.dynamics.com/api/data/v9.1/workflows and these flows aren't in this table. I am very confused. Any advice?

Troubleshooting Script:

$Flowids = $null
$NOids=$null
$NOids=@()
$flowids = @()
$flowarray = $null
$flowarray = @()
$environment = Get-FlowEnvironment -EnvironmentName Default-d67fa8sd7f-e8f76ds7sa-98ds7f-98af7

        $flows = get-adminflow -EnvironmentName $environment.environmentname 
        Foreach($flow in $flows)
                        {
                           Get-AdminFlow -EnvironmentName $environment.environmentname -FlowName $flow.flowname
                           $Result = New-object PSOBJECT
                           $result | Add-Member -MemberType NoteProperty -name "Name" -value $flow.DisplayName
                           $result | Add-Member -MemberType NoteProperty -name "workflowid" -value $flow.internal.properties.workflowentityid
                           $flowarray  = $result
                           if($flow.internal.properties.workflowentityid -ne $null)
                            {
                                $Flowids  = $flow.internal.properties.workflowentityid
                            }
                         if($flow.internal.properties.workflowentityid -eq $null)
                            {
                                $NOids  = $flow.displayname
                            }
                        }
    

CodePudding user response:

If you have all or most of your cloud flows added in solution or in envorinment, you can go make.powerapps.com and then select your enviornment and then default solution, there you will file clouds flows section and you should be able to find most of your flows.

Another way would be to visit https://emea.flow.microsoft.com/ and then select your environment and there in you could find your flows, provided the user you are logging is either owner or flow is shared with logged in user.

CodePudding user response:

You may need to use the below PS snippet for getting all PA flows. Reference

Get-AdminFlow

Though the Workflow table has the ability to store the Cloud flows, not sure about the parity. It has some known limitations around solution aware flows, where it was started developed in first place. Read more

  • Related