Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating objects #1

Closed
fingask opened this issue Apr 30, 2020 · 2 comments
Closed

Creating objects #1

fingask opened this issue Apr 30, 2020 · 2 comments
Labels
enhancement New feature or request invalid This doesn't seem right wontfix This will not be worked on

Comments

@fingask
Copy link

fingask commented Apr 30, 2020

Having an issue using create_object when creating a new object with properties specified.
This seems to be related to get_value_id checking for a matching owner_id on the property being added before it will return an id:

  correct_owner = item["OwnerID"] in owner_ids
            if same_name and correct_owner:
                return item["ID"]

In this instance the property being added references an object that is not the owner of the object being created so I am unable to create the new object.

I'm new to the m-files web api so my apologies if I am missing in my reasoning?

@Kravalg
Copy link
Owner

Kravalg commented Apr 30, 2020

At the moment, the library does not support the creation of objects. We would be grateful if you would prepare a PR with the appropriate functionality.

@Kravalg Kravalg added enhancement New feature or request invalid This doesn't seem right wontfix This will not be worked on labels Apr 30, 2020
@fingask
Copy link
Author

fingask commented May 1, 2020

Apologies, had two windows open and logged in wrong one - must be all this time I'm spending indoors!

@fingask fingask closed this as completed May 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request invalid This doesn't seem right wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants