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

Unable to Retrieve Deleting User Email from IChangeItem DeleteObject Event in GetChanges() #1625

Open
1 task done
Joaolfelicio opened this issue Mar 7, 2025 · 0 comments

Comments

@Joaolfelicio
Copy link

Joaolfelicio commented Mar 7, 2025

Category

  • Domain model extension

Describe the domain model extension

We have a function (Function A) that invokes GetChanges() and processes only IChangeItem changes. Each change is published to a single queue, where another function (Function B) picks it up, enriches the data, and distributes it to a different system.

The issue arises when handling DeleteObject events. In Function B, we need to retrieve the email of the user who deleted the item for enrichment.

Challenges Faced:

  • Initially, we attempted to fetch the recycle bin item by matching the deleted time with the change time. However, this approach fails when multiple users delete different files within the same second.
  • We considered filtering further using ServerRelativeUrl from IChangeItem, but it is always an empty string.
  • Another approach involved using Editor and EditorEmailHint from IChangeItem, and avoiding the need to query the RecycleBin, but these values are also always null or empty.

Model

Model: IChangeItem
Properties: DeleteObject, ServerRelativeUrl, Editor, EditorEmailHint

APIs

API: https://<tenant>.sharepoint.com/sites/<site>/_api/web/lists(guid'<listId>')/GetChanges()

Additional Information

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

No branches or pull requests

1 participant