E-mail Submit Problem

L

Lee Vance

I've got a button that first publishes to a SharePoint Forms library. That
park is working.

Then, the next rule switches the form to a view that just shows some text
and a link to the form. After that, it is supposed to e-mail the active view
as an e-mail (not as an attachment but as viewable only).

It does e-mail to the correct e-mail address with the correct subject, but
the e-mail has not contents whatsoever. If I remove the rule that switches
views and just have it e-mail the active view it does show the current view
in the e-mail.

Now, I do have form rules that switch the view based on the user role, and
the view that's used for the e-mail contents is not in any of those rules.

Am I missing a rule in between the rule that switches views and the one that
e-mails the active view? Could my role-based rules on form open cause a
conflict with viewing the e-mail contents view?

I don't know what I am doing wrong at this point. Thanks.
 
G

Greg Collins

If I recall correctly, I ran into a similar situation and found the answer
on a Microsoft site (don't recall the URL). The problem was that the view
switch did not generate the actual view before the email was sent, resulting
in a blank email. Their solution was to break the view into two sections --
one for the entry and one for the email. Rather than switch views, hide the
edit portion and show the email portion, send the email, and then flop the
visibility back to normal. This did solve the problem.

However, if you have multiple views that need to sent the same email view,
you might be able to pull this off using the OnContextChange event handler
in conjunction with the OnSwitchView event handler to note that the view
switched to the email view, then in code, send off the email and switch the
view back.

Good luck!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top