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 / Set value is not worki...
Power Apps
Answered

Set value is not working on App-OnStart method

(0) ShareShare
ReportReport
Posted on by 314

Hi,

I am not sure why is getting red line in my set function, any help?

Thanks!

usaman45_0-1681937286422.png

 

Code:

If(
Not(IsBlank(Param("ProjID"))),
Set(
varProjectID,
Value(Param("ProjID"))
));

Categories:
I have the same question (0)
  • mmollet Profile Picture
    3,187 on at

    what is the error you are getting on this one?

  • usaman45 Profile Picture
    314 on at

    Why am I getting red lines under the code? 

  • mmollet Profile Picture
    3,187 on at

    That is kind of what I'm asking for. If you hover your mouse over it, you should get an error message. If i knew what that error message was it would help determine the issue and possibly the resolution.

  • usaman45 Profile Picture
    314 on at

    usaman45_0-1681942470125.png

     

     

  • Verified answer
    Cat Schneider Profile Picture
    488 Most Valuable Professional on at

    It looks to be an issue of you setting the variable here as a number data type, but elsewhere in your app the variable is set as a different data type; could be text, a record, table or array. Where else in your app do you either use this variable or reset it? 

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 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard