Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

Is it possible to make the ChangeRecord1 in UpdateIf dynamic?

(0) ShareShare
ReportReport
Posted on by 54

I'm not sure what to call the changeRecord. but from the powerapps documentation. it's the one underlined here. UpdateIf( DataSource, Condition1, ChangeRecord1 [, Condition2, ChangeRecord2, ... ] )

 

Example:

UpdateIf(collectionName, true, {Header1: Value1})

 

Is it possible to make Header1 dynamic? Or maybe from a variable?

 

 

 

Categories:
  • Re: Is it possible to make the ChangeRecord1 in UpdateIf dynamic?

    Hi @noelflores,

    I think @PowerRanger has answered your question, could you please mark his reply as an answer to help more users who may have the similar issue.

     

    If you research the parameters within the UpdateIf() function, you should have found that the Column name is a literal text that could not be a varaible.

  • nwelflores Profile Picture
    nwelflores 54 on at
    Re: Is it possible to make the ChangeRecord1 in UpdateIf dynamic?

    I see, Thanks @PowerRanger !

  • Verified answer
    PowerRanger Profile Picture
    PowerRanger 3,458 on at
    Re: Is it possible to make the ChangeRecord1 in UpdateIf dynamic?

    @noelflores 

    No, this is not possible. It is possible to make "value1" dynamic but the field identifier is hardcoded.

     

    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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,434

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,722

Leaderboard