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 / Variable created with ...
Power Apps
Unanswered

Variable created with JSON function removes Collection columns

(0) ShareShare
ReportReport
Posted on by 28

Hello everyone,

 

I have (in my opinion) strange behavior in PowerApps, JSON function.

1. First, I'm creating Collection (CBCOLLECTFIN) by filtering SPList (CB-Cashbook_tbl) - it is OK. Working

2. Then, creating another collection (CBTEMP) by using DropColumns functions, which drops some columns from Collection (CBCOLLECTFIN):

ClearCollect(CBTEMP,DropColumns(CBCOLLECTFIN,"AWB_date","Account","Author","AutoNumber","ComplianceAssetId","DDS","EGN","Editor","Modified","Invoice","Product","Invoice_Billing","{Path}","{FilenameWithExtension}","{FullPath}","{Identifier}","{IsFolder}","{Link}","{ModerationComment}","{Name}","{Thumbnail}","{TriggerWindowEndToken}","{VersionNumber}","{ModerationStatus}","{TriggerWindowStartToken}")); - it is OK. Working

3. Navigate to another screen Navigate(DateRequestForm_FIN)

 

4. In this new screen, I have button.

OnSelect event is:

Set(varFormattedJSON,JSON(CBTEMP,JSONFormat.IndentFour));
EXPORTTOCSV.Run(varFormattedJSON)

 

PowerAutomate is working and creates CSV file successfully. 

 

The problem is, that in this file there is no field "Supplier". There is no such field and in the variable varFormattedJSON.

In CBTEMP collection there is such field. After this command - Set(varFormattedJSON,JSON(CBTEMP,JSONFormat.IndentFour));

this field has gone.

 

Dimo_1-1675092128018.png

 

 

Dimo_0-1675092073742.png

 

Thanks in advance

Dimo Petkov

 

 

Categories:

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 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 139

Last 30 days Overall leaderboard