Here you will find some thoughts, some tips and some notes that help me to remember or that I think would be nice to share.
terça-feira, 24 de outubro de 2017
segunda-feira, 16 de outubro de 2017
Git - Commands
Deleting local branch and updating with Remote branch.
git reset --hard origin/master
Source:https://stackoverflow.com/questions/9210446/replace-local-branch-with-remote-branch-entirely
quinta-feira, 28 de setembro de 2017
Salesforce - Delete list of Attachment
Developer Console >> Debug >> Open execute Anonymous Window
List<Attachment> ListAttachments =
[SELECT id from Attachment];
System.debug(
ListAttachments.size()
);
delete ListAttachments;
Deleting Cases and Contacts
List<Case> ListCases =
[SELECT id from Case];
System.debug(
ListCases.size()
);
delete ListCases;
List<Contact> ListContacts =
[SELECT id from Contact];
System.debug(
ListContacts.size()
);
delete ListContacts;
quarta-feira, 13 de setembro de 2017
Salesforce - Days Since Last Update is empty - Use Formula Fields
Today I was doing trailhead "Use Formula Fields" and I got stuck where the formula wasn't showing any result.
The issue was because I didn't have any Account with Last Activity. I just had to go to an Account and in the Activity History section I clicked on Log a call, and saved it. After that you are good to go, you should see one Case record with Days Since Last Update as empty.
The issue was because I didn't have any Account with Last Activity. I just had to go to an Account and in the Activity History section I clicked on Log a call, and saved it. After that you are good to go, you should see one Case record with Days Since Last Update as empty.
quinta-feira, 7 de setembro de 2017
Salesforce - Lightning - Redirect to a specif Page
From:
PageReference newpage = new PageReference('/apex/MyPage');
newpage.setRedirect(true); return newpage;
To: PageReference newpage = new PageReference('/one/one.app#/n/MyPage'); newpage.setRedirect(true);
return newpage;
function FF_GetVisualforcePageURL(pPage, pNamespace){
var vLightning = '';
if ((typeof sforce != 'undefined') && sforce && (!!sforce.one)) {
vLightning = '/one/one.app#/alohaRedirect'
}
return vLightning + '/apex/' + pNamespace + pPage
}
PageReference newpage = new PageReference('/apex/MyPage');
newpage.setRedirect(true); return newpage;
To: PageReference newpage = new PageReference('/one/one.app#/n/MyPage'); newpage.setRedirect(true);
return newpage;
function FF_GetVisualforcePageURL(pPage, pNamespace){
var vLightning = '';
if ((typeof sforce != 'undefined') && sforce && (!!sforce.one)) {
vLightning = '/one/one.app#/alohaRedirect'
}
return vLightning + '/apex/' + pNamespace + pPage
}
quarta-feira, 23 de agosto de 2017
Salesforce - Error when try to deploy - Invalid field:VERSION.TITLE in related
Assinar:
Postagens (Atom)