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

How to connect ulr with special characters #221

Closed
maciekwolus opened this issue Aug 5, 2022 · 2 comments
Closed

How to connect ulr with special characters #221

maciekwolus opened this issue Aug 5, 2022 · 2 comments
Labels
question Further information is requested

Comments

@maciekwolus
Copy link

Hi,

I want to connect the URL with the expanded version of an object. For the object, I used a line like this and it worked:

self.serviceSession.entity_sets.ServiceRequestCollection.get_entities()

Now the object name is not "ServiceRequestCollection". It's now "ServiceRequestCollection?$expand=ServiceRequestAttachmentFolder" and it doesn't work that way. Is there a possibility to download expanded files using pyodata?

Thanks

@phanak-sap
Copy link
Contributor

Hi @maciekwolus.

I am sorry, but the provided info is so scarce and so confusing that I cannot find anything actionable, nor even properly understand the question. What exact problem you have?

  • start with docs around querying trough Navigational properties - https://github.com/SAP/python-pyodata/blob/master/docs/usage/querying.rst#get-a-count-of-entities-via-navigation-property
  • also. check this unit test for expanded queries. Does it solve your question?
  • If not, please provide metadata file and post sample code reproducing the bug. Test first that the your expected URL works correctly, then provide actual and expected.
  • You can either post it here to the issue or create a pull request to this repository https://github.com/phanak-sap/pyodata-issue-files
  • with failing python code where I can start with debugger, the question will become better and much more specific :)
  • I totally don't understand the "Is there a possibility to download expanded files using pyodata?" sentence. Maybe yes, maybe not, I don't know nothing about the structure of your service and the ServiceRequestCollection or ServiceRequestAttachmentFolder data in responses. But if the file is provided as stream, there may be a problem - see enhancement Support OData Edm.Stream #164.

@phanak-sap phanak-sap added the question Further information is requested label Aug 7, 2022
@phanak-sap
Copy link
Contributor

Closing for no response from issue author, if still valid, please re-open with more information as described in my previous comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants