web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / $"..." Syntax and Error
Power Apps
Answered

$"..." Syntax and Error

(0) ShareShare
ReportReport
Posted on by 765 Super User 2024 Season 1

In case you are not aware there is a new string sytax for building strings with variables.  Where you used to do this:

"Total records: " & CountRows( colMyRecords );

-or-

Concatenate( "Total RecordsL ", CountRows( colMyRecords ) );

can now be expressed like this:

$"Total records: {CountRows( colMyRecords )}"

 

This works, that is until you save and reopen your app. When you do that, the above is being changed to:

ConcatenateTotal records: {CountRows( colMyRecords )}"

which obviously generates an error.

 

If someone from MS is seeing this, this is a bug. How should this be reported?

 

Thanks.

Categories:
I have the same question (0)
  • Verified answer
    v-yujincui-msft Profile Picture
    Microsoft Employee on at

    Hi @sperry1625 ,

     

    According to the blogthere is a known issue with this feature when used in some apps that also use service functions through a connector.  On save of the app, $” will be replaced with Concatenate.  The problem has been fixed in 3.22051 which will begin deployment shortly.

     

    In addition, maybe you could try to change your authoring version manually. It works on my side.

    vyujincuimsft_0-1651651650963.png

     

     

    Best Regards,
    Charlie Choi

  • sperry1625 Profile Picture
    765 Super User 2024 Season 1 on at

    @v-yujincui-msft I can change the Authoring version and it fixes the issue, but what I also noticed is the authoring version keeps reverting to the previous value on its own. I don't know why it keeps happening. 

    There are other changes in this authoring version, some Enum changes for ErrorKind, specifically DeletePermission -> DeletePermissions and EditPermission -> EditPermissions. I fix these in my code by adding the "s" and when the authoring version reverts, so do these changes.  This is very strange behavior overall.

     

    Any thoughts would be helpful.

     

    Thank you.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 379 Most Valuable Professional

#2
11manish Profile Picture

11manish 203 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard