
Announcements
Hello All,
Thanks for seeing my Post.
I built a Custom Connector with Post Method that returns a Valid JSON Response, as I can see the result in the Connector Test.
Here is my Code of Custom Connector
// Extract the JSON string
string jsonSubstring = responseString.Substring(startIndex, endIndex - startIndex + 1);
/*JObject json = JObject.Parse(jsonSubstring);*/
// Example case: response string is some JSON object
var result = JObject.Parse(jsonSubstring);
// Wrap the original JSON object into a new JSON object with just one key ('wrapped')
var newResult = new JObject
{
["wrapped"] = result,
};
response.Content = CreateJsonContent(newResult.ToString());
But when I add my custom Connector in the Canvas App , Im getting a Error Saying the Response is Invalid JSON, please send correct format.
How do I capture the POST response from the Connector in Canvas app?
How to refresh the Connector in canvas App after code changes in Connector?
Thanks