Open Forum

 View Only
  • 1.  Changing the company through a url parmater?

    GOLD CONTRIBUTOR
    Posted Sep 01, 2020 01:36 PM

    Hi I want to change the company that a user is in through a URL parameter, wondering if this is possible through query string parameters or would require a custom page through AL code?


    #D365BusinessCentral #Technical  ​​​



    ------------------------------
    Benji Jasik
    Generate Capital
    ------------------------------


  • 2.  RE: Changing the company through a url parmater?

    NAVUG ALL STAR
    Posted Sep 01, 2020 10:25 PM
    I'm not sure if this is what you mean or if maybe you mean a URL for a cloud hosted version.  The path below works for an installed role tailored client.



    ------------------------------
    Lewis Rosenberg
    IT Manager
    Mars Fishcare
    Chalfont PA
    www.apifishcare.com
    ------------------------------------------------------------------------
    BCUG/NAVUG All-Star
    BCUG/NAVUG Board of Advisors, Chairperson
    BCUG/NAVUG Programming Committee

    Twitter: @RosenbergL
    LinkedIn: https://www.linkedin.com/in/rosenbergl
    ------------------------------------------------------------------------

    NAVUG/D365BC-Community Summit: https://na.usergroupsummit.com/home
    October 6-9, 2020
    Nashville, TN
    ------------------------------



  • 3.  RE: Changing the company through a url parmater?

    Posted Sep 03, 2020 08:13 AM
    Lewis's answer is the traditional RTC, if you are asking for the SaaS or browser based version the answer is 100% yes, thats actually how the system does the changing. You can simply add (it's already there) the company to the query string:

    ?company=[Company name here]

    Almost everything can be accessed through the querystring in the SaaS version, for example if I want to access a specific page I can add:

    ?Page=[Page ID here]

    Powerful ability to bookmark exactly where you want to be in your browser!

    ------------------------------
    Spencer Coulter
    Director, Business Applications

    RSM US LLP
    D: 515.281.9248 F: 515.471.5261
    E: [email protected]
    ------------------------------



  • 4.  RE: Changing the company through a url parmater?

    TOP CONTRIBUTOR
    Posted Sep 03, 2020 08:55 AM
    In web client we use: https://MyServer:8080/BC160/?company=Acme

    ------------------------------
    Mark Anderson
    Director of ERP Systems
    Clesen Wholesale
    Evanston, IL
    ------------------------------



  • 5.  RE: Changing the company through a url parmater?

    GOLD CONTRIBUTOR
    Posted Sep 03, 2020 04:18 PM
    thanks all, I got this working, and have integrated data between business central and Salesforce so that we can search and find business central data in salesforce and click through to BC to view the data!

    ------------------------------
    Benji Jasik
    Generate Capital
    ------------------------------



If you've found this thread useful, dive deeper into User Group community content by role