Skip to content

Defaulting to bussines_unit_id and created_by_user_id doesn't work when creating new version #6

@lukasz-mitka

Description

@lukasz-mitka

Tested on version 0.0.5.
This is how SDK tries to get it:

business_unit_id = asset['businessUnit']['id']

And here's the returned object.

[
    {
        '_cursor': '{"id":"<id>"}', 
        'id': '<id>', 
        'name': 'test ', 
        'createdAt': 
        '2023-06-20T08:28:03Z', 
        'ctx': {
            'asset': '<id>', 
            'businessUnits': ['<id>'], 
            'products': ['<id>']
        }
    }
]

Please fix getting business unit and add user_id.

P.S.


This assumes this will return only one asset. Please validate if there is in fact only one object returned.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions