(Trailhead Legend) AI is making it easier to simultaneously search through the huge repository of contextual, real-life knowledge stored in multiple places, including (but not limited to) Slack and multiple Salesforce orgs while ensuring existing security structures and guardrails remain intact.
#Trailhead #Automation#Automation48 utenti parlano di questo argomento
- Attività recente
- Data di creazione
- Consigliati
- Tutte le domande
- Domande con risposte accettate
- Domande senza risposta
- Domande senza risposta accettata
Hi Everyone,
I have a question about this automatic email that you get when the Task is completed (as the creator of that Task): is it something Salesforce native or can it be edited somewhere in the Setup?
I received a request from my users to edit the content of this email.
If it's not possible to edit it from the Setup, can it be done by code?
Thanks in advance!
#Tasks #Automation
2 lug, 20:03 Harsh is correct. However, you could disable the system-generated emails and use a Process Builder flow as an alternative.
I have a Flow that creates a Contact record from user input. I ran into an issue where I entered a name that was similar to the name of an existing Contact and the Flow threw a fault with the fault message "This error occurred when the flow tried to create records: DUPLICATES_DETECTED: This contact might be a duplicate. Please review before proceeding. Use one of these contact records instead?"
When this alert appears when creating a Contact manually, I can either close it and proceed or click a link to see the potential duplicates. In a Flow though, it's a fault and I'm not sure how to handle it such that my users can proceed.
Advice?
18 nov 2024, 18:16 You can write your duplicate rules to exclude the user running the flow. You can update the flow to run as System instead.
My org is looking to allow contracts to start on the 15th of the month, in addition to the 1st. We've worked through most of the process, but in testing we discovered an issue that comes up when a contract needs to be prorated.
For example, if we need to align a new contract with an existing renewal date on the account, the resulting term may be a partial month. Salesforce's standard Contract Term field only accepts whole numbers, so we can't accurately represent something like a 6.5-month term.
Other than creating a custom contract term field, how are other organizations handling this? I've done some searching but haven't found much discussion around how others have solved for this.
@* Sales Cloud - Best Practices * @* Sales Cloud - Getting Started * @* Salesforce Revenue Cloud *
29 giu, 20:40 I like the approaches shared above. One thing I'd also consider is making the renewal date
the primary business driver rather than the contract term itself.
If the renewal date is what ultimately matters, keeping the Contract Term as a whole number and calculating any partial period elsewhere can simplify both reporting and automation while staying within the platform's standard behavior.
I'd be interested to know whether this is primarily a reporting requirement or if another downstream process depends on the Contract Term field.
Hi,
we are looking into a way to automatically create PDF documents (certificates) filled with names, title and date of the training to multiple people via salesforce. We are using webinargeek to do the webinar and people registering through the webinargeek can afterwards receive a certificate of attendance. We know the you can integrate webinargeek with salesforce.
What is the best way to create and send these certificates?
29 giu, 11:21 Hi @Maria Zazzara you can do this entirely in a Flow. Once WebinarGeek pushes registrants into Salesforce, a Flow can generate a certificate per person and email it automatically.
CloudFiles Document Generation fits this case well. You build the certificate once as a Word or PDF template, and a Generate Document Flow action merges each attendee's name, title, and training date, runs in bulk across the whole registrant list, and saves the PDF to the record. Add a Send Email step in the same Flow to deliver each certificate automatically.
Conga works too. CloudFiles tends to be simpler to set up for a clean generate-and-send flow like this, and pricing is transparent. You can free trial too!
Parent Order → Order Line Items Scenario: If the total quantity of Order Line Items exceeds 100, send an approval request to a manager. Questions: • How will you calculate total quantity? • When should the approval process be triggered? • How will you avoid duplicate approval submissions?
18 giu, 15:16 Hi @Rohiŧ Vashishț -Order and order line item will be of type master detail relationship. Create a rollup summary field in order, then use that and trigger the flow
Our HR system is our gold source for user accounts, employee positions (ie Role), access control, and security within our organization. We have a manual process where an Admin has to look up the data in our HR system and update Salesforce. We would like to automate this for obvious reasons. Any advice or guidance on how to do it?
17 giu, 13:45 The HR system is irrelevant as we can't directly interact with it (due to security reasons). We have a nightly load that is dumped into a database that we can pull from that contains the structure we are looking for.
What I've noticed is that only the User Object is exposed to the Object Manager, and as a result, exposed for imports into Salesforce. If I want our HR data to maintain Roles, Permission Sets [Groups], Profiles, Public Groups, and Queues, how do I set that up?
My first thought was to create a custom object with our HR data that we would load, and then have Flows to modify the various Salesforce User Objects (if that is possible).
Hello,
Several flows have been deployed using devops center and after activation they fail with the following message:
We can't save this record because the ... This error occurred when the flow tried to create records: INVALID_CROSS_REFERENCE_KEY: Record Type ID: this ID value isn't valid for the user: . You can look up ExceptionCode values in the SOAP API Developer Guide. Error ID: 1953550904-187910 (514525920)ok up ExceptionCode values in the SOAP API Developer Guide. Error ID: 1953550904-187910 (514525920). You can look up ExceptionCode values in the SOAP API Developer Guide. Error ID: 1953550904-187913 (-169807181)k up ExceptionCode values in the SOAP API Developer Guide. Error ID: 1953550904-187913 (-169807181)
I´ve assigned the corresponding permission sets to my user however the error persists. Run Flows permission is active as well.
Am I missing something?
13 giu, 15:42 Record Type ID changes when you deploy a new record type from Sandbox to Production. I would recommend using Custom Metadata or Custom Settings to hold record type ids and replace them later after deployment with newly generated ids in Production.
Hi
I'm looking for some advice. I'm part of a big non profit and we are looking at changing the Default Workflow User to a generic user (so we set up a user thats name is just IT Admin with generic email address) instead of a real person user that we would need to change every time that real person leaves.
This is because we want to use this user for automated process that link to flows or that make notifications in chatter posts so that its distinguishable as being from automated process and not real person.
What I want to know is if this is consider bad practise or good practise? What does everyone else do in big companies, do you have generic use or o you just pick one Salesforce Admin to be the Default Workflow user?
(Please note: This has been recommended to us by 3rd party we work with but I want to validate it is the best action to take.)
Thanks
Jennifer
11 giu, 08:24 hi @Tamsin Humes we have the generic user but in the end we went with it being linked to my email instead of generic email so if I leave I have to hand it over to someone. I guess coz I did it this way I'll be able to set up the MFA requirement. I'm still trying to get my head around all these security changes, haven't test impact on this user yet.
We are finally starting to leverage Territories in our org and working out Territory Assignment rules which look great and should automatically assign the accounts to the correct territories and provide access to those who need it, but one thing seems obviously missing and that's being able to automate the assignment of the account to the correct owner. Is that possible or am I missing something? I could replicate similar rulesets to the assignment rules in Flow to assign the accounts but that would feel disjointed, and figuring out the triggers would be problematic as well. I would need to manually run them or only upon creation, or something along those lines since I can't use territory object associations as a trigger for flows currently to my knowledge. Any ideas or experience in this area is welcome!
10 giu, 05:47 You're not missing anything. This is how Enterprise Territory Management works, and your instinct about it being disjointed to replicate in Flow is exactly the right read.
The key thing to understand is that Enterprise Territory Management was designed to decouple access from ownership on purpose. Territory assignment grants access to a set of users through the territory model without ever touching the OwnerId field. Salesforce's design philosophy is that a team of people in a territory can all work an account through that shared access, so ownership becomes less relevant. That's why there's no native "assign owner based on territory" setting. The product intentionally treats territory membership and record ownership as two separate concepts. So the feature you're looking for genuinely doesn't exist out of the box, and you haven't overlooked a checkbox.
Now to the practical problem, which is that you still want ownership to follow territory, and you're right that the trigger is the hard part. Territory assignment runs through the assignment rule evaluation engine, not through standard DML the way you'd normally hook a Flow into. When an account gets evaluated and assigned to a territory, that doesn't fire a clean record-triggered Flow event you can latch onto reliably, which is exactly the limitation you identified.
Here's the approach that actually works without feeling completely bolted on. The ObjectTerritory2Association object is the junction record that gets created when an account is associated with a territory. That object can be queried, and critically, when an account's territory association changes, that junction record is created or updated. You can build a record-triggered Flow on the Account itself that runs on create and update, and in that Flow, do a Get Records on ObjectTerritory2Association filtered to the current account to find its assigned territory. From there, look up the territory's designated owner (more on where to store that in a second) and set the OwnerId. This keeps the logic on the Account where ownership lives, rather than trying to trigger off the territory association directly.
The piece that ties it together cleanly is defining who the owner should be per territory. Rather than replicating your assignment rule logic a second time in Flow, which is the disjointed part you want to avoid, create a custom field on the Territory2 object (or a custom metadata type mapping territory to a default owner). Stamp the intended owner there once. Then your Flow just reads the territory off the account's association, reads the designated owner from that territory record, and assigns it. Now you have a single source of truth. Your assignment rules decide the territory, and the territory record itself declares its owner. No duplicated rule logic.
On the trigger timing problem specifically, since territory assignment can run in batch (nightly recalculation or manual recalculation), the cleanest pattern many orgs use is a scheduled Flow that runs after the territory recalculation completes. It queries accounts where the current owner doesn't match the designated owner of their assigned territory, and corrects them in bulk. This handles the case where territory assignments change through recalculation rather than through a user-initiated save, which a record-triggered Flow would miss entirely. If your territories are fairly stable and assignments mostly happen at account creation, the record-triggered Flow alone may be enough. If territories shift frequently through batch recalculation, the scheduled Flow is the more reliable backbone.
One caution worth flagging before you build this. Be deliberate about the interaction between automated ownership reassignment and your sharing model. If an account's owner changes automatically, you can trigger ownership-based sharing recalculations, email notifications, and potential record access shifts for the previous owner. Test in a sandbox with a realistic data volume, because reassigning owners in bulk during a recalculation window can generate a lot of downstream processing. Also confirm this plays nicely with any existing assignment rules or other ownership automation you already have, so two processes aren't fighting over OwnerId.
So to summarize the path I'd take: store the designated owner on the Territory2 record as the single source of truth, use a record-triggered Flow on Account to handle create and update time assignment by reading the territory association, and back it with a scheduled Flow to catch batch recalculation changes. That gives you territory-driven ownership without duplicating your rule logic and without depending on a territory association trigger that doesn't exist.
- SP