Has anyone used GraphQL to create a new factsheet with a specific subtype? I cannot seem to get the syntax correct. Thanks in advance.
Page 1 / 1
Hi Jeff,
Here’s a small GraphQL snippet to create a new factsheet. Please check the variable value for Initiative in your metamodel. In environments that moved from metamodel v3 to v4, Initiative may still be Project.
Also, Subproject can be added using the "category" variable. I’ve attached the image of the GraphQL result for reference.
mutation {
createFactSheet(input: {name:"InititativeByGraphQL", type: Project},
patches: h {op: replace, path: "/description", value: "Test Description"},
{op: replace, path:"/lifecycle/active" value: "2024-12-13"},
{op: replace, path: "/category", value: "project"},
]
) {
factSheet {
id
name
rev
type
}
}
}
Regards,
Jorge Nader.
Reply
Login to the community
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.