Issue with setOptions for Notes in Freshservice App

Hi Team,

I’m working on implementing the setOptions method in my Freshservice app to control the note type (public/private). However, I’m facing issues with the method functionality, Below are my code and error response.

  • Scenario: I’m using the setOptions method to set the note type to “private” and hide the “public” option.
client.interface.trigger("setOptions", {
  id: "note",
  value: ["private"]
})
.then(function(data) {
  console.log("SetOptions success:", data);
})
.catch(function(error) {
  console.log("SetOptions error:", error);
});

Error:
{ "error": "invalid attribute" }

Expected Behavior: The note type should change to “private,” and the “public” option should no longer be visible.

Looking forward to your help!

Best regards,
Priyadharshini R.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.