cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Lars1990
Helper II
Helper II

Patch changed textboxes and combobox in gallery

Hi all,

 

What am I doing wrong? I am trying to do the exact same thing as April Dunnam https://www.youtube.com/watch?v=mj4mKS1hS7M

 

I do not see what is wrong in the code.

 

Thanks in advance!

 

KR Lars

 

Lars1990_0-1641216679678.png

 

ForAll(Gallery2_1.AllItems,Patch(Actions,ThisRecord,{ActionID:'802TextBoxActionID'.Value,ActionGroupID:'802TextBoxActionGroupID'.Value,'Action Description': '802TextBoxActionDescription'.Value,ActionHolder: '802ComboBoxActionHolder'.Selected}))

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-jefferni
Community Support
Community Support

Hi @Lars1990 ,

 

When using dataverse table as the data source, since unique identifier column name may be the same as the table name, sometimes you will need to add [@] symbol for global disambiguation:

https://powerusers.microsoft.com/t5/Building-Power-Apps/How-does-the-quot-quot-notation-work/td-p/72...

 

In my test, the difference will be in the screens as below:

vjefferni_1-1641364444999.png

 

vjefferni_0-1641364428949.png

 

Hope this helps.

 

Best regards,

Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.

 

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

6 REPLIES 6
WarrenBelz
Super User
Super User

Hi @Lars1990 ,

Assuming SharePoint is your data source (you did not specify), try this

ForAll(
   Gallery2_1.AllItems As aPatch,
   Patch(
      Actions,
      {ID:aPatch.ID},
      {
         ActionID:aPatch.'802TextBoxActionID'.Value,
         ActionGroupID:aPatch.'802TextBoxActionGroupID'.Value,
         'Action Description': aPatch.'802TextBoxActionDescription'.Value,
         ActionHolder: aPatch.'802ComboBoxActionHolder'.Selected
      }
   )
)

 

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

Hi @WarrenBelz ,

 

Thanks for helping! The datasource is Dataverse. The App is build in powerapps in Teams (so not web version). Unfortunatly the solution does not work 😞 Maybe because the datasource is Dataverse?

 

KR Lars 

 

Lars1990_0-1641281935387.png

 

 

 

Hi @Lars1990 ,

No it will not work (it was framed for SharePoint) - please always specify your data source as it will affect both the response and who responds. I am a SharePoint user and also do not use Teams for Power Apps. I have a blog that may be of assistance.

However what is the error you are getting - if is is the ID, use the Dataverse unique identifier.

 

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

Hi @WarrenBelz ,

 

Sorry about not mentioning the datasource, thought it would not matter.

 

See the error below.... not really helpfull unfortunatly. What do you mean by the Dataverse unique identifier?

 

KR Lars

Lars1990_0-1641290177441.png

 

Hi @Lars1990 ,

As I mentioned I am not a Dataverse user, but I believe is is the GUID

v-jefferni
Community Support
Community Support

Hi @Lars1990 ,

 

When using dataverse table as the data source, since unique identifier column name may be the same as the table name, sometimes you will need to add [@] symbol for global disambiguation:

https://powerusers.microsoft.com/t5/Building-Power-Apps/How-does-the-quot-quot-notation-work/td-p/72...

 

In my test, the difference will be in the screens as below:

vjefferni_1-1641364444999.png

 

vjefferni_0-1641364428949.png

 

Hope this helps.

 

Best regards,

Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.

 

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,004)