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 / how to input variable ...
Power Apps
Answered

how to input variable into collection?

(0) ShareShare
ReportReport
Posted on by 24

hello im trying to put a variable i have

contextupdate({var1: 100})

 

into  a collection, but i cant do it. her eis what i have been trying

 

ClearCollect( mastercollection, { AMOUNT: "row 1", xtable: var1})

 

 

thank you

 

Categories:
I have the same question (0)
  • Jimmy Profile Picture
    Microsoft Employee on at

    That should be correct, so we may need more context to know what the issue is.

     

    1) Where did you put your UpdateContext?

    2) What error or unexpected behavior are you seeing when you call ClearCollect?

  • Verified answer
    hpkeong Profile Picture
    2,944 on at

    Hi

     

    I hope the attached screenshot may help you.

     

    Screenshot (109).png

  • tehdeadhand Profile Picture
    24 on at

    THANK YOU.

    thats perfect

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 > Power Apps

#1
Vish WR Profile Picture

Vish WR 839

#2
Valantis Profile Picture

Valantis 533

#3
Haque Profile Picture

Haque 412

Last 30 days Overall leaderboard