When trying to send an email from a Case you are not the Case Owner off, it doesn't allow to send an email unless you have access to the Contact you select.
Now if you want to send an email and don't select any Contact (but use the additional to), it doesn't allow you to send the email due to insufficient privileges.
Any permissions that would get around this?
I want to delete a record related to an account first from the related list of the account and secondly directly from the concerned record.
I need to update the parent record (Account) before concerned record be deleted.
I have this apex Code in my trigger :
when i click on the delete standard action i still get the following error :
There's a problem saving this record. You might not have permission to edit it, or it might have been deleted or archived. Contact your administrator for help.
here is the check i've done :
- use of trigger.Old instead of trigger.New
- the TECH_HasMainVAT is not readonly.
- Validation Rules conditions.
Thank in advance for your help !
The problem is probably to do with your update syntax. It should be:
And your usage of one = sign for comparison instead of two:
if (current.Is_Main_VAT__c == true)
if (current.Is_Main_VAT__c = true)
However, this trigger suffers from other issues and does not conform to best practices. Please consider the following:
1. It is best practice to place trigger logic outside the trigger class itself, and inside a separate handler Apex class.
2. As far as trigger operations go, always surround the logic in try/catch to make sure it doesn't block the operation if the trigger fails
3. Your trigger only takes into account the first item being deleted, and not all items, by using Trigger.old. This means if two records are deleted in the same operation, your trigger will only update the first one.
I recommend reading this article (https://developer.salesforce.com/page/Best_Practice%3A_Bulkify_Your_Code) and applying best practices to your trigger. Otherwise, you are bound to encounter further issues on production.
Does anyone know specifically what this permission entails?
The description does not offer any clarity and I haven't been able to find anything on this externally.
Thanks in advance!
Here more info about Store Customers’ Data Privacy Preferences (https://help.salesforce.com/articleView?id=individuals_store_data_privacy.htm&type=5)
I’ve searched around but can’t seem to find a concrete / authoritative answer to this question.
- A company has multiple Salesforce Organizations for different divisions.
- This same company has one single MS Cloud Organization (with a single AAD tenant and O365 Exchange Online)
- One of the Salesforce Organizations has enabled Lightning synch through the OAuth connector.
So, the Lightning Synch app is already nestled into AAD i.e. the configuration has already been done by an O365 Global admin and the Salesforce Lightning app has full access.
If I want to connect other Salesforce Organizations to this same AAD / O365, will I have to get the Global Admin to input the credentials for each implementation? Concretely – does each Lightning synch configuration for each individual Salesforce Organization within the same company, behave like a new integration / configuration with AAD / O365 and will all the steps have to be repeated?
Many thanks for your time!
you are connecting different instances and they will each require their own unique domain for the integration (otherwise, by doing one integration you'll allow EVERY salesforce instance to connect to your org...)
Has anyone else expereinced this issue?
A solution or some guidance would be greatly appreciated.
I checked the Security Settings in Community and CSP Security Level is set to "Allow Inline Scripts and Script Access to Whitelisted Third-party Hosts". I even tried disabling Strict CSP in Session Settings, but it didn't help either. Even if the Agent is logged in to Omnichannel, it always shows Agent Offline in Community due to this.
I have whitelisted the liveagent site, *.visualforce.com and *.force.com, but nothing seems to change anything.
I tried with the same setup in IE and it shows the Agent Online in Community. Can someone please help?
Second, after changing OWD, when I ran the Apex tests, I got this:
System.AssertException: Assertion Failed: Inside Sales users should be able to read all Opportunities but the test did not find all records. #sadtrombone: Expected: 3, Actual: 2
Since the error was saying "should be able to read all Opportunities", so I checked the View All permission on the Inside Sales profile.
Strange thing - The SB asks you to NOT to check the View All permission, but the Apex Test error indicates otherwise. And marking the View All permission, passes the Apex Tests.
Each step will be a little more in-depth than the brief summary below, but I've included links to docs, videos or knowledge articles where possible and I'd be happy to take any follow-up questions you may have. Here goes..!
1) Create two record types. Name them what you like but in my example I'll use Regular Contact and Hidden Contact. Regular Contact should be the master, so create this one first if you don't already have record types on your contact object. Take a look at https://help.salesforce.com/apex/HTViewHelpDoc?id=creating_record_types.htm&language=en_US and https://www.youtube.com/watch?v=JUFq1do07fA for guidance on creating record types. Give Standard Users (and presumably all other profiles) access to the two record types (https://help.salesforce.com/HTViewHelpDoc?id=admin_recordtype.htm&language=en_US).
2) Clone your existing contact page layout, remove the address and phone number fields from it and save it. Then under Page Layout Assignment, ensure the the new layout without these fields is selected for the Standard User and Hidden Contact profile/record type combination.Further guidance: https://help.salesforce.com/HTViewHelpDoc?id=customize_layout.htm&language=en_US, http://help.salesforce.com/apex/HTViewHelpDoc?id=customize_layoutassign.htm, https://www.youtube.com/watch?v=JUFq1do07fA.
3) EITHER manually change the record type of your specific contacts to Hidden Contact one by one (http://help.salesforce.com/HTViewHelpDoc?id=account_recordtype.htm&language=en_US) OR create some standalone workflow logic to do that for you (for example: create a new checkbox field for Hidden Contact and create a workflow rule that detects this value becoming true and forces through a field update of the record type field to a new value of Hidden Contact - https://help.salesforce.com/HTViewHelpDoc?id=workflow_defining_field_updates.htm&language=en_US).
4) Test this extensively to ensure that all use cases are satisfied. For example, check that all users can still access both types of contact, check that the Hidden Contacts are having their address and phone number fields hidden for Standard Users, check that Regular Contacts are still showing the fields for Standard Users, check that the workflow is functioning correctly to update the record type automatically when Hidden Contact is ticked.
5) When you're comfortable that all your testing has been successful (and maybe think about getting someone else to sanity-check it), move your changes to your live environment either by repeating them step-by-step in the live system or by moving some or all of the new components via a change set (https://help.salesforce.com/HTViewHelpDoc?id=changesets.htm&language=en_US).
Be sure to let us know how you get on and whether you'd like to ask any follow-up questions or share any obstacles you face along the way. Best of luck!