![]() ![]() You can find more examples about passing optional parameters to asynchronous methods in the Office Add-ins platform in Asynchronous programming in Office Add-ins. options.asyncContext can be of any type that your callback method expects.įor example, you can define options.asyncContext as a JSON object that contains one or more key-value pairs. If the callback requires any extra parameters, you can specify them in the optional options.asyncContext parameter. The callback method takes an AsyncResult object as an output parameter that provides any status, error, and returned value from adding the attachment. ![]() This callback method is optional and is invoked when the attachment upload has completed. If there are tasks that depend on the action to complete, you should carry out those tasks in a callback method. Depending on the original location and size of the attachment being added, the asynchronous call may take a while to complete. These are asynchronous methods, which means execution can go on without waiting for the action to complete. addItemAttachmentAsync: Attach an Outlook item.addFileAttachmentFromBase64Async: Attach a file using its base64 string.You can attach a file or Outlook item to a compose form by using the method that's appropriate for the type of attachment. The Office JavaScript API provides several APIs you can use to manage an item's attachments when the user is composing. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |