I can't seem to add glossary terms in one of my da...
# getting-started
c
I can't seem to add glossary terms in one of my dataset's column. I used the graphql batchAddTerms and term_urns as the glossary urn, resource urn as the column's urn, then sub_resource_type as DATASET_FIELD. Am I missing something?
g
GQL looks like this
Copy code
mutation batch_add_terms {
    batchAddTerms (input: {
         termUrns: ["urn:li:glossaryTerm:Classification.Confidential"]

       resources: [{
           resourceUrn:"urn:li:dataset:(urn:li:dataPlatform:bigquery,calm-pagoda-323403.jaffle_shop.customers,PROD)"
            subResourceType:DATASET_FIELD,
            subResource:"customer_id" 
       }
       ]
    })
}
thanks bear 1
a
The only potential problem I see is that you are providing the term as text ("Classification.Confidential") instead of providing its GUID. How do you create the glossary terms? If I create one via the UI, it gets a unique GUID. Testing with your query, but providing the corresponding GUID instead works fine.
thanks bear 1
g
using GQL
Copy code
mutation createGlossaryTerm {
  createGlossaryTerm(input: {
    id: "test-glossary-gql4"
    name: "test-glossary-gql4"
    description: "Glossary created from GQL"
  }
  )
}