Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8852279
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T13:21:34+00:00 2026-06-14T13:21:34+00:00

I have installed a flash app in my sandbox environment. Flash app will refresh

  • 0

I have installed a flash app in my sandbox environment. Flash app will refresh the current page while performing some activity but it refreshes production environment as url(https://na7.salesforce.com/XXXXX) is hardcoded. I need to refresh the sandbox page not the production page. What would be the sandbox url?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T13:21:35+00:00Added an answer on June 14, 2026 at 1:21 pm

    You can’t guarantee what the instance (“na7” part) of your sandboxes will be. You can ask SF support to refresh your full sandboxes to different instances (useful when one has some performance problems you can still test on another) but I doubt they can assure you “ok, your sandboxes will always land on “cs5” or something.


    Your best option would be to configure the parameters passed to flash object to use relative path if possible.

    So /006... instead of full https://na7.salesforce.com/006... when you’re viewing Opportunities, /apex/SomeVisualforcePage etc etc. That way URLs will work both in sandbox and production.

    If you don’t want to do that, you have several other methods:

    Apex: check out the URL class:

    String baseUrl = URL.getSalesforceBaseUrl().toExternalForm();
    

    Visualforce: use trick with partner URL

    {!LEFT($Api.Partner_Server_URL_260,FIND('.com',$Api.Partner_Server_URL_260)+4)}
    

    JavaScript – kind of last resort I think.
    Piece of code that looks at the location object, for example location.hostname.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple JSP web-page/site. I have installed Jetty on a Flash-Drive, and
I have installed the Adobe Flash Player 10 debugger for Firefox 3 and I
1.i dont have iphone, so may i know does iphone come with pre-installed flash
If you visit a site that uses Flash, and you don't have Flash installed
I have to create an app to play an swf/flash file, having zoom and
I have a .net client app that needs to play some content (images, movies,
I have Adobe Flash CS5 but haven't a clue how to convert videos. I
I have installed the debug flash player for my mac, as explained in various
I have the restful_authentication plugin installed in a rails app, with a sessions_controller that
I'm currently using this to detect if the visitors have flash installed or not

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.