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 / Filter during offline ...
Power Apps
Unanswered

Filter during offline data to collection

(0) ShareShare
ReportReport
Posted on by 538

Friends what is the best way to ignore the duplicate record during offline data to collection copying. 

 

Below is my prototype, 

 

AVTS_2-1658682755414.png

Step 1 : Collecting data from Flow and save in to Collection A

 

If(
 Connection.Connected,
 Collect(
 test8,
 Getpmo.Run(
 LookUp(
 Dailyinventoryusers,
 email = User().Email,
 route
 
 )
 )
 );

Step 2 : Saving data from Collection A to mylocaldata (Offline Database)

    

 LoadData(
 test8,
 "MyLocalData",
 true
 
 );

SaveData(
 test8,
 "MyLocalData"
 
 );

Step 3:  Saving data from mylocaldata(Offline Database) to Collection B

If(CountRows(Filter(test9,orderNumber=orderNumber)) > 0 , 
ClearCollect(
 test9,
 {
 
 orderNumber: "",
 orderDate: "",
 customerCode: "",
 equipmentCode: "",
 class: ""
 }

)
);

 

Data appearance. 

 

AVTS_3-1658683145442.png

 

Requirement is   

If an identical value already exists in Collection B, the record should be disregarded while copying from Offlinedatabase to Collection B.

Identifier is Order Number 

Example 

 

OfflineData Looks like below,

 

AVTS_4-1658683352538.png

 

Collection B Looks like below,

 

AVTS_5-1658683383600.png

In this case only only below records should be collection from offline to Collection B.

 

AVTS_6-1658683435107.png

 

Because the item beginning with 9891 is already in CollectionB, it should be disregarded.

 

How to Achieve this. 

 

Please help. Thanks in Advance. 

 

 

Categories:
I have the same question (0)
  • AVTS Profile Picture
    538 on at

    Dear experts please share your input to take this forward. 

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 Apps

#1
Valantis Profile Picture

Valantis 477

#2
WarrenBelz Profile Picture

WarrenBelz 341 Most Valuable Professional

#3
11manish Profile Picture

11manish 317

Last 30 days Overall leaderboard