Demian Kasier
Demian Kasier

Reputation: 2533

How to select a field as input value in a CRM 2011 custom workflow activity

I need the end user to select which field he wants updated. Is there an option to have a lookup input parameter that let's the user select a field of the current entity?

I need it to perform operations on the value of the selected field.

Upvotes: 0

Views: 773

Answers (4)

Mauro De Biasio
Mauro De Biasio

Reputation: 1146

I strongly suggest you to use a dialog to complete this. You can set the stage, the parameter and based on the situation the values to insert. Also you can execute workflows from the dialog itself.

Upvotes: 0

Josh Painter
Josh Painter

Reputation: 4111

If the list of fields isn't very big, you could add an optionset to the form with those field names and then your workflow could have If conditions based on that optionset.

Upvotes: 1

Adi Katz
Adi Katz

Reputation: 548

If the record already exists, consider registering a plug-in on the update message. When in update the request InputParameter["Target"] contains only dirty fields changed by the user.

Instead of creating a list of fields you can create another (role) form to limit the fields the user can edit on the form.

Upvotes: -1

Guido Preite
Guido Preite

Reputation: 15138

As far as I know there isn't a custom type to handle a list of fields (or a list of strings) as InputParameter for a Custom Workflow Activity.

The (ugly) alternative is to use a string parameter where the user enters the field name.

Upvotes: 1

Related Questions