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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to update the Coll...
Power Apps
Unanswered

How to update the Collection(untyped Object)

(0) ShareShare
ReportReport
Posted on by 2
Hi Experts, I would be grateful if someone could help me with this. I have made a flow that converts xml to Json string. Flow output is stored in after trated with ParseJSON function in ParsedData(untyped Object data type). Using Clearcollect function I have created a table called Profile from ParsedData, I have made some changes in Profile collection using Patch function. Now I'm tring to Update the Profile details in ParsedData, Please help me with your valuable suggestions to update the ParsedData collection.
ParsedData is having more fields other than Profile. Thankyou.
 
"employer": {
      "@profileCount": "1",
      "@valid": "true",
      "ownershipVerification": {
        "@ownerCount": "1",
        "@valid": "true",
        "owner": {
          "@valid": "true",
          "isFromRecords": "true",
          "person": {
            "@valid": "true",
            "zipCode": "23233",
            "state": "VA",
            "ssn": "678-67-8767",
            "country": "USA",
            "telephone": "881-881-8810",
            "city": "RICHMOND",
            "addressLine1": "123 CHERRY HILL RD",
            "title": {
              "@valid": "true",
              "label": "Vice-President",
              "type": "titleResponsibleParty",
              "code": "VP"
            },
            "firstName": "Mike",
            "lastName": "Miller",
            "middle": ""
          }
        }
      },
      "profile": {
        "@valid": "true",
        "qualificationType": "Regular",
        "employerName": "LEGAL NAME",
        "type": "Current",
        "address": {
          "@valid": "true",
          "line2": "",
          "line1": "145 S Cherry St",
          "zip": "23235",
          "state": "VA",
          "city": "Richmond"
        },
        "liabilityDate": "2023-01-01",
        "firstEmploymentDate": "2023-01-01",
        "primaryDBA": "TRADING AS NAME",
        "businessActivity": "Ball and roller bearing manufacturing",
        "liabilityType": "C",
        "status": "Active",
        "entityType": "Corporation",
        "telephone": "8047788845",
        "statusEffectiveDate": "2023-01-01",
        "numberOfLocations": "1"
      }
    },
Categories:
I have the same question (0)
  • SaiRT14 Profile Picture
    1,990 Super User 2025 Season 2 on at
     
    To update the ParsedData collection, you need to use the Patch function again to update the profile field within ParsedData
    // Step 1: Modify the Profile collection (this part is already done in your flow)
    ClearCollect(Profile, ParsedData.profile); // Assuming ParsedData.profile is the profile part of your JSON
    // Step 2: Update the profile data within ParsedData
    Patch(
        ParsedData,
        LookUp(ParsedData, true), // Look up the correct record in ParsedData
        {
            employer: ParsedData.employer, // Keep the other fields the same
            profile: LookUp(Profile, true) // Update the profile field with the modified data from Profile collection
        }
    );

     
    pls try and let me know how if you need more details.
     
    thanks

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard