CRM 4 Custom Workflow Activity Editor Bug/Fix
Description
Using the workflow editor, if you open up a custom workflow activity and being to edit a step, if that step contains a dynamic value (slug); it duplicates it. First time you add the dynamic value it works fine, after you save and close then reopen that step you'll see the dynamic value displayed twice.
eg:
before save and close: {SomeField(Entity)}
after save and close: {SomeField(Entity)}{SomeField(Entity)}
Reproduce
1. Create a custom workflow activity or compile and register one of the supplied workflows from CrmSdk 4.0*
2. Restart IIS
3. Create a new Workflow
4. Add a new workflow step (The custom activity you created/registered in step 1)
5. Assign a dynamic value to one of the properties
6. Save & Close
7. Reopen the step, you'll see the dynamic value/slug displayed twice
Fix
*Unsupported*
1. Go into the server, SFA\workflow\ folder
2. Open customactivityform.aspx in notepad
3. Find line 31 and 34, you'll see that the same call is duplicated twice, comment one of them out