Skip to main content
Question

Updating Lookup Item via GraphQL Mutation

  • November 10, 2024
  • 1 reply
  • 50 views

Forum|alt.badge.img

I have an ETL process that’s run on-demand and refreshes master data referenced by several Ataccama catalog items. There’s about 60 lookup items that are created from catalog item attributes that I need to update immediately following the master data refresh. I know there’s a lookup item “Update” button in the Ataccama web interface and a method to schedule refreshes; however, I haven’t been able to find a way to update lookup items on-demand, such as through a GraphQL mutation.

Is there an available mutation for updating lookup items on-demand, or another method that could be utilized?

1 reply

OGordon100
Ataccamer
Forum|alt.badge.img
  • Ataccamer
  • November 19, 2024

Hello!

Here is the mutation you will need - the gid is the gid of the lookupitem as seen in the page URL. <customer>.<env>.ataccama.online/dq/lookupItem/1008d15e-0000-7000-0000-000000966f5e/ would have a gid of 1008d15e-0000-7000-0000-000000966f5e for example

mutation CreateLookup($gid: GID!) {
createLookup(lookupItemId: $gid) {
name
status
__typename
}
}

Hope this helps!

Oli