web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
Answered

Set value is null

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi, when I want to get the value of property "login" from a parse Json to set last_comment_author, but the value is null, and there is no error message. Anyone can help me? Thanks very much.

szheng_0-1718619150771.png

szheng_1-1718619203238.png

szheng_3-1718619279084.png

 

This is my flow: 

szheng_2-1718619251311.png

 

Categories:
  • Anil_g Profile Picture
    668 Moderator on at

    @szheng 

     

    Can you show the value you used..like the expression

     

    may be its awrong expression that is used..


    it should be something like body,user and login

     

    cheers

  • szheng Profile Picture
    Microsoft Employee on at

    Hi @Anil_g Thanks for your help, this is the parse json:

    {
        "type": "object",
        "properties": {
            "name": {
                "type": "string"
            },
            "value": {
                "type": "object",
                "properties": {
                    "url": {
                        "type": "string"
                    },
                    "html_url": {
                        "type": "string"
                    },
                    "issue_url": {
                        "type": "string"
                    },
                    "id": {
                        "type": "integer"
                    },
                    "node_id": {
                        "type": "string"
                    },
                    "user": {
                        "type": "object",
                        "properties": {
                            "login": {
                                "type": "string"
                            },
                            "id": {
                                "type": "integer"
                            },
                            "node_id": {
                                "type": "string"
                            },
                            "avatar_url": {
                                "type": "string"
                            },
                            "gravatar_id": {
                                "type": "string"
                            },
                            "url": {
                                "type": "string"
                            },
                            "html_url": {
                                "type": "string"
                            },
                            "followers_url": {
                                "type": "string"
                            },
                            "following_url": {
                                "type": "string"
                            },
                            "gists_url": {
                                "type": "string"
                            },
                            "starred_url": {
                                "type": "string"
                            },
                            "subscriptions_url": {
                                "type": "string"
                            },
                            "organizations_url": {
                                "type": "string"
                            },
                            "repos_url": {
                                "type": "string"
                            },
                            "events_url": {
                                "type": "string"
                            },
                            "received_events_url": {
                                "type": "string"
                            },
                            "type": {
                                "type": "string"
                            },
                            "site_admin": {
                                "type": "boolean"
                            }
                        }
                    },
                    "created_at": {
                        "type": "string"
                    },
                    "updated_at": {
                        "type": "string"
                    },
                    "author_association": {
                        "type": "string"
                    },
                    "body": {
                        "type": "string"
                    },
                    "reactions": {
                        "type": "object",
                        "properties": {
                            "url": {
                                "type": "string"
                            },
                            "total_count": {
                                "type": "integer"
                            },
                            "+1": {
                                "type": "integer"
                            },
                            "-1": {
                                "type": "integer"
                            },
                            "laugh": {
                                "type": "integer"
                            },
                            "hooray": {
                                "type": "integer"
                            },
                            "confused": {
                                "type": "integer"
                            },
                            "heart": {
                                "type": "integer"
                            },
                            "rocket": {
                                "type": "integer"
                            },
                            "eyes": {
                                "type": "integer"
                            }
                        }
                    },
                    "performed_via_github_app": {}
                }
            }
        }
    }
     
    I want to get the valve of "login", this is my expression:
    szheng_1-1718626090115.png

    I'm not sure why I get the value is null.

     

  • Verified answer
    Anil_g Profile Picture
    668 Moderator on at

    @szheng 

     

    body('Parse_JSON_2')?['value']?['user']?['login'] - try like this

     

    cheers

  • szheng Profile Picture
    Microsoft Employee on at

    Hi @Anil_g Thanks, I try this but it'll auto fill with body.login

    szheng_0-1718627841384.png

     

  • Anil_g Profile Picture
    668 Moderator on at

    @szheng 


    remove the already existing value and then fill the dynamic content and press ok

     

    when you hover on it you should see this expression

     

    cheers

  • szheng Profile Picture
    Microsoft Employee on at

    Hi @Anil_g yes, that's what I did, but it's still get null😭

  • Anil_g Profile Picture
    668 Moderator on at

    Can you send teh json as well..removing confidential info..I can try to replicate and check if we are able to get the data

     

    cheers

  • szheng Profile Picture
    Microsoft Employee on at

    @Anil_g Thanks for your help. I find another to achieve the flow.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 317 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 247

#3
Henil Profile Picture

Henil 117

Last 30 days Overall leaderboard