Solved

How to redirect to URL in Sharepoint workflow?

Posted on 2011-09-29
6
2,283 Views
Last Modified: 2012-05-12
I want to redirect to a URL in workflow.
For example, if condition A, redirect to URL A
else if condition B, redirect to URL B.
Any idea how can do that?
Thank you.

Environment:
WSS 3, SPD 2007.
0
Comment
Question by:dickchan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 14

Expert Comment

by:GeorgeGergues
ID: 36899596
I don't think I understand your question .

The workflow (as defined by the SharePoint Desinger or Visual Studio ) does not use http post or get or redirect commands.

can you let me know what are you trying to do and put some screen shots , that would help.

Best of luck.
0
 
LVL 9

Accepted Solution

by:
Ivan Padabed earned 250 total points
ID: 36899790
SP workflows are executing out of web context. if you need to redirecr user based on value entered in NewForm or EditForm, you have to customize corresponded form to have your own OnSubmit handler; it should update an item and then perform redirect
0
 
LVL 5

Assisted Solution

by:tzarad
tzarad earned 250 total points
ID: 36903773
For what you intend to to you need to use event handler
see this link
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
LVL 9

Expert Comment

by:Ivan Padabed
ID: 36903828
wow tzarad, could you please write a code sample redirecting user browser in Event Receiver? It will be really appreciated, in my 6 year dev experience in SP I've never seen such approach. I believe that you didn't get the question right.
0
 
LVL 5

Expert Comment

by:tzarad
ID: 36904904
May be I didn't understand it :) But an option seems to be cancelling the event and redirect to a custom page link
One thing is sure, you will not be redirected by a workflow action, so you have to modify the code behind your New or Edit Item form using Sharepoint Designer if you don't want to use the redirect option in the cancelevent.
0
 
LVL 9

Expert Comment

by:Ivan Padabed
ID: 36910795
make sense, thanks for the link tzarad. but drawback here is that item will not be updated if we use CancelWithRedirect. Not sure if this is acceptable but it is an option.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Last week I faced a strange issue recently, i have deployed SharePoint 2003 servers for one project and one of the requirements was to open SharePoint site from same server. when i was trying to open site from the same server i was getting authentic…
When using a search centre, I'm going to show you how to configure Sharepoint's search to only return results from the current site collection. Very useful when using Office 365 with multiple site collections.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question