ALTERYX INSPIRE | Join us this May for for a multi-day virtual analytics + data science experience like no other! Register Now

Alteryx Connect Discussions

Find answers, ask questions, and share expertise about Alteryx Connect.
SOLVED

Set several tags with Alteryx Connect API

RafaelZincke
5 - Atom

Hi,

 

I am trying to set several tags on a Connect Server via the API. I am able to change one tag per XID (table) but I cannot figure out how the JSON needs to be structured to update/add more than one tag per XID.

 

My currently working JSON string for one tag looks like this:

 

{"RecordID":"359","fields":[{"code":"manualtag","value":"c1ef9b2c-ee38-45f9-81b4-29ecc9ff7f5e"}],"xid":"SampleXID100"}

 

However, I would like to have this tag also in there:

 

{"RecordID":"360","fields":[{"code":"manualtag","value":"d40afb58-41d7-4d51-8978-449ee4a521b3"}],"xid":"SampleXID100"}

 

Where "SampleXID100" is a placeholder for the same XID in this example for posting.

 

I am thankful for any comment!

 

Best,

Rafael

 

OndrejC
Alteryx
Alteryx

Hi @RafaelZincke ,

just comma separated array with values of the labels should work for you. So something like this one

 

{
  "fields": [
    {
      "code": "manualtag",
      "value": "xf3:83620d71-0eec-4e4f-9b17-719bc097c403,xf3:4ac019a2-a33a-4cce-b895-8c37b935a234,5efd0874-1e9f-4b53-8631-a74993fab423"
    }
  ],
  "xid": "b3JjbC9vcmFjbGUuY2xvdWQuc2VtYW50YWNvcnAuY29tL29yYTEyL29yYWNsZV9Mb2FkZXJzLzEyMzQ1Njc4OQ__"
}

 

Hope this helps,

Ondrej

RafaelZincke
5 - Atom

Thank you! I set the comma at the wrong place.