Power DevBox Docs
  • Power DevBox
  • Getting Started
    • Install Chromium Extensions
    • Access Web App
    • Power Platform Connector
    • Visual Studio Code Extension
  • AutoReview
    • AutoReview - Chromium Extension
    • AutoReview - App
    • AutoReview - Power Platform Connector
      • Using Connector
      • Info (v1 & v2)
      • JSON (v1 & v2)
      • File (v2)
      • Diagam (v2)
      • HTTP
      • File (v1)
    • AutoReview - VS Code Extension
    • API
      • V1
        • Information API (v1)
        • Data API (v1)
        • Files API (v1)
      • V2
        • Information API (v2)
        • Data API (v2)
        • Files API (v2)
        • Diagram API (v2)
    • Menu
    • Files
      • Review
      • Report
      • Diagram
      • Exceptions
      • Solution
      • Compare with Previous
      • CSV Files
    • Configs
      • Complexity
        • Complexity Default Values
        • Complexity Template
      • Naming Convention
        • Naming Convention Default Value
        • Naming Template
      • Ratings
        • Ratings Default Value
        • Ratings Template
      • Scoring
        • Scoring Default Values
        • Scoring Template
    • Data JSON
  • V2 / V3.2.0 Update
  • AppReview
    • AppReview - Chromium Extension
      • Known Bugs/Limitations
      • Report Sections
      • App Settings
      • Components
      • Variables
      • Code Block
      • Solution
      • Connections
      • Data Source
      • Diagram
      • Flags
  • Flow Utilizer
    • Flow Utilizer - Start
    • Install
    • Flow Screen
      • Flow Tags
      • Solution Download
    • Solution Screen
    • Charts
    • Account
      • Account Download
  • Dev Tools
    • Power DevBox Chromium Extensions
      • Exception
      • Share
        • Share Demo Videos
      • Shortcut
      • Utility
        • Classic UI Clipboard
        • New UI Clipboard
        • Utility Demo Videos
Powered by GitBook
On this page
  • How to use - Standard use
  • How to use - Extended Capability
  • Run Log Url
  1. Dev Tools
  2. Power DevBox Chromium Extensions

Exception

Last updated 4 months ago

All containers on the flow will be used to catch error messages using the result() expression.

result('container_name')

A container is an action that contains other actions:

  • Scope

  • Condition

  • Switch

  • Apply to Each

  • Do Until

How to use - Standard use

To create the exception expression click on the Power DevBox Exception

A popup will show when complete, listing all the containers included in the exception message.

The exception expression is then added to your computers clipboard ready to be pasted (Ctrl + V) where required.

As an example, from the above image the below expression is created.

@{xpath(
  xml(
    json(
      concat(
        '{"data": {'
      ,
        '"Main":'
      ,
        result('Main')
      ,
        ','
      ,
        '"Condition_api":'
      ,
        result('Condition_api')
      ,
        ','
      ,
        '}}'
      )
    )
  )
,
  'string(//message[not(contains(.,''The execution of template action'')) and not(contains(.,''skipped:'')) and not(contains(.,''An action failed. No dependent actions succeeded.''))])'
)}

Once pasted in an action is should appear as below.

Additional Information

  • The flow must be saved/published before use

  • Containers with the word 'Exception' in the title are skipped, this is to avoid self referencing errors

  • If the expression is not show, open expression editor, paste in and then remove leading @{ and trailing }

  • Power DevBox Exception is used within the Power Automate maker studio (currently does not support Power Apps maker studio

  • Certain nested containers can cause issues when saving, as Power Automate will not allow it. To rectify either remove the action from the expression, or temporally rename the container to "Exception", re-run Power DevBox Exception, paste in the expression, then change the name back

How to use - Extended Capability

Select actions do not pass error messages to the container (example Dataverse actions). This requires the action to be referenced directly with both actions() and outputs() expression.

actions('action_name')
outputs('action_name')

To add actions directly click the Exception icon shown in the Power Automate tope menu bar.

A popup menu will now appear (this can be dragged to where needed). Double clicking on actions will add them to the popup (clicking on the list will remove them) .

Your clipboard will be updated with the new expression ready to be pasted.

To hide the popup and deactivate the double click functionality click on the top menu Icon again.

As an example, from the above image the below expression is created.

@{xpath(
    xml(
        json(
            concat(
                '{"data": {'
            ,
                '"Main":'
            ,
                result('Main')
            ,
                ','
            ,
                '"Condition_api":'
            ,
                result('Condition_api')
            ,
                ','
            ,
                '"Files":'
            ,
                actions('Files')
            ,
                ','
            ,
                '"Files-O":'
            ,
                outputs('Files')
            ,
                ','
            ,
                '"Compose":'
            ,
                actions('Compose')
            ,
                ','
            ,
                '"Compose-O":'
            ,
                outputs('Compose')
            ,
                ','
            ,
                '}}'
            )
        )
    )
,
    'string(//message[not(contains(.,''The execution of template action'')) and not(contains(.,''skipped:''))  and not(contains(.,''An action failed. No dependent actions succeeded.''))])'
)}

Run Log Url

Press ctrl + e adds the following expression to your clipboard ready to paste.

@{concat('https://make.powerautomate.com/manage/environments/', workflow()?['tags']?['environmentName'], '/flows/', workflow()?['name'], '/runs/', workflow()?['run']['name'])}

When added to a flow it returns a link to the run, idea for a exception notification, allowing quick link to the run.

A egg timer will show while generating the expression
pasted in a Outlook exception email