@Regalado, Dominique Thanks for reaching out. If the URL is being truncated at the “?” character, it’s likely because the “?” character is a reserved character in URLs and is used to indicate the start of a query string. If you need to include a “?” character as part of the URL itself you should URL encode it. In URL encoding, the “?” character is represented as “%3F”.
Here’s how you can do it in C#:
string url = "https://example.com/myendpoint?";
string encodedUrl = System.Net.WebUtility.UrlEncode(url);
The encodedUrl
variable will contain the encoded URL, which you can then use with the WebHookEventSubscriptionDestination
class to subscribe to events.
Please try and let me know incase of further queries, I would be happy to assist you.