So for this I need is the list and listItem to which the workflow is attached and the column that I need to update. I understand I can get this using "properties.ActivationProperties" but what I
get is null value for this. Can someone help me in this regard? I also tried reading the same in workflowStarted event but even there I get the value as null.
View Complete Post
I have a Workflow that is using an InfoPath task form. In the "FormEvents_Loading" method event handler I have some code that needs to run each time the form is opened. I recycle the App Pool and open the form the code runs perfectly, but
if I close and try to re-open the form the code is not run at all. I can then recycle the App Pool again and on the next load the code executes just fine. The code that is supposed to be run is a very simple statement to set a field value,
so I don't think it is interfering.
Does anyone know what this might be?
I have designed the infopath form(Init) and integrated with my state machine workflow. i want to access button click event (designed in Infopath form) in my workflow code.
Can you help me.
I am using a hosted workflow designer to allow users to create their workflows. I would like them to be able to execute the workflow in a 'Test' mode, so I am trying to pass a parameter that indicates it is test mode.
In addition to the workflow being run from the rehosted designer, it will also be getting executed by an automated Workflow Console Application. So when the workflow is executed from the rehosted designer, it should execute in test mode. When it is executed
from the console application, it should execute in production mode.
I thought I would just be able to pass a paramter indicating which mode to run it in, but the only way I can seem to get it to work is to have an Activity already on the workflow and setup the Argument for them through the designer and assign the expression
prior to run time. The problem is that the user starts out with a blank workflow with no activities on it. I do not know which activity the user is going to add to the workflow, and I don't want them to have to be able to figure out how to configure arguments.
It is an argument that should just always be there.
All the activities that I've made available to the user are inherited from a base class which inherits from NativeActivity. So is there anyway to dynamically bind the activities to the argument passed in at runtime in the base class?
I am invoking
I have a vb.net page that has an optional parameter. If a user enters data for that field, and clicks save, it saves fine via the stored procedure. HOWEVER, if the user changes their mind, and wants to erase the data they entered, they go to the text field, and delete the characters, and click save, but no matter what, the stored procedure will not save the fact that they erased the data (it won't set it back to NULL). If the user enters a space, the stored procedure will save the space, and if they enter different data, it will save the other data. I can't figure out how to get it back to letting them set it to Null? I think this is because it's an optional parameter, and the stored proc is used by several forms (Some of those forms do not include this parameter), but this form utilizes that optional paramater.
Here's my stored procedure...
CREATE PROCEDURE [dbo].
@BillingArrangementDetails varchar(200) = NULL, -----This is the parameter that can't seem to get set back to null if a user changes their mind and tries to erase the stored data...
SET BillingArrangementID = @BillingArrang
i have the event that calling my workflow to start,then this workflow when is completing must passing data to this event.
how i can call(and pass data to)event in sequential workflow programming?(in sharepoint2010,visual studio2010)
I cannot find a definitive answer for a very simple question. In SQL CE 3.5, I am attempting to execute the following:
using (var connection = new SqlConnection(""))
using (var command = connection.CreateCommand())
command.CommandType = CommandType.Text;
command.CommandText = "Select * From County Where CountyId = Coalesce(@Id,3)";
var dbParameter = command.CreateParameter();
dbParameter.ParameterName = "@