Author Archives: patlatus

How to amend not latest commit message in pushed branch

git rebase -i HEAD~3 Replace pick with reword Press Esc then :x! to save and close Change commit message Press Esc then :x! to save and close git push –force origin feature branch

Posted in Git, Uncategorized | Leave a comment

My Aura to LWC migration article is published

My Aura to LWC migration article is finally published on corporate blog I have written this article on February. Also I have prepared the presentation on the same topic for internal knowledge sharing meeting inside a company and also for … Continue reading

Posted in Uncategorized | Leave a comment

Mapping Salesforce Profile Name to Profile Developer API Name

Earlier I have post a question on SSE about how to map Salesforce Profile Name to Profile Developer API Name. Finally I have found solution. While one of the possible point-and-click way is suggested by @user3375426 to create an outbound … Continue reading

Posted in salesforce, Uncategorized | Leave a comment

VSCode ForceCode

VS Code https://codecracksblog.wordpress.com/2017/10/30/use-visual-studio-code-for-salesforce-developmentide/ Good plugin, need to remember this link

Posted in Uncategorized | Leave a comment

Determine if field is a component of a compound field

Sometimes there is a need to determine if a field is a component of a compound field. For example, compound fields components are not permissionable even though field describe isPermissionable method for them returns true. There might be other cases … Continue reading

Posted in apex, field, SOQL | Leave a comment

Using SFDX to auto login to your organizations.

SFDX provides an interesting way to login automatically to the organization you need. The only disadvantage of this approach is that you would need to reconnect each time when you sandbox organization is refreshed. To authenticate sandbox you need to … Continue reading

Posted in salesforce, sfdx | Leave a comment

Preparing package.xml for custom metadata records and sending email containing it to the current user

Preparing package.xml for custom metadata records and sending email containing it to the current user public class MD { public static String buildPackageXMLForMD(SObjectType mdt, String whereClause){ String mdtName = [ select DeveloperName FROM EntityDefinition where QualifiedAPIName = :mdt.getDescribe().getName() ].DeveloperName; List … Continue reading

Posted in salesforce | Leave a comment