Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8888133
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T21:58:09+00:00 2026-06-14T21:58:09+00:00

I have created a workflow with approval and reject process. whenever the document is

  • 0

I have created a workflow with approval and reject process.
whenever the document is approved it works fine but when rejected
the process does not get rejected and the task is reassigned.
I have used sequential workflow and on rejection i have used code activity
to update the process and then the terminate activity. It shows as rejected
but reassigns the task. Any Suggessions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T21:58:10+00:00Added an answer on June 14, 2026 at 9:58 pm

    I have used Visual studio workflow. and this what happens at the rejection process.

    enter code hereSPSite mySite = new SPSite(TaskDetails);
            SPWeb myweb = mySite.OpenWeb();
            if (TasksListstitle == "Request Form")
            {
                SPList myList = myweb.Lists["Request Form"];
                SPListItem myListItem = myList.GetItemById(TaskItemID);
                myListItem["Document Status"] = "Request Rejected";
                myListItem.Update();
            }
            if (TasksListstitle == "Contract Forms")
            {
                SPList myList1 = myweb.Lists["Contract Forms"];
                SPListItem myListItem1 = myList1.GetItemById(TaskItemID);
                myListItem1["Document Status"] = "Document Rejected";
                myListItem1.Update();
    
            }
    

    After rejection i have used terminate activity process. sometimes Its getting reassigning without getting rejected and sometimes it gets rejected and terminate activity is called. I think there might be some problem with the ID.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a workflow created in Sharepoint designer that works fine when manually triggered.
I have created an Automator workflow service (not Automator application!) under Mac OS X
I have a customed approval workflow created in visual studio 2010, after executing the
I have created a workflow service to handle some business process at my company.
I have created a workflow, and Im running it via WorkflowInstance.Run(). This workflow has
I have created a custom workflow activity that copies attachments from a case to
I have a workflow that is created in code and a variable of type
I have a sql server table: CREATE TABLE [Workflow].[MilestoneDate]( [MilestoneDateId] [int] IDENTITY(1,1) NOT NULL,
I have created a SharePoint workflow in visual studio , I have extended this
I have created custom workflow and successfully deployed it on Alfresco. I just copied

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.