-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple 'RunAfter' statements for a single action fails to produce valid mermaid code #23
Comments
Hi @SjoerdV, Thanks for sharing this issue with me. Would it be possible to share the complete Log Analytics of PowerAutomate Flow code with me, so I can test this? If so please remove any sensitive content. This can also be shared using a secret gist if you prefer. |
I'll do you one better. The actual piece of code that needs adjustment is here: logicappdocs/src/New-LogicAppDoc.ps1 Lines 192 to 200 in 91c6622
Needs a example: # Example Data
$runAfterObj = @'
{
"runAfter": {
"CalculateDigest": ["Succeeded"],
"Compose_2": ["Succeeded"],
"HTTP": ["Succeeded"]
}
}
'@ | ConvertFrom-Json -AsHashtable
# Modified code
foreach ($Key in $runAfterObj.runAfter.Keys) {
$mermaidCode += " $($Key) --> $($object.ActionName)" + [Environment]::NewLine
} |
Hi @SjoerdV , Thanks for the help and code🙏Let me find some time to update the code in the main branch. |
@SjoerdV I created an new branch with the fix. Can you please download this branch https://github.com/stefanstranger/logicappdocs/tree/issue23 and test if this fixed your issue? git clone --single-branch --branch issue23 https://github.com/stefanstranger/logicappdocs.git Regards, |
@stefanstranger works like a charm! I tested both single and multiple |
Fix for actions with multiple runafter properties. isuse #23
Merged changes into main branch. Closing issue. |
Describe the bug
One action called
Send_email
in a LA has the following codeThis will lead to a mermaid construct as follows
This will fail to render
Add error message
Expected behavior
Multiple
runAfter
statements should be parsed to mermaid as follows:Screenshots
NA
PowerShell version:
Run $PSVersionTable command in PowerShell host
e.g.
LogicAppDocs version
Additional context
NA
The text was updated successfully, but these errors were encountered: