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 Platform Community / Forums / Power Automate / Flow to import JSON fi...
Power Automate
Answered

Flow to import JSON file to sharepoint

(2) ShareShare
ReportReport
Posted on by 83
I've been hacking my way through Parse JSON schema and Create Item. I have this schema and need one item to show up as a choise in create item. I see most of the items I need exept for "members". Members is an array also. The Apply to each I'm using "body('ParseJSONGroups')?['Objects']" for output from previous step.
The schema is down below.
{
    "type""object",
    "properties": {
        "objects": {
            "type""array",
            "items": {
                "type""object",
                "properties": {
                    "uid": {
                        "type""string"
                    },
                    "name": {
                        "type""string"
                    },
                    "type": {
                        "type""string"
                    },
                    "domain": {
                        "type""object",
                        "properties": {
                            "uid": {
                                "type""string"
                            },
                            "name": {
                                "type""string"
                            },
                            "domain-type": {
                                "type""string"
                            }
                        }
                    },
                    "members": {                   -----------------------------Here
                        "type""array",
                        "items": {
                            "type""string"
                        }
                    },
                    "comments": {
                        "type""string"
                    },
                    "color": {
                        "type""string"
                    },
                    "icon": {
                        "type""string"
                    },
                    "tags": {
                        "type""array"
                    },
                    "meta-info": {
                        "type""object",
                        "properties": {
                            "lock": {
                                "type""string"
                            },
                            "validation-state": {
                                "type""string"
                            },
                            "last-modify-time": {
                                "type""object",
                                "properties": {
                                    "posix": {
                                        "type""integer"
                                    },
                                    "iso-8601": {
                                        "type""string"
                                    }
                                }
                            },
                            "last-modifier": {
                                "type""string"
                            },
                            "creation-time": {
                                "type""object",
                                "properties": {
                                    "posix": {
                                        "type""integer"
                                    },
                                    "iso-8601": {
                                        "type""string"
                                    }
                                }
                            },
                            "creator": {
                                "type""string"
                            }
                        }
                    },
                    "read-only": {
                        "type""boolean"
                    },
                    "available-actions": {
                        "type""object",
                        "properties": {
                            "edit": {
                                "type""string"
                            },
                            "delete": {
                                "type""string"
                            },
                            "clone": {
                                "type""string"
                            }
                        }
                    }
                },
                "required": [
                    "uid",
                    "name",
                    "type",
                    "domain",
                    "members",
                    "comments",
                    "color",
                    "icon",
                    "tags",
                    "meta-info",
                    "read-only",
                    "available-actions"
                ]
            }
        }
    }
}
Categories:
I have the same question (0)
  • Verified answer
    Haque Profile Picture
    3,653 on at
     
    If your intenstion is to hack and get members, can you please initialize an array variable before the loops, then append each member item inside the nested loop? After the loops complete, you will have a flat array of all members, which you can then use as choices in your "Create item" action.
     
    Then these are your steps to separate  the members:
    1. Loop over body('ParseJSONGroups')?['Objects'] (outer loop).

    2. Inside that, loop over items('Apply_to_each')?['members'] (inner loop).

    3. Append each member to an array variable.

     
     

    I am sure some clues I tried to give. If these clues help to resolve the issue brought you by here, please don't forget to check the box Does this answer your question? At the same time, I am pretty sure you have liked the response!
  • Verified answer
    wlyttle Profile Picture
    83 on at
     - You got me most of the way there. I added aInitialize Variable for string and added a Set Variable in the inner loop to cpature "Members". The append to array captures that.
     
     

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard