Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Balram Narad 37 posts 89 karma points
    Jan 05, 2016 @ 11:57
    Balram Narad
    0

    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) {

            //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;
        }
    

    any help would be most appreciated.

    Bal

Please Sign in or register to post replies

Write your reply to:

Draft