cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jharville
Helper V
Helper V

"This formula uses scope, which is not presently supported for evaluation" when using ThisItem.Comments

I am building a dynamic approval panel where a user inputs text for a comment box called "popOptionalComments." When I try to show the comments that the user inputted, in my Gallery, I am met with This formula uses scope, which is not presently supported for evaluation. Does anyone know how to fix this issue? 

 

promo1.PNGpromo2.PNG

 

When I put popOptionalComments.text, it'll show the same user input for all my records, which is not what I want...that's why I'm using ThisItem.Comments to get it to show the input for that record only.


Thank you!!

 

 

 

 

5 REPLIES 5
FabianAckeret
Solution Sage
Solution Sage

Hi @jharville 

 

Could you let me know what source you're using? And more importantly, could you show me a possible record of said source? Meaning, what columns do you have?

Also, what is the DataSource and Items property of your Form?

 

The approach with ThisItem.Comments was absolutely correct. So the issue needs to be somewhere else.

 

Kind regards,


Please click Accept as Solution if my post answered your question. Like my answer? Consider giving it a Thumbs Up. Others seeking the same answers will be happy you did.

Thank you for the response. My Gallery to show the display for my Approvals/Rejects is called "Gallery 2." My edit form is called "EditForm1." Notice that they are separate entities on the left-hand Tree View column.

 Response 1.PNG

Here are the DataSource and Item property of my Form. (varRecord is to save all of the items of the submission of the form)

Response 2.PNGResponse 3.PNG

Also, here is a look of my columns in my SharePoint list, which receive the patch from my code perfectly fine.

Response 4.PNG

krishnags
Responsive Resident
Responsive Resident

try disable "Explicit Column Selection" in Canvas App. In edit mode, File -> Settings 

I really do appreciate the response, but unfortunately, it doesn't work.

Hi @jharville 

 

Sorry for the late response. I was quite busy these days.

 

Since your gallery is showing the record of the form you're displaying, you basically have two elements showing the same thing. 

Is there a reason you have it this way? You could simply hide/unhide the comments/approval buttons in your EditForm as well. 

 

Either way, this does look correct. Where do you set varRecord? Perhaps the error is somewhere with this variable.

 

Kind regards


Please click Accept as Solution if my post answered your question. Like my answer? Consider giving it a Thumbs Up. Others seeking the same answers will be happy you did.

Helpful resources

Announcements
Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Government Carousel

New forum: GCC, GCCH, DoD - Federal App Makers (FAM)

In response to the unique and evolving requirements of the United States public sector, Microsoft has created Power Apps US Government.

Users online (1,949)