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 / Copilot Studio / Set a variable as integer
Copilot Studio
Answered

Set a variable as integer

(0) ShareShare
ReportReport
Posted on by 47

Hello,

 

I'm trying to set a variable as integer from copilot.

I used the expression int(Topic.Variable) as it works similarly for string/arrays but the topic gives me an error.

 

Does anyone have a solution?

 

Thank you

error int.png
I have the same question (0)
  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @saraxcopilot ,

     

    Please try:

    vbofengmsft_0-1710816228838.png

    Int(Text(Topic.Var1))

     

    Best Regards,
    Bof

     

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 676

#2
Vish WR Profile Picture

Vish WR 268

#3
Haque Profile Picture

Haque 267

Last 30 days Overall leaderboard