How to create Azure logic app initialize variable after parse json action

  Kiến thức lập trình

i have a logic app in azure. i’m currently stuck in initialize expression variable after parse json. i want to catch “appId” parameter but all i get is null despite the fact that parse json giving an outout, so it seems that i I’m not expressing the right syntax.

this is my JSON output in parse JSON step

{
    "body": {
        "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#servicePrincipals",
        "value": [
            {
                "id": "*************",
                "deletedDateTime": null,
                "accountEnabled": true,
                "alternativeNames": [],
                "appDisplayName": "testappp",
                "appDescription": null,
                "appId": "****************",
                "applicationTemplateId": null,
                "appOwnerOrganizationId": "***********",
                "appRoleAssignmentRequired": false,

i tried using that syntax –>
first(outputs(‘Parse_JSON’)?[‘body/value’])[‘appId’] and many many more 🙂

I’m using “first” coz there is a few appId instances in the output so i want to catch the first part. (don’t know if it’s the right way)

Theme wordpress giá rẻ Theme wordpress giá rẻ Thiết kế website

LEAVE A COMMENT