I'm trying to create a custom workflow to redirect to different pages depending on what a user selects in the form. I am having problems accessing the field values my code below redirects to the google page unless I uncomment to line below out where it just goes to the normal thank you page.
// var fieldValue = fieldItem.ValuesAsString();
public override WorkflowExecutionStatus Execute(Record record, RecordEventArgs e)
{
//Loop over fields
foreach (var field in record.RecordFields)
{
//Record field item
var fieldItem = field.Value;
var fieldName = fieldItem.Field.Caption;
// var fieldValue = fieldItem.ValuesAsString();
} HttpContext.Current.Response.Redirect("http://www.google.co.uk/?");
return WorkflowExecutionStatus.Completed;
}
Issues with Custom Workflow
Hi
I'm trying to create a custom workflow to redirect to different pages depending on what a user selects in the form. I am having problems accessing the field values my code below redirects to the google page unless I uncomment to line below out where it just goes to the normal thank you page.
// var fieldValue = fieldItem.ValuesAsString();
public override WorkflowExecutionStatus Execute(Record record, RecordEventArgs e) {
any help would be most appreciated.
Bal
is working on a reply...