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 Apps / Collecting pasted data...
Power Apps
Unanswered

Collecting pasted data in collection

(0) ShareShare
ReportReport
Posted on by 20

I have created an app that the user paste data and after some step which is done inside the app such as separating data based on the new line (char(10) or tab (Char(9)) character it should all be save in a Collection which is ColCY and then Patch to the source which is Dataverse. But the problem is that there are some rows that they will not be patch. I found that in ColCY their related FinancialTransactionsManualInput does not exist. I mean that this collection have only 100 rows while it should have 152 rows. This is the code:
ForAll( GallerySubmitPastFromExcel.AllItems,

 

If(

    FinancialTransactionsManualInput in ColCY.FinancialTransactionsManualInput,

    Update(

        ColCY,

        LookUp(

            ColCY,

            FinancialTransactionsManualInput = FinancialTransactionsManualInput

        ),

         {

            cmonth3: Value(TextInput3_34.Text),

            FinancialTransactionsManualInput: FinancialTransactionsManualInput

        }

    ),

    Collect(

        ColCY,

        {

            cmonth3: Value(TextInput3_34.Text),

            FinancialTransactionsManualInput: FinancialTransactionsManualInput

        }

    )

)

Categories:
  • CU18061035-1 Profile Picture
    Microsoft Employee on at

    hey @SaharKMA_20 

     

    can you try this:

    Clear(ColCY); // Make sure to start with an empty collection
    
    ForAll(
     GallerySubmitPastFromExcel.AllItems,
     With(
     { currentFTMI: FinancialTransactionsManualColor },
     If(
     Not(IsBlank(LookUp(ColCY, FinancialTransactionsManualInput = currentFTMI))),
     Update(
     ColCY,
     LookUp(ColCY, FinancialTransactionsManualInput = currentFTMI),
     {
     cmonth3: Value(TextInput3_34.Text),
     FinancialTransactionsManualInput: currentFTMI
     }
     ),
     Collect(
     ColCY,
     {
     cmonth3: Value(TextInput3_34.Text),
     FinancialTransactionsManualInput: currentFTMI
     }
     )
     )
     )
    );
    

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

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 Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard