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

How to update Canvas Application input value from SharePoint list?

Hi,

 

I have a SharePoint list created, the data is updated via the code below which is added to the button OnClick event.

 

 

Patch(
    dataRecordSet,
    LookUp(
        dataRecordSet,
        Title=1
    ),
    {
        input_1: Checkbox_1.Selected.Value,
        input_2: Radio_button_1.Value
    }
)

 

 

_ Unsaved document - Pencil_30_000070.png

I checked the SharePoint list and the updated value is present, however whenever I refresh the app, the new value isn't stored in the checkbox_1 state. How can I update the input states for all the elements on app start based on the SharePoint list values?

 

1 ACCEPTED SOLUTION

Accepted Solutions
SebS
Memorable Member
Memorable Member

@Gana_Dube 

 

What do You have in the Default Property of both of the inputs?

 

If both are just set to false, apply this to them

 

CheckBox

 

 

Lookup(dataRecordSet, Title = 1,input_1)

 

 

 

Radio

 

 

 

Lookup(dataRecordSet, Title = 1,input_2)

 

 


If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.

View solution in original post

2 REPLIES 2
SebS
Memorable Member
Memorable Member

@Gana_Dube 

 

What do You have in the Default Property of both of the inputs?

 

If both are just set to false, apply this to them

 

CheckBox

 

 

Lookup(dataRecordSet, Title = 1,input_1)

 

 

 

Radio

 

 

 

Lookup(dataRecordSet, Title = 1,input_2)

 

 


If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.

@SebS Thank you very much, worked perfectly 👍

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.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

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 (6,248)