Hello Monday.com dev forum!
As the title suggests, I am trying to integrate Monday.com with Dialpad to send SMS Text messages. Only users at my current company will use it. My plan is to use Salesforce as both the integration endpoint as well as the database layer as that is where most of my experience is. The idea is that my workflow recipe will have an Authorization URL that is my Salesforce endpoint that will decode the JWT token and retrieve the userId, recipeId, and backToUrl. Then it will redirect to the Dialpad OAuth URL where the user will then login. Once they have successfully logged in, Dialpad will redirect to a different Salesforce endpoint where it will get the Dialpad API Key. The Salesforce endpoint will then save the userId+recipeId and API Key as a key value pair that can be accessed whenever the Workflow Recipe is fired. This seems like it would work in theory but I am running into some problems.
When Dialpad succesfully authenticates and redirects to my endpoint, I am not able to access the backToUrl that takes the user back to the Monday.com board where they can finish configuring their workflow block. There is not much I am able to customize on the Dialpad side in terms of response body as it only returns a code that can be exchanged for an API Key. I could insert the backToUrl into the database first, but after Dialpad authentication there is no way to match to the backToUrl that was just saved.
Am I missing anything obvious? Is this method just not feasible? I’ve been banging my head against this for days so any help is appreciated!