Salesforce Instance URL

  • 1
  • Question
  • Updated 2 years ago
  • Answered
I do not want to change redirect URL for the several environment once the changes are deployed to UAT or Production.

How can I access the salesforce instance URL through skuid?
Photo of Hasantha Liyanage

Hasantha Liyanage

  • 1,446 Points 1k badge 2x thumb

Posted 2 years ago

  • 1
Photo of Amy Dewaal

Amy Dewaal, Official Rep

  • 8,200 Points 5k badge 2x thumb
Hasantha,

If you want to redirect to pages from within a Skuid page it's best practice to use a relative url because Skuid "knows" your salesforce url. For example, if you want to go to another Skuid page you can redirect to /apex/UI?page=SkuidPageName and you'll be redirected to that page within the org you're in. You can use a similar template for redirecting to standard pages; for example, I can redirect to /006/o to go to the Salesforce standard opportunities list page. By doing this you won't have to change redirect URLs when you change from a sandbox to production, as long as your Skuid page names that you redirect to are the same. Does that help?

Thanks!
Amy
Photo of Hasantha Liyanage

Hasantha Liyanage

  • 1,446 Points 1k badge 2x thumb
Yes indeed it is helpful. Thanks Ami appreciate it.
Photo of Andy Shipsides

Andy Shipsides

  • 430 Points 250 badge 2x thumb
Before moving to Brooklyn, I was able to get the Instance with merge fields, but this doesn't seem to work anymore.  

For instance {{$Model.Org.data.0.InstanceName}} would return the instance, but not anymore. Can you confirm this?

Andy
Photo of Amy Dewaal

Amy Dewaal, Official Rep

  • 8,200 Points 5k badge 2x thumb
Andy,

What version of Brooklyn are you on? That merge syntax should still work as long as you have a model on the page called Org that includes the InstanceName field:



Thanks!
Amy
Photo of Shmuel Kamensky

Shmuel Kamensky, Champion

  • 4,328 Points 4k badge 2x thumb
Cool trick. Didn't think of getting it through the Organization object.