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 / Set(varProvRecord, Bla...
Power Apps
Unanswered

Set(varProvRecord, Blank()); <- This is giving me an error

(0) ShareShare
ReportReport
Posted on by 221

Hello, the rest of the formula is coming back fine except when I do the Set command. Can anyone tell me why this is happening?

 

Set(varRecord, Patch('[incentive_test].[D_eTime]', Defaults('[incentive_test].[D_eTime]'),{PROVIDERNUMBER:"000000", Employee_Display_Name:"Please Select Provider", d_provider_ky:-1}));
EditForm(FormEdit);
Navigate(scnUpdate,None);
Set(varProvRecord, Blank());

 

 

NitroPepsi_0-1662862987086.png

 

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    155,756 Most Valuable Professional on at

    Hi @NitroPepsi ,

    That is because the structure of the Variable is a Record in the Patch and then a single value below, so you would need

    Set(
     varProvRecord,
     Defaults('[incentive_test].[D_eTime]')
    )

    in the bottom item. But I have to wonder why you are setting a Variable, then immediately clearing it - why not set it to a blank record in the first place ?

     

    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.

    Visit my blog Practical Power Apps

     

     

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 483

#2
WarrenBelz Profile Picture

WarrenBelz 399 Most Valuable Professional

#3
11manish Profile Picture

11manish 327

Last 30 days Overall leaderboard