OPEN_LINK

Use the OPEN_LINK function to navigate to an external URL when a user runs a script in a planning item. For example, configure a button that opens a website.

Syntax #

The following syntax opens an external URL.

OPEN_LINK("https://example.com")

Replace "https://example.com" with the URL you want to open. Include the URL in quotation marks.

Example #

The following example opens the Microsoft website.

OPEN_LINK("https://www.microsoft.com")

Configure a button to open a website #

  1. Open the planning item and create or edit an action parameter.
  2. Set Type to Action.
  3. Enter a name, such as Open Website.
  4. In Description, explain what the action does. For example, enter: Opens the specified website when the user selects the button.
  5. Under Interface Options, set Interface Type to Button.
  6. Select Enable Script.
  7. Under Button Configuration, set Label to Open Website.
  8. Add an action, select the root scope, and enter the following formula script:

    OPEN_LINK("https://www.microsoft.com")
  9. Save the button configuration, and then select Update.

    When a user selects Open Website, the planning item opens the specified URL in the browser.

Microsoft, Azure, Copilot, Excel, Fabric IQ, Microsoft Entra, Microsoft Fabric, Microsoft Teams, OneLake, Outlook, Power Automate, Power BI and SharePoint are trademarks of the Microsoft group of companies. IBCS is a registered trademark of IBCS Association. All other trademarks are the property of their respective owners.

This community is operated independently by Lumel. Nothing on this site constitutes a representation or warranty by Microsoft.