0
votes

I want to create small automation between Jira and Azure. To do this, I execute HTTP trigger from Jira, which send all request properties to Azure Logic App. In "When a HTTP request is received" step in Logic App I can see properly JSON schema with all data which I need. In next steps for example I want to add user to Azure AD group. And problem starts here.

For example, I want to Initialize variable and set it with value from JSON. I choose properties from dynamic menu, but after script execute always it is null value ( but in first step in "raw output" I see whole schema with data). I tried many things - parse, compose, many different conversion - always without any luck - null value or "".

Expected value - when I want to initialize variable using Properties from Dynamic Content I want to have value from input json.

Output from Jira

Output with the same JSON send from Postman

Thanks for any help !

-- Flow example

Flow result

1
Could you post some code with what you did?mate00
I added screenshoots, please take a lookKivas

1 Answers

0
votes

If you send the json with application/json content-type, you could just select the property with the dynamic content, however if not you have to parse it to json format with Parse Json action.

AS for the schema, you need use your json data to generate it with Use sample payload to generate schema. Paste the sample json payload.

enter image description here

Then you will be able to select property. However you could not implement it dynamic content, you have to write the expression. The format will be like this body('Parse_JSON')['test1'] and if your json has array data, you need to point the index it will be like this body('Parse_JSON')['test2'][0]['test3'].

Below is my test, you could have a try.

enter image description here

enter image description here

enter image description here