You do not have permission to perform this action on this record or related records. Contact your Salesforce administrator for assistance error while changing owner

INTRODUCTION A user with full access to a Customer or Partner account, either by sharing or account ownership, receives the following error when trying to change ownership to a user with a different role: “You don’t have permission to take that action on this record or related records.” SOLUTION This would indicate that the running …

You do not have permission to perform this action on this record or related records. Contact your Salesforce administrator for assistance error while changing owner Read More »

Setting From Address in Single Email Message in Salesforce

In Salesforce, you can set the “From” address in a SingleEmailMessage by using the setOrgWideEmailAddressId method. Here’s an example of how you can set the “From” address: Make sure to replace [OrgWideEmailAddressId] with the actual Organization-Wide Email Address ID that you want to use as the “From” address. The Organization-Wide Email Address must be previously …

Setting From Address in Single Email Message in Salesforce Read More »

How can we refresh or create Sandbox using API in Salesforce

INTRODUCTION The objects ‘SandboxInfo’ and ‘SandboxProcess,’ are available in API v35 or higher, and allow you to create and refresh sandboxes. Tolloing api can be used to create or refresh the sandbox. SandboxInfoRepresents a sandbox. SandboxInfo enqueues a sandbox for creation or for being refreshed. To learn more please review the Force.com Tooling API SandboxInfo section. SandboxProcessRepresents …

How can we refresh or create Sandbox using API in Salesforce Read More »

Top five problem using delegated approval in Salesforce

What is delegated approval and when it is enabled? When your team’s member goes on out of office, we can choose a user to receive his approval requests over a predefined time period. Delegated approvers are helpful when the original approver can’t respond to approvals, such as during a vacation. https://help.salesforce.com/s/articleView?id=sf.cpq_aa_delegate_approvers_task.htm&language=en_US&type=5 Known Challenges Before enabling …

Top five problem using delegated approval in Salesforce Read More »

INVALID_ID_FIELD, WhatId is not available for sending emails to UserIds

Introduction This error is thrown while sending email using apex if you are setting User Id in target recipient: setTargetObjectId(usr.Id) and also specifying target record id as: setWhatId(opp.Id). As per Salesforce documentation if you are passing record id in WhatId then you can only pass Contact Id in setTargetObjectId. Here is Salesforce article: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_email_outbound_single.htm Workaround