0

I'm trying to create a work flow that will send an email to the users in the contact field for the page that the initial link was followed from.

In other words, a user clicks a link on page ../top/sub/pages/page1.aspx which takes them to a form here: ..top/lists/feedback/newform.aspx. Once they submit the form on the top level page it starts a workflow (at ..top/lists/feedback/) which will email the users in the meta data for the referrer page (../top/sub/pages/page1.aspx) and finish by deleting the feedback item.

My problem lies in trying to email the correct user. I have tried to make a work-flow on the sub-site, but it seems like the work-flow has ZERO access outside of its directory.

My next idea would be to try and send the user as a parameter (as part of the form) using a script, but I'm unsure of how to access the information I need.

How would I access the page's contact user? Am I even on the right track?

ps. I dont have access to the server and therefore am unable to use visual studio

4

1 回答 1

1

可能有一些肮脏的解决方法。

  1. 为您添加一个隐藏字段顶部/列表/反馈/
  2. 添加一个委托控件,将联系人存储在用户来自的页面上,即在用户会话中(或 SharePoint 或 DB 中的某处),并将控件放置在页面 ../top/sub/pages/ 上(或将其放置在任何地方但让它只在页面上工作)
  3. 在列表 ..top/lists/feedback/ 中添加一个 itemeventreceiver,它获取委托控件保存的内容并将其插入到 ..top/lists/feedback/newform.aspx 中创建的项目的隐藏字段中
  4. 使用 wotkflow 中的隐藏字段。

我希望您可以接受它或阅读我的答案产生自己的想法。祝你好运!

于 2012-04-09T13:31:47.263 回答