Link to home
Start Free TrialLog in
Avatar of dickchan
dickchan

asked on

How to redirect to URL in Sharepoint workflow?

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.
Avatar of GeorgeGergues
GeorgeGergues

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.
ASKER CERTIFIED SOLUTION
Avatar of Ivan Padabed
Ivan Padabed
Flag of Belarus image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
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.
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.