![]() |
Help forwarding form programmatically
Hi All,
We have a custom form published in the Organizational Forms folder on our Exchange 2003 server and set to not send the form definition. The form gets submitted to an approver and has approve and disapprove buttons. What we would like to do is when the approve or disapprove button is pressed, to send the form on to another person. The problem is that the form errors stating that the person approving does not have rights to send on behalf of... Is there a good way around this? I know we cannot programmatically alter the FROM address to get around it. Is it possible to programmatically forward the message instead? I have tried replacing Form.Send with Form.Forward but nothing appears to happen. The message never arrives at it's destination, does not give an error and no message is shown in Sent Items. Is there a simple way to replicate the entire message content into a new message that can be sent rather than building it all manually again? Or call up a new copy of the original form passing all the values to it? What is the best approach? It seems that this must be a relatively common situation. Thanks. |
Help forwarding form programmatically
Sounds like you're not using the Forward method correctly:
Set fwd = Item.Forward fwd.To = " fwd.Send Make sure you have the Forward action on the custom form's (Actions) page set to use the published form. -- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "Trent" wrote in message ... Hi All, We have a custom form published in the Organizational Forms folder on our Exchange 2003 server and set to not send the form definition. The form gets submitted to an approver and has approve and disapprove buttons. What we would like to do is when the approve or disapprove button is pressed, to send the form on to another person. The problem is that the form errors stating that the person approving does not have rights to send on behalf of... Is there a good way around this? I know we cannot programmatically alter the FROM address to get around it. Is it possible to programmatically forward the message instead? I have tried replacing Form.Send with Form.Forward but nothing appears to happen. The message never arrives at it's destination, does not give an error and no message is shown in Sent Items. Is there a simple way to replicate the entire message content into a new message that can be sent rather than building it all manually again? Or call up a new copy of the original form passing all the values to it? What is the best approach? It seems that this must be a relatively common situation. Thanks. |
Help forwarding form programmatically
I think that is the problem. I had no info on the usage of Item.Forward and
was just jumping in to help a co-worker who was trying to make this work and have not been trying it myself, just making suggestions. Thanks Sue. "Sue Mosher [MVP-Outlook]" wrote in message ... Sounds like you're not using the Forward method correctly: Set fwd = Item.Forward fwd.To = " fwd.Send Make sure you have the Forward action on the custom form's (Actions) page set to use the published form. -- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "Trent" wrote in message ... Hi All, We have a custom form published in the Organizational Forms folder on our Exchange 2003 server and set to not send the form definition. The form gets submitted to an approver and has approve and disapprove buttons. What we would like to do is when the approve or disapprove button is pressed, to send the form on to another person. The problem is that the form errors stating that the person approving does not have rights to send on behalf of... Is there a good way around this? I know we cannot programmatically alter the FROM address to get around it. Is it possible to programmatically forward the message instead? I have tried replacing Form.Send with Form.Forward but nothing appears to happen. The message never arrives at it's destination, does not give an error and no message is shown in Sent Items. Is there a simple way to replicate the entire message content into a new message that can be sent rather than building it all manually again? Or call up a new copy of the original form passing all the values to it? What is the best approach? It seems that this must be a relatively common situation. Thanks. |
Help forwarding form programmatically
The object browser is your friend. Press F2 in Outlook VBA and look things up there.
-- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "Trent" wrote in message ... I think that is the problem. I had no info on the usage of Item.Forward and was just jumping in to help a co-worker who was trying to make this work and have not been trying it myself, just making suggestions. Thanks Sue. "Sue Mosher [MVP-Outlook]" wrote in message ... Sounds like you're not using the Forward method correctly: Set fwd = Item.Forward fwd.To = " fwd.Send Make sure you have the Forward action on the custom form's (Actions) page set to use the published form. "Trent" wrote in message ... Hi All, We have a custom form published in the Organizational Forms folder on our Exchange 2003 server and set to not send the form definition. The form gets submitted to an approver and has approve and disapprove buttons. What we would like to do is when the approve or disapprove button is pressed, to send the form on to another person. The problem is that the form errors stating that the person approving does not have rights to send on behalf of... Is there a good way around this? I know we cannot programmatically alter the FROM address to get around it. Is it possible to programmatically forward the message instead? I have tried replacing Form.Send with Form.Forward but nothing appears to happen. The message never arrives at it's destination, does not give an error and no message is shown in Sent Items. Is there a simple way to replicate the entire message content into a new message that can be sent rather than building it all manually again? Or call up a new copy of the original form passing all the values to it? What is the best approach? It seems that this must be a relatively common situation. Thanks. |
All times are GMT +1. The time now is 04:36 AM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com