Hey guys,
I want to integrate my own service via a Marketplace app — for example, add a button on the contacts page (or somewhere) to send an email or SMS to the user.
I'm having trouble creating my own Freedom UI page where I can embed a button like "Message the user". I need to somehow connect this Freedom UI page to my REST service.
Also, I want to pass a token so I know the request is coming from a specific client/user.
The docs only talk about OAuth for logging in somewhere with external services, but that's not what I need.
Can you help with this?
Basically, I need a place to store the token — something one-time setup in the app configuration, so when a user installs my app, they can enter their own tokens (API keys or whatever), and then every request from Creatio to my service includes that token so I can identify which client it comes from.
Thanks!
Like
Hello,
If I understand your requirement correctly, your implementation scenario looks approximately like this: a button in Freedom UI → triggers a server-side call → the server retrieves a token from configuration → calls your external REST service, including that token → returns the result back to the UI.
The external service call should be executed on the server side (via a custom web service or application service in your Marketplace app), not directly from the browser. This prevents exposing the token in client-side code and ensures better control over authentication, logging, and error handling.
If your main concern is token storage, the recommended approach is to create a system setting within your application package and store the required API key or token there. You can include a data installation script that creates this system setting automatically when the app is installed. This allows each client to configure their own token once during setup.
The token can then be safely retrieved on the backend using standard Creatio APIs (for example, via SysSettings) whenever your service call is executed.