Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Answered

Button handling

Posted on by 55

I have queue in that I have 2 system views one is1.all email items and 2.all case items.

Now I am placing a button on queue item as remove button.it have to remove only emails and this remove button should not allow cases items to get delete from the queue.how can I handle this by real time workflow?

  • Suggested answer
    lathareddy Profile Picture
    lathareddy 55 on at
    RE: Button handling

    It worked thanks

  • Suggested answer
    XM-22040801-0 Profile Picture
    XM-22040801-0 11 on at
    RE: Button handling

    Hi,

    Ok, to prevent deletion of a case from a queue item, you can do that:

    - Create a real time workflow for "Queue Item"
    - Set "Record is deleted" only in "Options for Automatic Processes"
    - Add a condition: "Object (Case)" => "Created On" => "Contains Data"
    - In Then, Add a "Stop workflow" step
      - Set status to "Canceled"
      - Set Properties to a message like "Remove a case from a queue is not allowed".
    - Save and Activates.

    Workflow overview:

    pastedimage1681840298549v1.png

    Condition:

    pastedimage1681840311202v2.png

    Stop workflow step:

    pastedimage1681840325851v3.png

    In action, when i try to remove a case from a queue:

    pastedimage1681840456121v4.png

  • lathareddy Profile Picture
    lathareddy 55 on at
    RE: Button handling

    I don't want to delete any record from queue.In all email view if I select any record and if I click on remove then it should remove from queue. For the case view it should not remove any record.

  • Suggested answer
    XM-22040801-0 Profile Picture
    XM-22040801-0 11 on at
    RE: Button handling

    Hi,

    If you want to do this via a workflow, you can follow these steps:

    - Download Dynamics Workflow Tools: https://github.com/demianrasko/Dynamics-365-Workflow-Tools/releases
      Because a workflow cannot delete a record, this solution is required.
    - Import the managed solution.
    - Create a real time workflow for queue item.

    pastedimage1681758669435v1.png

    - Add a condition: If Object (Email): "Created On" contains data.
      This condition will ensure that only emails are removed.

    pastedimage1681760640501v1.png

    - In Then: Run Delete record from mydyncrmWorkflowTools
    - Set properties:
       - Delete Using Record URL: True
       - Record Url: Look for => Queue Item => Record URL(Dynamics) => Add => OK
    pastedimage1681760366083v4.png

    Your workflow should look like this:

    pastedimage1681760702992v1.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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans