Hi,
I have the following structure and try to build an array that only exists of all the stepfields
This hierarchy can theoretically be unlimited
How can I query or select or filter only the stepFields array on the different nested levels?
I don't want to loop through all the various levels because this can as I said in theory be 4 or 5 levels deep
thanks!
[
{
"id": "be36d974-1487-4032-8cb0-4032f0e9e17e",
"title": "ABC - BOX Save All Job Documents V2 w SG",
"children": [
{
"id": "1ea627c4-9e1b-49e3-b8ef-1dfb8875cd9e",
"title": "Step 1",
"impl": {
"step": {
"stepFields": [
{
"id": "48abdb9b-1fa2-432b-9961-88487775d938",
"key": "Send Documents to BOX - SAP (Future) ",
"type": 15,
"isRequired": false,
"clientId": "0fe813a6-cdbe-4ab4-87ea-2e77c5b946b3",
"descrip": [],
"nameWrapper": {},
"autoPopulatedByFields": [],
"dynamicRules": true,
"startHidden": false,
"containsPii": false,
"historicalValuesConfig": {
"enabled": false,
"maxCount": 25
}
},
{
"id": "f737e777-d5c6-41f0-95b2-ecb05edca43d",
"key": "Send Documents to BOX - SAP (Future) V2",
"type": 15,
"isRequired": false,
"clientId": "4e764e04-42af-4f8a-a71a-38dc223eeea7",
"descrip": [],
"nameWrapper": {},
"notificationTemplatesField": [
{
"id": "787b6e62-417b-4247-827b-f578cc9dcc6c",
"notificationTemplateId": "3b47603f-0e54-4855-8a06-a10b5623be6f",
"ownerId": "f737e777-d5c6-41f0-95b2-ecb05edca43d",
"references": [
{
"jobUuidRef": {}
},
{
"jobTitleRef": {}
},
{
"jobUrlRef": {}
},
{
"jobIdRef": {}
},
{
"userEmailRef": {}
},
{
"stepTitleRef": {
"clientId": "e9b7967d-80f9-4e7e-a2d8-6dd2510fc504"
}
},
{
"stepIdRef": {
"clientId": "e9b7967d-80f9-4e7e-a2d8-6dd2510fc504"
}
}
],
"createdAt": 1696433720,
"updatedAt": 1696433720,
"targets": []
}
],
"autoPopulatedByFields": [],
"dynamicRules": true,
"startHidden": false,
"containsPii": false,
"historicalValuesConfig": {
"enabled": false,
"maxCount": 25
}
},
{
"id": "dcdea7b4-1b50-40b5-8cc6-eaf6df182565",
"key": "S1 Question: Did you install the Well Lock",
"type": 9,
"isRequired": true,
"clientId": "564428b8-8dd6-4618-a09a-b1ec5c8e124f",
"descrip": [],
"nameWrapper": {
"template": "S1 Question: Did you install the Well Lock",
"resolved": "S1 Question: Did you install the Well Lock"
},
"autoPopulatedByFields": [],
"dynamicRules": true,
"startHidden": false,
"containsPii": false,
"historicalValuesConfig": {
"enabled": false,
"maxCount": 25
}
},
{
"id": "b3e29cc3-a7fa-4963-9656-9b5ed2e228e7",
"key": "Install Date",
"type": 14,
"isRequired": false,
"clientId": "e083767c-43f8-4bfa-8879-2b5026a6d73a",
"descrip": [],
"nameWrapper": {
"template": "Install Date",
"resolved": "Install Date"
},
"autoPopulatedByFields": [],
"dynamicRules": true,
"startHidden": false,
"containsPii": false,
"historicalValuesConfig": {
"enabled": false,
"maxCount": 25
}
},
{
"id": "5e6ddfcc-7797-4f22-80c7-b183ce4cd860",
"key": "Time to Work",
"type": 2,
"isRequired": false,
"clientId": "37bf0e36-76d9-4da0-9df3-4a17ad73fb2d",
"descrip": [],
"nameWrapper": {
"template": "Time to Work",
"resolved": "Time to Work"
},
"autoPopulatedByFields": [],
"dynamicRules": true,
"startHidden": false,
"containsPii": false,
"historicalValuesConfig": {
"enabled": false,
"maxCount": 25
}
},
{
"id": "b07527fb-1e38-4dae-b5e1-81fe136a3453",
"key": "Voltage",
"type": 2,
"fieldData": {
"numberConstraints": {
"unit": "volt (V)",
"unitWrapper": {
"template": "volt (V)",
"resolved": "volt (V)"
},
"numberUnitConstraint": {
"unitId": "3a7dfd26-d3a0-4c1a-b890-4d1d36735886"
}
}
},
"isRequired": false,
"clientId": "ce572fda-0020-4088-bd41-939d89320e9b",
"descrip": [],
"nameWrapper": {
"template": "Voltage",
"resolved": "Voltage"
},
"autoPopulatedByFields": [],
"dynamicRules": true,
"startHidden": false,
"containsPii": false,
"historicalValuesConfig": {
"enabled": false,
"maxCount": 25
}
},
{
"id": "8376408f-adad-4878-b736-9e28efad4172",
"key": "Status",
"type": 3,
"fieldData": {
"listOptions": {
"options": [
"Installed",
"Running"
]
}
},
"isRequired": false,
"clientId": "c4248b96-9e95-47aa-b0dc-278ad8b8f03b",
"descrip": [],
"nameWrapper": {
"template": "Status",
"resolved": "Status"
},
"autoPopulatedByFields": [],
"dynamicRules": true,
"startHidden": false,
"containsPii": false,
"historicalValuesConfig": {
"enabled": false,
"maxCount": 25
}
},
{
"id": "e42f7274-6369-46ee-8836-4dcf6faaff7a",
"key": "ML Checks",
"type": 11,
"fieldData": {
"listOptions": {
"options": [
"Rust",
"Paint",
"Oil"
]
}
},
"isRequired": false,
"clientId": "20f7bc92-e2e7-4974-9452-614cd1015d7a",
"descrip": [],
"nameWrapper": {
"template": "ML Checks",
"resolved": "ML Checks"
},
"autoPopulatedByFields": [],
"dynamicRules": true,
"startHidden": false,
"containsPii": false,
"historicalValuesConfig": {
"enabled": false,
"maxCount": 25
}
},
{
"id": "ac6bf0bf-4e03-4536-98db-493c77387ca1",
"key": "ML Comments",
"type": 1,
"isRequired": false,
"clientId": "c71c062b-43e5-4a9c-8c79-797602463605",
"descrip": [],
"nameWrapper": {
"template": "ML Comments",
"resolved": "ML Comments"
},
"autoPopulatedByFields": [],
"dynamicRules": true,
"startHidden": false,
"containsPii": false,
"historicalValuesConfig": {
"enabled": false,
"maxCount": 25
}
},
{
"id": "0f4eb2da-b4dc-4242-bbc7-f37897b243e1",
"key": "Signature",
"type": 7,
"isRequired": false,
"clientId": "b0dfde6d-4827-4fc5-b3dc-3bc314418c74",
"descrip": [],
"nameWrapper": {
"template": "Signature",
"resolved": "Signature"
},
"autoPopulatedByFields": [],
"dynamicRules": true,
"startHidden": false,
"containsPii": false,
"historicalValuesConfig": {
"enabled": false,
"maxCount": 25
}
},
{
"id": "9e104a1e-4a35-4cd9-8a03-c3ef2e52138e",
"key": "ML Audio ",
"type": 6,
"isRequired": false,
"clientId": "86042dd4-b44d-4b34-8a47-c0063efb6515",
"descrip": [],
"nameWrapper": {
"template": "ML Audio ",
"resolved": "ML Audio "
},
"autoPopulatedByFields": [],
"dynamicRules": true,
"startHidden": false,
"containsPii": false,
"historicalValuesConfig": {
"enabled": false,
"maxCount": 25
}
},
{
"id": "ccc4ea1d-7f6e-4da6-9a21-fe785e42cd0f",
"key": "S1 ML Photo 1 (Library)",
"type": 4,
"isRequired": true,
"clientId": "f3b63ea3-213c-4bd4-8be8-76ac11717909",
"descrip": [],
"nameWrapper": {
"template": "S1 ML Photo 1 (Library)",
"resolved": "S1 ML Photo 1 (Library)"
},
"autoPopulatedByFields": [],
"dynamicRules": true,
"startHidden": false,
"containsPii": false,
"historicalValuesConfig": {
"enabled": false,
"maxCount": 25
}
},
{
"id": "0730252b-ada9-4d65-aca4-746a0a5625f8",
"key": "S1 ML Photo 2 (Live)",
"type": 4,
"isRequired": false,
"clientId": "64ad641d-ff85-45a1-8776-313ed22b7318",
"descrip": [],
"nameWrapper": {
"template": "S1 ML Photo 2 (Live)",
"resolved": "S1 ML Photo 2 (Live)"
},
"autoPopulatedByFields": [],
"dynamicRules": true,
"startHidden": false,
"containsPii": false,
"historicalValuesConfig": {
"enabled": false,
"maxCount": 25
}
},
{
"id": "df2150f7-1190-40f7-aa4d-702e07117db2",
"key": "S1 Upload File 1",
"type": 12,
"isRequired": false,
"clientId": "80a9339e-245c-4378-9452-3c3b7724c6b1",
"descrip": [],
"nameWrapper": {
"template": "S1 Upload File 1",
"resolved": "S1 Upload File 1"
},
"autoPopulatedByFields": [],
"dynamicRules": true,
"startHidden": false,
"containsPii": false,
"historicalValuesConfig": {
"enabled": false,
"maxCount": 25
}
},
{
"id": "9366bf57-65e4-4474-8f8e-935e7de8c136",
"key": "S1 Upload File 2",
"type": 12,
"isRequired": false,
"clientId": "d8ac5938-fed2-49d9-847e-85543329d2f7",
"descrip": [],
"nameWrapper": {
"template": "S1 Upload File 2",
"resolved": "S1 Upload File 2"
},
"autoPopulatedByFields": [],
"dynamicRules": true,
"startHidden": false,
"containsPii": false,
"historicalValuesConfig": {
"enabled": false,
"maxCount": 25
}
}
],
"stepType": 0
}
},
"children": []
},
{
"id": "2e952027-7ad5-48a7-891f-161a28cd088a",
"title": "Step 2",
"impl": {
"step": {
"stepFields": [
{
"id": "61d7b35a-626c-46d4-8a51-076e9a59248b",
"key": "S2 ML Photo 1",
"type": 4,
"isRequired": true,
"clientId": "19777e02-94c0-4b18-83f2-98a455d695d4",
"descrip": [],
"nameWrapper": {
"template": "S2 ML Photo 1",
"resolved": "S2 ML Photo 1"
},
"autoPopulatedByFields": [],
"dynamicRules": true,
"startHidden": false,
"containsPii": false,
"historicalValuesConfig": {
"enabled": false,
"maxCount": 25
}
},
{
"id": "3795af7d-f006-4388-92a9-dadaf5e11bc3",
"key": "S2 ML Video",
"type": 5,
"isRequired": false,
"clientId": "a9aa17f1-8e18-457c-84ca-b7f591b082da",
"descrip": [],
"nameWrapper": {
"template": "S2 ML Video",
"resolved": "S2 ML Video"
},
"autoPopulatedByFields": [],
"dynamicRules": true,
"startHidden": false,
"containsPii": false,
"historicalValuesConfig": {
"enabled": false,
"maxCount": 25
}
},
{
"id": "eb26403f-55ab-42e6-a49a-62ead61a18d0",
"key": "S2 Upload File",
"type": 12,
"isRequired": false,
"clientId": "da6455e5-a62f-4ee7-98de-8b5c76c8f570",
"descrip": [],
"nameWrapper": {
"template": "S2 Upload File",
"resolved": "S2 Upload File"
},
"autoPopulatedByFields": [],
"dynamicRules": true,
"startHidden": false,
"containsPii": false,
"historicalValuesConfig": {
"enabled": false,
"maxCount": 25
}
}
],
"stepType": 0
}
},
"children": []
},
{
"id": "d14af293-74aa-44a0-98a0-5935a63ffae9",
"title": "ML Group 1",
"impl": {
"stepGroup": {
"headers": {}
}
},
"children": [
{
"id": "4570a6e7-ce35-4e25-bd46-4f86498b3b46",
"title": "SG1 Step 1",
"impl": {
"step": {
"stepFields": [
{
"id": "794a5470-42a4-452a-b995-53589268fa62",
"key": "SG 1 Step 1 Comment",
"type": 1,
"isRequired": false,
"clientId": "baa8ec12-92a0-4e50-bc9f-f109043b00f3",
"descrip": [],
"nameWrapper": {
"template": "SG 1 Step 1 Comment",
"resolved": "SG 1 Step 1 Comment"
},
"autoPopulatedByFields": [],
"dynamicRules": true,
"startHidden": false,
"containsPii": false,
"historicalValuesConfig": {
"enabled": false,
"maxCount": 25
}
}
],
"stepType": 0
}
},
"children": []
},
{
"id": "203e4498-2ec5-451a-b079-92f7586099ed",
"title": "ML Group 2",
"children": [
{
"id": "b6bfbf48-24e9-45eb-8d90-ca62f68d4595",
"title": "SG2 Step 2",
"impl": {
"step": {
"stepFields": [
{
"id": "b95b6ec2-c1c2-44d8-86f3-5c4bddcecd45",
"key": "Deep Comment",
"type": 3,
"fieldData": {
"listOptions": {
"options": [
"OK",
"NOK"
]
}
},
"isRequired": false,
"clientId": "487c0279-97b2-4f53-8b7a-ba4bb96c3b18",
"descrip": [],
"nameWrapper": {
"template": "Deep Comment",
"resolved": "Deep Comment"
},
"autoPopulatedByFields": [],
"dynamicRules": true,
"startHidden": false,
"containsPii": false,
"historicalValuesConfig": {
"enabled": false,
"maxCount": 25
}
}
],
"stepType": 0
}
}
}
]
}
]
}
]
}
]
Maybe this can give you some inspiration
Your array's structure is like this
So you would need to figure out which children actually have the stepFields entity.
Here is how to fetch it for the first child
Not sure how to do it for all children that have that section.
thanks, yes, this is the challenge
When you drill into the step group, you see the next level of steps with stepFields ...
I can of course make this recursive (with loops) but PowerAutomate has a limit of 8 nested levels and with some conditions, I reach this limit quickly
So I was looking for an easy way to parse / filter / select only the stepFields section on all levels of the JSON with a single action
thanks anyway!
i don't know if any of the JSON parsers has functionality that is remotely similar to XPATH for XML.
Hi there,
I'm struggling with a similar issue using Power Automate and filtering nested JSON arrays.
Has anyone been able to figure out filtering nested arrays? for eg., I'm looking to filter all users for workspaces with groupuserAccessRight ='Member' or when principalType ='User'
Here's the schema (scrubbed for IDs), please advise
{
"@odata.context": "http://wabi-us-north-central-g-primary-redirect.analysis.windows.net/v1.0/myorg/admin/$metadata#groups",
"@odata.count": 91252,
"value": [
{
"id": "DDDDDDDDDDDDDDDDDDDDDDDDDDDDDD",
"isReadOnly": false,
"isOnDedicatedCapacity": true,
"capacityId": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"capacityMigrationStatus": "Migrated",
"defaultDatasetStorageFormat": "Small",
"type": "Workspace",
"state": "Active",
"pipelineId": "XXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"hasWorkspaceLevelSettings ": false,
"name": "CCB Analytics - Wholesale",
"users": [
{
"emailAddress": "AD_PowerBI_WorkspaceAdmin@myorg.com",
"groupUserAccessRight": "Admin",
"displayName": "AD_PowerBI_WorkspaceAdmin",
"identifier": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"principalType": "Group"
},
{
"emailAddress": "AD_PowerBI_CCB_Analytics-Wholesale_Contributor@myorg.com",
"groupUserAccessRight": "Contributor",
"displayName": "AD_PowerBI_CCB_Analytics-Wholesale_Contributor",
"identifier": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"principalType": "Group"
},
{
"emailAddress": "AD_PowerBI_CCB_Analytics-Wholesale_Viewer@myorg.com",
"groupUserAccessRight": "Viewer",
"displayName": "AD_PowerBI_CCB_Analytics-Wholesale_Viewer",
"identifier": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"principalType": "Group"
},
{
"groupUserAccessRight": "Member",
"displayName": "Salesforce Power BI Integration v2",
"identifier": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"principalType": "App"
},
{
"emailAddress": "AD_CCB_Analytics_Wholesale_ELV_NA_Viewer@myorg.com",
"groupUserAccessRight": "Viewer",
"displayName": "AD_CCB_Analytics_Wholesale_ELV_NA_Viewer",
"identifier": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"principalType": "Group"
},
{
"emailAddress": "AD_PowerBI_CCB_AnalyticsWholesale_Member@myorg.com",
"groupUserAccessRight": "Member",
"displayName": "AD_PowerBI_CCB_AnalyticsWholesale_Member",
"identifier": "4c12da85-253e-4c96-a78f-a9676ab68346",
"principalType": "Group"
}
]
}
]
}
Why not do that in a Power BI report?
Ultimately we want to notify users who are not compliant with
We figured if we handle all of it in PowerAutomate it makes our life easier as Admins once we schedule.
You can run the API calls into a Power BI dataset and then in Power Automate run DAX queries against that dataset. Much simpler without any need to parse anything.
Dear Community Members, We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd. During this period, members will not be able to Kudo, Comment, or Reply to any posts. On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities. What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!
We are excited to announce the Summer of Solutions Challenge! This challenge is kicking off on Monday, June 17th and will run for (4) weeks. The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions to as many questions as you can. Answers can be provided in all the communities. Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”) - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024 Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods. You must enter into each weekly Entry Period separately. How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different. Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers. At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing. Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner. A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random. Individuals will be contacted before the announcement with the opportunity to claim or deny the prize. Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners. Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event. ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE** Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Community MembersNumber SolutionsSuper UsersNumber Solutions Deenuji 9 @NathanAlvares24 17 @Anil_g 7 @ManishSolanki 13 @eetuRobo 5 @David_MA 10 @VishnuReddy1997 5 @SpongYe 9JhonatanOB19932 (tie) @Nived_Nambiar 8 @maltie 2 (tie) @PA-Noob 2 (tie) @LukeMcG 2 (tie) @tgut03 2 (tie) Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 2: Community MembersSolutionsSuper UsersSolutionsPower Automate @Deenuji 12@ManishSolanki 19 @Anil_g 10 @NathanAlvares24 17 @VishnuReddy1997 6 @Expiscornovus 10 @Tjan 5 @Nived_Nambiar 10 @eetuRobo 3 @SudeepGhatakNZ 8 Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 3:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji32ManishSolanki55VishnuReddy199724NathanAlvares2444Anil_g22SudeepGhatakNZ40eetuRobo18Nived_Nambiar28Tjan8David_MA22 Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 4:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji11FLMike31Sayan11ManishSolanki16VishnuReddy199710creativeopinion14Akshansh-Sharma3SudeepGhatakNZ7claudiovc2CFernandes5 misc2Nived_Nambiar5 Usernametwice232rzaneti5 eetuRobo2 Anil_g2 SharonS2
On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners. The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights. Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.
We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for. We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer. Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together. Here's to new beginnings and endless possibilities! If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport. To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages