Comments (7)
Prevent changing the APTask User when a Task is updated to a Queue would be hugely helpful!
I'm struggling with the same issue @etovar20 identified above. My business teams need to be able to select and assign Tasks from a shared Queue so this functionality is critical to us being able to fully implement Action Plans.
from actionplansv4.
We don't currently support queues, but I will try to add that feature. I don't know if that will be possible on the ActionPlans page, but we can prevent changing the APTask User when the Task is reassigned to a queue. I don't know how to change the APTask object to handle a queue, but that's a possibility. Thank you.
from actionplansv4.
Thank you all for your help. Yes, the Flow to update Task is the best way to go. I am working on a new release that will show the AP Task "Owner" as the Queue name if the related Task is owned by a Queue, and I'd like to prevent the user from editing that field unless the Task is owned by a User. It's complicated for other reasons, including the possibility that the parent record is owned by a Queue, in which case we cannot assign the APTasks to a Queue automatically - or at all. This may require a full rebuild of the APTask.User__c field eventually. For now, we will just make the following updates:
- If the parent record is owned by a Queue, assign the APTasks to the running user, and let customers make Flows to reassign the owner to a Flow. This avoids breaking Action Plans trying to assign APTasks to a Queue.
- If the Task is assigned to a Queue, do not update the APTask User (we may clear the field in a revision) and display the Queue name read-only on the Action Plan Display and Edit pages.
- Prevent loops where we update the Task owner, which updates the APTask owner, which updates the Task owner... you get the idea.
- Avoid hard-coding anything so we can handle orgs that do not allow assigning Tasks to Queues, just as we are handling orgs that do.
I would like to find a way to have Queues involved in APTasks, but that would require replacing some fields, and while that's possible, it's best to save for the next release.
Thank you all for your help and patience. This is a revision of code from 2011, and ALL the logic was in the Visualforce controllers. While that is largely still the case, much of the action has been moved to trigger handlers and utility classes, and the hope is that eventually we can move almost all the code to handlers/utilities and can use very lightweight LWC for creating/editing these records. Maybe I should do a write-up of the complexities, since there are many ways to get to the New Action Plan screen.
To summarize: I would suggest making that Flow when a Task is created, especially if it is created via a Flow using the Action Plan invocable Apex Flow action. You're given the APTask IDs, and can possibly query for the related Tasks and then update those.
from actionplansv4.
@etovar20 hey just created a workaround that I wanted to share - I have a flow that reassigns the Action Plan created Tasks; if I have it clear the Action Plan ID field I'm able to reassign to a Queue without causing the Apex Trigger to fire.
from actionplansv4.
@dschach sounds good, thank you for the response!
from actionplansv4.
@dschach @mhummell I thought of reassigning to the Queue and disassociating from the Action Plan, but then it will not update the action plan progress when the task(s) are completed, which is crucial to our business practice. I will stick to my workaround and wait for the next release.
Thanks for all of your help!
from actionplansv4.
@mhummell @etovar20
A new version has been released in BETA. You should be able to put it into a sandbox. I'm not sure if it will install over your old version, but please give it a shot:
https://login.salesforce.com/packaging/installPackage.apexp?p0=04t5f000000rKeiAAE
from actionplansv4.
Related Issues (20)
- Action Plan Automation, Flow via CreateActionPlanfromTemplate HOT 1
- Create Action Plan From Template Apex Action: Creates all Tasks immediately? HOT 2
- Hitting CPU Limits at only 200 tasks - ?
- Task Dependency Error when creating Automate Create Action Plan with a Flow
- Create Action Plan From Template apex action in flow creates tasks without dependencies HOT 1
- Tasks Created from different Action Plan HOT 1
- Email notifications not being received HOT 1
- Reopening a Controlling Task causes Dependent Tasks to be deleted
- Unable to delete existing Action Plan(s) with 'Delete Records' Flow element HOT 2
- LabsActionPlans.APTask: execution of AfterUpdate caused by: System.DmlException: Upsert failed. First exception on row 0; first error: REQUIRED_FIELD_MISSING, Required fields are missing: [Status]: [Status] (LabsActionPlans)
- System.LimitException: LabsActionPlans:Too many SOQL queries: 101
- Unable to Reassign Task to Queue
- OwnerId field not found HOT 3
- Action Plans Creator permissions don't have access to edit AP Template field HOT 3
- When creating a new AP template adding a new task wipes out the "assigned to" column HOT 1
- Unable to see Type in my layout for Action Plans or Action Plan Templates HOT 2
- Reminder Time resets
- "Cannot locate Apex Type for ID" HOT 6
- New Opportunity Action Plan - Not Loading Templates HOT 3
- OwnerID Error on Action Plan Related to Custom Object HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from actionplansv4.