BizTalk Server - Setting the Subject of Emails sent from Orchestrations

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server > August 2004 > Setting the Subject of Emails sent from Orchestrations





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Setting the Subject of Emails sent from Orchestrations
Richard

2004-08-23, 5:50 pm

Microsoft gives a snippet for setting the subject of an email sent out from
an orchestration. They offer (from
http://msdn.microsoft.com/library/d..._email_ymxa.asp):

SP_Mail(Microsoft.XLANGs.BaseTypes.Address) =
"mailto:myManager@myCompany.com";
msgApprovalRequest(SMTP.Subject) = "Please review this Expense Report";

for setting the mailto and subject. However, using the same structure,
BizTalk 2004-XLANG/s is giving me the error "'<msgName>':message construction
must be done in a construct block." I believe my message is properly
constructed and I can successfully receive it, ues information from it, and
email its content to users. I just cannot seem to change the subject. I
know many people send emails using orchestrations so I have to believe this
can be done pretty easily. I just don't know what I'm missing.

Any thoughts?

Richard.
Richard

2004-08-23, 5:50 pm

Of course, as soon as you post a message for help, you end up figuring it out
yourself! I'll post my problem's answer for the benefit of anyone else who
is working on this when they are way too tired and have drank way too much
coffee.

My problem was quite simple, and now the message makes perfect sense. I was
attempting to execute the described lines in an Expression construct. I
moved it into the Construct Message construct with an embedded Message
Assignment construct and my XLANG/s errors vanished. I hate when the simple
things trip you up!

Richard.

"Richard" wrote:

> Microsoft gives a snippet for setting the subject of an email sent out from
> an orchestration. They offer (from
> http://msdn.microsoft.com/library/d..._email_ymxa.asp):
>
> SP_Mail(Microsoft.XLANGs.BaseTypes.Address) =
> "mailto:myManager@myCompany.com";
> msgApprovalRequest(SMTP.Subject) = "Please review this Expense Report";
>
> for setting the mailto and subject. However, using the same structure,
> BizTalk 2004-XLANG/s is giving me the error "'<msgName>':message construction
> must be done in a construct block." I believe my message is properly
> constructed and I can successfully receive it, ues information from it, and
> email its content to users. I just cannot seem to change the subject. I
> know many people send emails using orchestrations so I have to believe this
> can be done pretty easily. I just don't know what I'm missing.
>
> Any thoughts?
>
> Richard.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com