web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Header issues with cus...
Power Automate
Unanswered

Header issues with custom connector

(1) ShareShare
ReportReport
Posted on by 3

I'm encountering issues while creating a custom connector to interact with the on-prem SMAX API for retrieving requests. The API requires a specific header: Cookie with the value SMAX_AUTH_TOKEN=token.

I've successfully implemented this using policies and environment variables, following the approach outlined in this thread: https://community.powerplatform.com/forums/thread/details/?threadid=4566e65f-9d05-490d-96cf-51f09f0c2436. The environment variables are updated every hour. 

Using the policy-based approach works initially, but once the token expires, the connector stops functioning. The only way I've found to restore functionality is by manually updating the custom connector. It seems like the environment variables are only fetched when the connector is updated.

I've also attempted to automate the connector update through the API as outlined here: https://learn.microsoft.com/en-us/connectors/custom-connectors/solution-custom-api#update-a-connector, but unfortunately, this doesn't seem to refresh the environment variables.

Has anyone encountered a similar issue or found a solution for automatically refreshing the connector when the token expires? Any guidance would be greatly appreciated!

Categories:
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 997

#2
Valantis Profile Picture

Valantis 810

#3
Haque Profile Picture

Haque 642

Last 30 days Overall leaderboard