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

  • Home
  • SEARCH
  • 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 525247
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T08:39:06+00:00 2026-05-13T08:39:06+00:00

I am trying to develop a custom activity for my sharepoint workflow that would

  • 0

I am trying to develop a custom activity for my sharepoint workflow that would simplify some things. Within it I create a task, log, set a custom workflow status (setState) and some other things.

The problem I have is with the setState activity which needs the workflowToken that is available in main workflow only. I’ve found the following blog post: http://blog.sharepoint.ch/2009/11/how-to-set-correlation-token-property.html that explains how to create a property that you can then assign workflowToken to and that works well, however I don’t know how can I then set this token that I receive to the setState activity?

In designer it looks that I can’t and when I tried to do programmatically like this:

private void setState_MethodInvoking(object sender, EventArgs e)
{
            SetState s = (SetState)sender;
            s.CorrelationToken = WorkflowToken;

}

in the invoking call I get the following error:

This operation can not be performed at runtime.    at System.Workflow.ComponentModel.DependencyObject.SetValueCommon(DependencyProperty dependencyProperty, Object value, PropertyMetadata metadata, Boolean shouldCallSetValueOverrideIfExists) 
   at System.Workflow.ComponentModel.DependencyObject.SetValu

Any ideas?

  • 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-05-13T08:39:06+00:00Added an answer on May 13, 2026 at 8:39 am

    Duh, I completely overlooked the fact that in the article I’ve linked to the answer is already there:

    public CorrelationToken WorkflowCorrelationToken
    {
        get { return (CorrelationToken)base.GetValue(WorkflowCorrelationTokenProperty); }
        set
        {
            base.SetValue(WorkflowCorrelationTokenProperty, value);
            **sendEmail.CorrelationToken = value;**
        }
    }
    

    One sets the correlation property in the setter! Oh well!

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

Sidebar

Related Questions

I am trying to develop some general purpose custom ValidationAttributes. The fact that one
I'm trying to develop a custom spring namespace that works like the built-in 'p'
I am trying to develop a custom widget for camera preview. I would like
I'm trying to develop a custom control for asp.net that will have the following
I'm trying to develop a NSPopUpButton that will serve as a filter to some
I am trying to develop a custom gallery like application in which, i would
I am trying to develop a custom module for my d6 site that lets
I am trying to develop a custom movie player in iPhone using AVPlayer. But
I'm playing with maven plugins, specifically i'm trying to develop a custom maven plugin
Im trying to develop service that starts by bootup receiver if the wifi or

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.