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

/drives/{id}/items/{id}/listItem/fields #2093

Closed
denis3119 opened this issue Jul 23, 2024 · 2 comments
Closed

/drives/{id}/items/{id}/listItem/fields #2093

denis3119 opened this issue Jul 23, 2024 · 2 comments
Labels
no-recent-activity status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close type:question An issue that's a question

Comments

@denis3119
Copy link

image

v5.xx
I used code like this to update the fields:
var sourceFieldValueSet = new FieldValueSet(); sourceFieldValueSet.additionalDataManager().putAll(fields); getGraphClient() .drives(microsoftOauthProperties.getDriveId()) .items(id) .listItem() .fields() .buildRequest() .patch(sourceFieldValueSet);

PATCH https://graph.microsoft.com/v1.0/drives/{id}/items/{id}/listItem/fields

v6.xx
patch was removed.

So, how can I patch the columns via Microsoft Graph?

@denis3119 denis3119 added the status:waiting-for-triage An issue that is yet to be reviewed or assigned label Jul 23, 2024
@rkodev rkodev removed their assignment Aug 23, 2024
@Ndiritu
Copy link
Contributor

Ndiritu commented Sep 2, 2024

Hi @denis3119

Please consider accessing the list item fields via the sites() root URL path:

graphServiceClient.sites().bySiteId("").lists().byListId("").items().byListItemId("").fields().patch();

However, you can still overwrite the request URL & use your preferred endpoint using withUrl:

graphServiceClient.sites().bySiteId("").lists().byListId("").items().byListItemId("").fields().withUrl(
    "https://graph.microsoft.com/v1.0/drives/{id}/items/{id}/listItem/fields"
).patch(null);

@Ndiritu Ndiritu added type:question An issue that's a question status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close and removed status:waiting-for-triage An issue that is yet to be reviewed or assigned labels Sep 2, 2024
Copy link
Contributor

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-recent-activity status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close type:question An issue that's a question
Projects
None yet
Development

No branches or pull requests

3 participants