Creating an external link using monday session information

Hi all,

I would like to be able to dynamically generate a link to an external website, probably within a monday board, that would contain (whether it would be sent thru get or post) session information such as the monday user id and account id of the logged in user, so when the user clicked the link, the external website would receive that information and be able to pre-fill a form on the external website with their monday user id and account id.

Of course the link itself would be different for each user, as each user has a different id.

I’m imagining something like a button that a user could press on their board that would take them to the website in question, or even a url link which could be custom-generated for each user that they could click on somewhere in their board.

Is such a thing possible? Can anyone point me in a direction of how to do this, or at least how to grab a logged-in user’s session information to use in a different site?

Thanks for your help.

Hey @Msh
You can do that with a custom integration:
https://developer.monday.com/apps/docs/quickstart-integration

hi @Msh

Two different solutions here:

  1. create an integration app and use the userId / accountId or anything else you need to build the url and update a link column through the API. In this scenario the link column will display the link to the other website and when the user clicks on it a new browser window will show that website. You need to have a trigger to instruct the app to build that URL (e.g. a status change)

  2. create a boardview app and do something like below in the render() function of the React app. In this example the url from the iframe is build in the componentDidMount() React function.

      return (
        <div className="App" style={{ overflow: "hidden" }}>
          <iframe
            src={this.state.logzio}
            style={{ width: "100vw", height: "100vh", border: "none" }}
            title="Log Viewer"
          ></iframe>
        </div>
      );
1 Like

It looks like you need a custom integration that starts with a Button on the item, like so:

Screen Shot 2022-09-13 at 16.13.29

This could then be configured by clicking on Setup here…

…but then you’d need to build a custom integration which allows you to add the URL of the button and collect/replace the user_id from monday.com.

So your custom integration would be something like…

When button clicked,

Then open web address (e.g. https://example.com/users/{user_id}) and replace {user_id} with the user_id from monday.com

Your integration would need to query the monday API to get the user_id / email_address, or whatever it is, like so:

query {
  me {
    id
    email
    name
  } 
}