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

GetAttachment fails if id is passed as an argument #406

Open
bladerunner2020 opened this issue Aug 10, 2022 · 1 comment
Open

GetAttachment fails if id is passed as an argument #406

bladerunner2020 opened this issue Aug 10, 2022 · 1 comment
Assignees

Comments

@bladerunner2020
Copy link

I need to load attachments by their IDs.

   const attachmentId = ... // getting an attachment id somehow
   exch.GetAttachment(attachmentId).then((res) => {
     // expecting to get here
  })

This code fails as I need to pass it an attachment structure or array of attachment structure. I think it would be nice if you add check for type of first argument - if it's a string or array of strings, use

  ExtensionMethods_1.ArrayHelper.AddRange(request.AttachmentIds, attachments);
@gautamsi
Copy link
Owner

I believe this is due to missing "Operator Overloading" in javascript as compared to c#

@gautamsi gautamsi self-assigned this Aug 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants