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 / Collect a blank record...
Power Apps
Unanswered

Collect a blank record type

(0) ShareShare
ReportReport
Posted on by 2

Hello,

 

I'm trying to collect a blank record type in a collection, in order to the user be able to select after a value in a dropdown.

My code is the following: 

Collect(
 GoalsCol;
 {
 lstGoals_MasterID: SharePointIntegration.SelectedListItemID;
 lstGoals_Concept: "";
 lstGoals_Kind:Blank();
 lstGoals_Percent: 0;
 lstGoals_ToDivideBetween:"";
 lstGoals_AnnualBonusValue: Value(DataCardValue10.Text)
 }
)

 

lstGoals_Kind and lstGoals_ToDivideBetween are the dropdowns I want to inicializate, but they are in text type right now, and I want them to be record type.

 

Many thanks for the help in advance,

Marina.

Categories:
  • WarrenBelz Profile Picture
    156,956 Most Valuable Professional on at

    Hi @marinadengra ,

    Try this

    Collect(
     GoalsCol;
     {
     lstGoals_MasterID: SharePointIntegration.SelectedListItemID;
     lstGoals_Concept: Blank();
     lstGoals_Kind:{Value:Blank()};
     lstGoals_Percent: 0;
     lstGoals_ToDivideBetween:{Value:Blank()};
     lstGoals_AnnualBonusValue: Value(DataCardValue10.Text)
     }
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • marinadengra Profile Picture
    2 on at

    Hi, thanks for the help.

     

    It doesn't match, I get a Text type in this way.

     

  • WarrenBelz Profile Picture
    156,956 Most Valuable Professional on at

    @marinadengra ,

    It is a Text table with one field - Value (and one record) What is it that you are after?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    The next step; I want to patch the changes on my collection as follows:

     

    Patch(
     GoalsCol;
     ThisItem;
     {
     lstGoals_MasterID: SharePointIntegration.SelectedListItemID;
     lstGoals_Concept: TextInput1.Text;
     lstGoals_Kind: KindDropdown.Selected;
     lstGoals_Percent: Value(TextInput2.Text);
     lstGoals_ToDivideBetween: ToDivideBetweenDropdown.Selected;
     lstGoals_AnnualBonusValue: Value(DataCardValue10.Text)
     }
    )

     

    It is on OnSelect property of my gallery.

    But I get an error: The type is not compatible, it is expected "ObjNull" but is used "Text" type.

     

    Many thanks,

    Marina

     

  • WarrenBelz Profile Picture
    156,956 Most Valuable Professional on at

    Hi @Anonymous ,

    Try 

    Patch(
     GoalsCol;
     ThisItem;
     {
     lstGoals_MasterID: SharePointIntegration.SelectedListItemID;
     lstGoals_Concept: TextInput1.Text;
     lstGoals_Kind: {Value:KindDropdown.Selected.Value};
     lstGoals_Percent: Value(TextInput2.Text);
     lstGoals_ToDivideBetween: {Value:ToDivideBetweenDropdown.Selected.Value};
     lstGoals_AnnualBonusValue: Value(DataCardValue10.Text)
     }
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

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

#2
WarrenBelz Profile Picture

WarrenBelz 190 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard