cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
t1agow
Advocate I
Advocate I

Getting value of rating

Hello everyone,

 

I want to put rating with 5 stars in PowerApps and get the value of the stars (1,2,3,4 or 5) in sharepoint list (I just want to get the number)
But, on update always show "record value expected"

I tried so many ways and it doesn't work

 

How can I get that value?

 

Thank you in advance

1 ACCEPTED SOLUTION

Accepted Solutions
TheRobRush
Super User
Super User

Tested the rating on my side

 

TESTPOWERAPPS is list name, and Priority column is set to number.

 

Placed a rating control, left it as default, name is Rating1

 

Placed a button below it with the onselect 

 

    Collect(
        TESTPOWERAPPS,
        {
            Title: "RatingTest",
            Priority: Rating1.Value
        }
    )

 

Functions as expected, every time i hit submit it entered a splist entry with the title RatingTest, and the value in Priority matched the number of stars I had selected. 

 

Perhaps your splist column is not set to a number?

_____________________________________________________________________________________
Like my answer? - Hit that Thumbs Up. Resolved the Issue? - Hit Accept as Solution.
This helps others find solutions to future issues!

View solution in original post

3 REPLIES 3
TheRobRush
Super User
Super User

Have a look at this blog post

 

Storing Star Rating in SP List column 

 

 

_____________________________________________________________________________________
Like my answer? - Hit that Thumbs Up. Resolved the Issue? - Hit Accept as Solution.
This helps others find solutions to future issues!

Hello @TheRobRush 

 

I saw this post. But still not working

 

I got "Expecting record value"

TheRobRush
Super User
Super User

Tested the rating on my side

 

TESTPOWERAPPS is list name, and Priority column is set to number.

 

Placed a rating control, left it as default, name is Rating1

 

Placed a button below it with the onselect 

 

    Collect(
        TESTPOWERAPPS,
        {
            Title: "RatingTest",
            Priority: Rating1.Value
        }
    )

 

Functions as expected, every time i hit submit it entered a splist entry with the title RatingTest, and the value in Priority matched the number of stars I had selected. 

 

Perhaps your splist column is not set to a number?

_____________________________________________________________________________________
Like my answer? - Hit that Thumbs Up. Resolved the Issue? - Hit Accept as Solution.
This helps others find solutions to future issues!

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 (4,606)