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 Pages / Concatenate number and...
Power Pages
Answered

Concatenate number and string in liquid

(0) ShareShare
ReportReport
Posted on by 80

Hi,

 

I need to be able to concatenate a number and a string from a fetchxml query.

 

I've tried

{%assign holeDiam = result['cr203_holesize'] | append: ' - ' | append: diamUnit.Label %}

 

but it didn't work.

 

How can I do this?

 

Thanks

 

Categories:
I have the same question (0)
  • Verified answer
    Fubar Profile Picture
    8,487 Super User 2026 Season 1 on at

    Convert the number to a string before putting it in the append.

    {% assign foo = 8 | string %} 
    {% assign Whoop = 'sometext' | append: '.js' | append: foo %}
    {{ Whoop }}
    
    Output:
    sometext.js8
    
    vs this:
    {% assign Whoop = 'sometext' | append: '.js' | append: 8 %}
    {{ Whoop }}
    will give a Liquid int cant conver to string error
    

     (you may possibly also be able to use Liquid capture rather than assign and possibly not have to convert to string)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
DP_Prabh Profile Picture

DP_Prabh 51

#2
rezarizvii Profile Picture

rezarizvii 35

#2
oliver.rodrigues Profile Picture

oliver.rodrigues 35 Most Valuable Professional

Last 30 days Overall leaderboard