Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Custom Workflow: Input Properties Empty

(0) ShareShare
ReportReport
Posted on by

Good day,

I am attempting to start with a very simple custom workflow step. Here's the code:

using System;
using System.Activities;
using Microsoft.Xrm.Sdk;
using Microsoft.Xrm.Sdk.Workflow;

namespace HTTPRequest
{
    public sealed partial class HTTPRequest : CodeActivity
    {
        protected override void Execute(CodeActivityContext executionContext)
        {
            IWorkflowContext context = executionContext.GetExtension<IWorkflowContext>();
            IOrganizationServiceFactory serviceFactory = executionContext.GetExtension<IOrganizationServiceFactory>();
            IOrganizationService service = serviceFactory.CreateOrganizationService(context.UserId);

            this.response.Set(executionContext, this.url.Get(executionContext));
        }

        [RequiredArgument]
        [Input("InputURL")]
        [ReferenceTarget("")]
        public InArgument<String> url { get; set; }

        [Output("Response")]
        public OutArgument<String> response {get; set;}
    }
}

But when I build and register the plugin I get an empty "Set Properties" window:
empty.PNG

Any ideas about why this is happening?

Thanks,

       BGS

*This post is locked for comments

  • Community Member Profile Picture
    on at
    RE: Custom Workflow: Input Properties Empty

    Hey Ivan,

    Creating a new standard C# DDL project did the trick!

    Thanks for all the help.

  • Verified answer
    Ivan Ficko Profile Picture
    1,380 on at
    RE: Custom Workflow: Input Properties Empty

    Never tried that way, I'm always creating standard C# DLL project and adding a simple C# class when I'm starting new CRM workflows project.

    I just noticed that you created your class as "public sealed partial class" and I create my classes as public class, you can try to remove that sealed partial part.

  • Community Member Profile Picture
    on at
    RE: Custom Workflow: Input Properties Empty

    Hmmmm, neither of those suggestinos seem to be helping.

    I wonder if this could be a problem with how I setup the project?

    I started by making a Dynamics 365 Workflow Activity Project:

    class.PNG

    Then I added a new Dynamics 365 Workflow Activity class:

    class.PNG

    Is this the correct process I should be following?

  • Ivan Ficko Profile Picture
    1,380 on at
    RE: Custom Workflow: Input Properties Empty

    Everything else looks good. You can try to switch lines

    [RequiredArgument]
    [Input("InputURL")]

    Like

    [Input("InputURL")]
    [RequiredArgument]


    And final suggestion if the upper one does not help is to try creating a class with the same code and different name than this one and try to deploy it like that. It will not be the first time that thing like that will fix the issue, I experienced it few times and I still don't know what is causing that issue.

  • Community Member Profile Picture
    on at
    RE: Custom Workflow: Input Properties Empty

    Removing the reference target line didn't seem to change anything.

    Sounds good, thanks for the tip.

  • Ivan Ficko Profile Picture
    1,380 on at
    RE: Custom Workflow: Input Properties Empty

    Try to remove line

    [ReferenceTarget("")]

    from your input parameter declaration.

    And just a friendly suggestion is that you define input and output parameters above Execute function just to make it more readable for other developers that will collaborate on this project.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,865 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,723 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans