Adobe PDF forms submit opening outlook new email windows in Safe mode - vba

We have PDF forms. Business user fills data in the form and click on submit button which opens a new email window of Outlook with predefined email IDs and the form data attached as XFDF. Later user clicks on a button in outlook ribbon which calls the macros to sign, encrypt, send and then archive the message. It had worked successfully for 3 years.
The outlook ribbon button stopped calling Macro in November-2019. The ribbon button works perfectly if we open Outlook new email window directly from Outlook but was not working when opened from Adobe PDF forms. After alot of investigation, we have found that the Outlook new email window has been opening in Safe mode when Adobe PDF form invokes it, so the Outlook macros are not callable (new email window opens in safe mode even though outlook is in normal mode).
The forms use below code to submit PDF form data as XFDF to Outlook:
this.submitForm({cURL: cEmailURL, bAnnotations: true, aFields: aSubmitFields,cSubmitAs:"XFDF", cCharSet:"utf-8"}
Please help us to fix it.

I'd suggest checking the Trust Center settings in Outlook. Most probably somebody has changed the Macro Security to Notifications for digitally signed macros, all other macros disabled on the Developer tab in Microsoft Outlook.

Related

Outlook Addin (AppointmentOrganizerCommandSurface): First time user loads addin saves the open appointment item to calendar

I have written an Outlook web addin that uses a manifest which includes an AppointmentOrganizerCommandSurface extension point. So the addin shows in the ribbon for a new meeting/appointment item created by the user in desktop Outlook 2016.
The initial page loaded in the Outlook pane for the addin simply uses a javascript function (Office.onReady) to pull the email address of the user with loadItemProps(userProfile).
It seems that when a user runs the addin for the very first time the open appointment item is automatically saved to the calendar as soon as the manifest is loaded by Outlook. This does not happen after the first time use of the addin.
There is nothing else happening on the initial page other than the Office.onReady. So it looks like Outlook is doing this when the AppointmentOrganizerCommandSurface is initiated the first time.
Is there a way to prevent this from happening?

How to set custom add-in's pinned by default when user opens outlook

I want to set my outlook add-in pinned by default when user opens outlook. Is it possible
Yes, but the very first time user has to pin your add-in. Once pinned, your add-in will be automatically opened every time user opens Outlook.
There is no way for the add-in to pin by default without user interaction in Outlook.
If you believe this is a good feature to have, you can add the idea in https://outlook.uservoice.com

Office JS Outlook and update email body when composing a form

I would like to know if with Office JS Outlook addin, is it possible to set email body automatically when opening and composing an email.
I have already succeed to do it using addin commands and MessageComposeCommandSurface extension point element in the manifest.
However, my code is execution only after a click on a button in the ribbon.
Is it possible to execute my code automatically when the compose form is loading instead of having to click in a button to execute it?
Thanks a lot
This isn't a supported scenario.

Outlook office.js add-in task pane closing issue on Outlook for Mac

We have a Outlook add-in using add-in commands. We have a task pane with user info that includes a simple hyperlink with target set to "_blank". When the user clicks on this link a web page pops up. If the user subsequently closes Outlook, everything closes down fine on PC Desktop Outlook and OWA.
On Outlook for Mac however there is a problem. In that case when you close Outlook everything goes away, but our task pane stays on the screen like it is stuck. If you click on this task pane Outlook reappears but the inbox is blank, and only the task pane and the current email is showing. You must manually close the task pane and then Outlook for everything to close properly.
A few observations:
This only occurs for the main mail read command surface. If you pop open an email and open the task pane from the email's Ribbon, and click the link from there, the email closes fine.
If you open the task pane from the main mail read command surface but you do not click on the link on the task pane, then Outlook closes without issue.
It is like the task pane is holding on to a reference to the child window pop up, so Outlook for Mac cannot properly close the task pane.
Can anyone else reproduce this issue? Is opening a child window from a task pane not allowed, or is there something extra you must do to make this work?
Thanks.
Not seen this issue, it would be helpful if you can share some more info on this
- OS version
- Outlook version
- Manifest file used

VBA when user clicks Send as Attachement

My company has an issue with Outlook when it is triggered to open by Excel that causes Outlook to hang indefinitely when loading (an issue which cannot be easily fixed). We have a few workbooks with custom ribbons where we now check that Outlook is open first before allowing the user to send via email. The problem is that this doesn't account for users that still use the File > Save & Send > Send as Attachment.
I would like to know if anybody knows about a process by which I can add on a routine to the existing button that we could save as an Excel Add In on everyone's Excel that checks first if Outlook is open? I have the Outlook check written so I'm just needing help with finding a way to run it.
Any help is appreciated.
Alternatively you could disable Send as Attachment.
I wouldn't know what is important so I won't copy parts here.
How do you disable “Save and send” in Excel 2010 (in the File ribbon (called backstage in Office 2010)?
Disable the Send button in the Office Menu
You may consider repurposing the ribbon controls. See Temporarily Repurpose Commands on the Office Fluent Ribbon for more information.
Unfortunately the Backstage UI doesn't allow to repurpose controls from the XML markup. You may consider hiding the built-in UI and rebuilding it fully with custom commands. Thus, you will be able to handle the commands on your own. You can read more about that in the Introduction to the Office 2010 Backstage View for Developers article. Also see the Customizing the Office 2010 Backstage View for Developers article.