Skip to content

Cannot read x_opencti_workflow_id from entity #860

Open
@NathanC-TC

Description

@NathanC-TC

Description

When using vulnerability.read, I cannot return the x_opencti_workflow_id. Instead it errors with {'name': 'GRAPHQL_VALIDATION_FAILED', 'error_message': 'Cannot query field "x_opencti_workflow_id" on type "Vulnerability". Did you mean "x_opencti_stix_ids"?'}

Environment

OpenCTI version: 6.5.3
pycti version: 6.3.4

Reproducible Steps

Steps to create the smallest reproducible scenario:
x_opencti_workflow_id = self._client.api.vulnerability.read(customAttributes="x_opencti_workflow_id", id=octi_vuln_data['id'], json_logging=False)

Expected Output

Return x_opencti_workflow_id

Actual Output

{'name': 'GRAPHQL_VALIDATION_FAILED', 'error_message': 'Cannot query field "x_opencti_workflow_id" on type "Vulnerability". Did you mean "x_opencti_stix_ids"?'}

Metadata

Metadata

Assignees

No one assigned

    Labels

    buguse for describing something not working as expectedneeds more infouse to identify issue needing additional info to be triaged or solved

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions