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

undefined

(0) ShareShare
ReportReport
Posted on by 150

I have created a environment variable which have url of sharepoint.

But when I am trying to use that in app it is throwing error.

I am using this code.
Launch("dev_report")
Categories:
  • cdwhite Profile Picture
    1,069 Most Valuable Professional on at

    Hi @Moira0509 ,

    Firstly, what type of environment variable have you configured, is it a Data Source or Text type that you're storing the SharePoint URL in?

    Secondly, how are you retrieving the value of the Environment variable and is it the Current Value or Default Value that you need?

  • Verified answer
    v-hanytian-msft Profile Picture
    Microsoft Employee on at

    Hi @Moira0509,

     

    We made a sample for you.

    vhanytianmsft_3-1692259379386.png

     

    Canvas App:

    vhanytianmsft_2-1692259244983.png

    Launch(LookUp('Environment Variable Values','Environment Variable Definition'.'Schema Name' = "tina7_SPTest").Value)

    vhanytianmsft_1-1692259228999.png


    Hope this will help you,

    Best Regards,
    Tina

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard