Skip to main content

C# Create_Item example

  • November 5, 2019
  • 4 replies
  • 4434 views

I have a mutation that works perfectly via the graphql tool but cannot format the expression in C#. I tried many different approaches and I’m not looking for help in how to build a C# string with the following mutation.

Thanks ahead of time for the help!!

mutation
{
create_item (
board_id: 299576913
, group_id: “status32”
, item_name: “Test Monday API V2-2”
, column_values: “{"text5":"Chris", "site1": {"index":"2"}}”)
{
id
}
}

This topic has been closed for replies.

4 replies

  • New Participant
  • November 6, 2019

Hi cpaquette,
try this i think i could help you

Thank you


  • Author
  • New Participant
  • November 6, 2019

Thank you for the reply. I can get the mutation to work when I remove the column_values portion. Below is the formatted query:
“{ “query”: “mutation {create_item(board_id: 299576913, group_id: “status32”, item_name: “Test API V2”, column_values: “{\\“text5\\”:\\“User A\\”,\\“site1\\”:{\\“index\\”:\\“2\\”}}”) {id}}” }”

Any idea as to why this is failing???


dipro
Forum|alt.badge.img
  • Leader
  • November 12, 2019

Hey @cpaquette – to try and isolate the issue, can you try sending these column values to an existing item using the change_multiple_column_values mutation?


  • Participating Frequently
  • February 11, 2020

hey I got the same issue! if you have found solution can you post the exact string that you pass becase i think there s something wrong with escaping the string