web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Routing a record to a queue item from a custom entity

(0) ShareShare
ReportReport
Posted on by 274

Hello,

I have a workflow that creates a record (custom entity) when certain criteria are met. Once the record is created, I would like to move those records to a queue. So I have created a Queue and in my workflow I added the step Command Action to route to the Queue Item. On the set properties I choose the Queue I created but on the target I don't have the option to pick the custom entity. The only options I have is Email, Case, and Appointment. How do I configure the target to route to my custom entity?AddToQueue.PNG

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Rawish Kumar Profile Picture
    13,758 on at

    Hi,

    Did you define your new custom entity as "Activity Entity"? Only Activities can be added to a queue. so just dont need a custom entity but rather a custom activity entity.  While creation using the option below you can create a new activity entity.

    note : you cannot change it now - you will have to delete  and re-create the entity.

    33614.1.png

  • MituCRMing Profile Picture
    274 on at

    I tried that but I still don't see the custom entity I created in the target, the options stays the same  Case, Appointment, Email

  • Suggested answer
    Rawish Kumar Profile Picture
    13,758 on at

    okay , looks like this custom workflow associated with this workflow takes only case, appointment and email inputs. you will have to change your custom workflow or create a new one which accept the new custom entity as input parameter and within code adds it to the queue.

    docs.microsoft.com/.../sample-create-custom-workflow-activity  

  • MituCRMing Profile Picture
    274 on at

    How do I change the custom workflow to point to the custom entity?

  • Dynamics Objects 365 Profile Picture
    550 on at

    Hi,

    According this MS official doc, only All customizable entities can be enabled for queues. :( --> https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/queue-entities

    As a workaround, I would suggest to link this Custom Entity to an Customizable entity (e.g. Task, etc. ) and move that task to the Queue. This way you will be able to track your custom entity inside a queue.

  • MituCRMing Profile Picture
    274 on at

    I followed what it was suggested above and create a custom workflow activity, I registered the dll and added that into my workflow however I am getting the below message when I test the workflow

    "There is no active transaction. This error is usually caused by custom plug-ins that ignore errors from service calls and continue processing."

      at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.CreateInternal

    (Entity entity, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode, Dictionary`2 optionalParameters)

      at Microsoft.Crm.Extensibility.OData.CrmODataExecutionContext.CreateOrganizationResponse(Entity entity)

      at Microsoft.Crm.Extensibility.OData.CrmODataServiceDataProvider.CreateEdmEntity(CrmODataExecutionContext context, String edmEntityName, EdmEntityObject entityObject, Boolean isUpsert)

      at Microsoft.Crm.Extensibility.OData.EntityController.PostEntitySetImplementation(String& entitySetName, EdmEntityObject entityObject)

      at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute[TResult](ILogger logger, EventId eventId, ActivityType activityType, Func`1 func)

      at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute[TResult](ILogger logger, XrmTelemetryActivityType activityType, Func`1 func)

      at lambda_method(Closure , Object , Object[] )

      at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters)

      at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)

    --- End of stack trace from previous location where exception was thrown ---

      at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

      at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext()

    --- End of stack trace from previous location where exception was thrown ---

      at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

      at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()

    --- End of stack trace from previous location where exception was thrown ---

      at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

      at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__1.MoveNext()

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans