Hi!
I have automated (or am attempting to create items in a board) using a Powershell script. The item name is based off of data from a SQL Server query.
It so far works perfectly well, except for the fact that accents (é,è,à, etc) cause trouble when sending the webrequest.
$url = “https://api.monday.com/v2/”
$hdr = @{}
$hdr.Add(“Authorization” , “Secret_key!”)
$hdr.Add(“Content-Type”,“application/json; charset=utf-8")
###This mutation will NOT work: item_name = é
$bodytxt ={“query”:“mutation{create_item(board_id:1234,item_name:"é "){id}}”}’
###This mutation will work just fine: item_name = e
$bodytxt ={“query”:“mutation{create_item(board_id:1234,item_name:"é "){id}}”}’
$response = Invoke-WebRequest -Uri $url -Headers $hdr -Method Post -body $bodytxt
What modification is required for this to work? I can use the graphQL playground and make it work just fine with accents, but the webRequest simply ‘bounces’.
Many thanks for any help!