cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
noelflores
Frequent Visitor

Is it possible to make the ChangeRecord1 in UpdateIf dynamic?

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?

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
PowerRanger
Resident Rockstar
Resident Rockstar

@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.




​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.

View solution in original post

3 REPLIES 3
PowerRanger
Resident Rockstar
Resident Rockstar

@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.




​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.

I see, Thanks @PowerRanger !

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.

Best Regards,
Qi

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (1,948)