Skip to main content
Solved

How to get the DQ rule dimension name for each rule via API.

  • March 26, 2025
  • 2 replies
  • 34 views

Forum|alt.badge.img

I am able to fetch all the rule details like name, label, id, stewardship etc. But I am unable to get the dimension of the rule. I don’t find any entity relation between rule and DQ dimension.
 

Could anyone please help me on this?

Best answer by Adrian Anderson

Hi ​@Hanish N .

Does the following help?

query getRulesWithDqDimension {
rules(
versionSelector: {publishedVersion: true}
) {
edges {
node {
gid
publishedVersion {
name
description
implementation {
storedVersion {
dqDimension {
gid
storedVersion {
_displayName
}
type
}
}
}
}
}
}
}
}

If you’re looking for something else, please provide some more details.

Kind regards,
Adrian

2 replies

Forum|alt.badge.img+1

Hi ​@Hanish N .

Does the following help?

query getRulesWithDqDimension {
rules(
versionSelector: {publishedVersion: true}
) {
edges {
node {
gid
publishedVersion {
name
description
implementation {
storedVersion {
dqDimension {
gid
storedVersion {
_displayName
}
type
}
}
}
}
}
}
}
}

If you’re looking for something else, please provide some more details.

Kind regards,
Adrian


Forum|alt.badge.img
  • Author
  • Universe Traveller
  • April 4, 2025

Thanks ​@Adrian Anderson  for your response. It definitely helps me.