It sounds like you've tried a lot of different approaches to get your custom connector working with Appian. Here are a few troubleshooting steps and best practices that might help resolve the issue:
Check API Endpoint Configuration: Ensure that the API endpoint in your custom connector is correctly configured. The path should be relative to the host of the API you're trying to reach.
Authentication Methods: Since you've tried various methods, make sure the authentication type matches what the Appian API expects. If using API Key, ensure it's correctly set up in the Security section. For OAuth 2.0, verify that the redirect URI is correctly configured.
Connector Updates: Sometimes, changes made to custom connectors don't reflect immediately in PowerApps. Try removing the connector from your app and re-adding it to ensure the latest updates are applied.
Error Handling: Implement error handling in your connector to catch and diagnose issues. Use IfError()
to manage API failures and log detailed error messages.
Testing in Power Automate: Since your flow works, compare the configuration of the flow with your custom connector. Ensure that all headers, parameters, and authentication methods match exactly.
Custom Headers: If the Appian API requires specific headers, ensure they are correctly set in the custom connector. Using policies to set HTTP headers can be effective, but make sure the header names and values are accurate.
If the response is helpful to you, a like or mark as the correct solution. thank you so much!