CMS word authoring workflow email message - help
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Content Management Server > CMS word authoring workflow email message - help




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    CMS word authoring workflow email message - help  
sunireddy


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-26-05 01:47 AM

Does anybody know how to generate workflow email message from word
authoring, not web.

I used "Customizing Microsoft Content Management Server 2002 Authoring
Connector"(http://msdn.microsoft.com/library/d...ms_CustAuCo.asp)
instructions. I took the second approach of creating a new application
for the authoring connector server component. The sample code to create
a new file and writing some dummy message to it works but if i include
the code to generate email it is giving
"Object reference not set to an instance of an object.   at
DOT.Workflow.OnSubmit()
pst =
Microsoft.ContentManagement.Publishing.CmsHttpContext.Current.Posting;
usrs = pst.Approvers(true);"

I think it is getting pst as null, can anybody help me please.

Thanks
Sunitha






[ Post a follow-up to this message ]



    Re: CMS word authoring workflow email message - help  
Stefan [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-26-05 01:47 AM

Hi Sunitha,

you should debug using VS.NET to see which object is null.

Cheers,
Stefan

--
This posting is provided "AS IS" with no warranties, and confers no rights

New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
----------------------


"sunireddy" <sunireddy@gmail.com> wrote in message
news:1114462521.391542.171330@z14g2000cwz.googlegroups.com...
> Does anybody know how to generate workflow email message from word
> authoring, not web.
>
> I used "Customizing Microsoft Content Management Server 2002 Authoring
>
Connector"(http://msdn.microsoft.com/library/d.../library/en-us/
dnmscms02/html/mscms_CustAuCo.asp)
> instructions. I took the second approach of creating a new application
> for the authoring connector server component. The sample code to create
> a new file and writing some dummy message to it works but if i include
> the code to generate email it is giving
> "Object reference not set to an instance of an object.   at
> DOT.Workflow.OnSubmit()
> pst =
> Microsoft.ContentManagement.Publishing.CmsHttpContext.Current.Posting;
> usrs = pst.Approvers(true);"
>
> I think it is getting pst as null, can anybody help me please.
>
> Thanks
> Sunitha
>







[ Post a follow-up to this message ]



    Re: CMS word authoring workflow email message - help  
sunireddy


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-26-05 01:47 AM

Hi Stefan,

Thanks for the quick reply, I already know that the object
pst =3D
Microsoft.ContentManagement.Pu=ADblishing.CmsHttpContext.Curren=ADt.Posting;
is null.

But not too sure how to go about it. The same workflow.cs works for web
edit. I am not too sure how to use the same for word edit cause for
this i am creating a new application and copying the workflow.cs and
global.asax.cs and global.asax and bin dir to the folder C:\Program
Files\Microsoft Content Management Server\Server\MCMS manually.

Thanks
Sunitha






[ Post a follow-up to this message ]



    Re: CMS word authoring workflow email message - help  
Stefan [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-26-05 07:48 AM

Hi Suni,

in a workflow event you should use e.Context as context and e.Target as the
current posting:

CmsContext context = e.Context;
Posting p = (Posting) e.Target;

Never user CmsHttpContext in a workflow event!

Cheers,
Stefan

--
This posting is provided "AS IS" with no warranties, and confers no rights

New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
----------------------


"sunireddy" <sunireddy@gmail.com> wrote in message
news:1114463813.974786.163360@f14g2000cwb.googlegroups.com...
Hi Stefan,

Thanks for the quick reply, I already know that the object
pst =
Microsoft.ContentManagement.Pu_blishing.CmsHttpContext.Curren_t.Posting;
is null.

But not too sure how to go about it. The same workflow.cs works for web
edit. I am not too sure how to use the same for word edit cause for
this i am creating a new application and copying the workflow.cs and
global.asax.cs and global.asax and bin dir to the folder C:\Program
Files\Microsoft Content Management Server\Server\MCMS manually.

Thanks
Sunitha







[ Post a follow-up to this message ]



    Re: CMS word authoring workflow email message - help  
sunireddy


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-26-05 10:53 PM

Hi Stefan,

I really appreciate your help, the solution you pointed out worked.

Thanks
Sunitha






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:33 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register