Skip to main content

Notifications

Announcements

No record found.

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 270

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

  • MituCRMing Profile Picture
    MituCRMing 270 on at
    RE: Routing a record to a queue item from a custom entity

    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()

  • RE: Routing a record to a queue item from a custom entity

    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
    MituCRMing 270 on at
    RE: Routing a record to a queue item from a custom entity

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

  • Suggested answer
    Rawish Kumar Profile Picture
    Rawish Kumar 13,756 on at
    RE: Routing a record to a queue item from a custom entity

    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
    MituCRMing 270 on at
    RE: Routing a record to a queue item from a custom entity

    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
    Rawish Kumar 13,756 on at
    RE: Routing a record to a queue item from a custom entity

    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

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,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,436 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans