cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper V
Helper V

parson json to get the flow instance link

Hi

I want to  use workflow() function to get the flow instance information, and Splice the flow instance link .

I don`t know how to write parson json correctly.

キャプチャ.JPG

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Dual Super User III
Dual Super User III

Re: parson json to get the flow instance link

Hi!

I would suggst to remove last comma.

It also looks akward, I mean, the first part of your JSON seems to be taken from an execution example, and the second part from a JSON schema.

 

My suggestion is, try with this schema instead:

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "type": {
      "type": "string"
    },
    "location": {
      "type": "string"
    },
    "tags": {
      "type": "object",
      "properties": {
        "flowDisplayName": {
          "type": "string"
        },
        "environmentName": {
          "type": "string"
        },
        "logicAppName": {
          "type": "string"
        },
        "environmentFlowSuspensionReason": {
          "type": "string"
        }
      }
    },
    "run": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "type": {
          "type": "string"
        }
      }
    }
  }
}

 

Hope this helps



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



View solution in original post

5 REPLIES 5
Highlighted
Dual Super User III
Dual Super User III

Re: parson json to get the flow instance link

Hi!

I guess you already run the flow, inspected Compose output, copied it, then edited the flow, on Parse Json clicked 'generate from sample' and pasted Compose output, right?

 

Flow_workflow.png

Hope this helps



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



Highlighted
Helper V
Helper V

Re: parson json to get the flow instance link

HI Thank you for reply.

Could you please kindly help to check below json that is invalid.

1.JPG

Highlighted
Community Support
Community Support

Re: parson json to get the flow instance link

Hi @Tiffany-Jo,

 

Keys and Valuesthe two primary parts that make up JSON are keys and values. Together they make a key/value pair.

JSON Schema is a vocabulary that allows you to annotate and validate JSON documents.

But if you mix the key-value with the schema, it won't work correctly in the Power Automate.

Annotation 2020-03-25 124811.png

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Highlighted
Helper V
Helper V

Re: parson json to get the flow instance link

hi Thank you.

Could you please kindly tell how to get the run link? 

Since I need to get the run information and add it to mail.

It seems that it is difficult to get the run start time as well.

Highlighted
Dual Super User III
Dual Super User III

Re: parson json to get the flow instance link

Hi!

I would suggst to remove last comma.

It also looks akward, I mean, the first part of your JSON seems to be taken from an execution example, and the second part from a JSON schema.

 

My suggestion is, try with this schema instead:

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "type": {
      "type": "string"
    },
    "location": {
      "type": "string"
    },
    "tags": {
      "type": "object",
      "properties": {
        "flowDisplayName": {
          "type": "string"
        },
        "environmentName": {
          "type": "string"
        },
        "logicAppName": {
          "type": "string"
        },
        "environmentFlowSuspensionReason": {
          "type": "string"
        }
      }
    },
    "run": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "type": {
          "type": "string"
        }
      }
    }
  }
}

 

Hope this helps



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



View solution in original post

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

Top Solution Authors
Top Kudoed Authors
Users online (7,311)