Posts

New App policy

 App Name: IMChallenger App Package: com.domreysa.imchallenger Ownership information: TIN SRONG Oraginazation name:Domreysa Address:Phnom Penh, Cambodia Contact detail:tinsrong576@gmail.com Website link: https://www.blogger.com/blog/post/edit/preview/9151803089485028021/1547052202441038936 Source:  https://www.blogger.com/blog/post/edit/preview/9151803089485028021/1547052202441038936

Terms & Conditions

  Terms & Conditions By downloading or using the app, these terms will automatically apply to you – you should make sure therefore that you read them carefully before using the app. You’re not allowed to copy or modify the app, any part of the app, or our trademarks in any way. You’re not allowed to attempt to extract the source code of the app, and you also shouldn’t try to translate the app into other languages or make derivative versions. The app itself, and all the trademarks, copyright, database rights, and other intellectual property rights related to it, still belong to Domreysa. Domreysa is committed to ensuring that the app is as useful and efficient as possible. For that reason, we reserve the right to make changes to the app or to charge for its services, at any time and for any reason. We will never charge you for the app or its services without making it very clear to you exactly what you’re paying for. The IMChallenger app stores and processes personal data that y...

Privacy Policy

Domreysa built the IMChallenger app as a Free app. This SERVICE is provided by Domreysa at no cost and is intended for use as is. This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service. If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy. The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which are accessible at IMChallenger unless otherwise defined in this Privacy Policy. **Information Collection and Use** For a better experience, while using our Service, I may require you to provide us with certain personally identifiable information, including but not limited to IMChallenger is the khmer quiz ...

How to get Org Wide Email Address salesforce

OrgWideEmailAddress []  owea  = [ select   Id   from   OrgWideEmailAddress   where   Address  =  'ab@g.test' ];      if  (  owea . size () >  0  ) {                      mail . setOrgWideEmailAddressId ( owea . get ( 0 ). Id );                 }

How to set up vscode with salesforce sandbox

1. Press Ctrl + Shit + P. Then type SFDX: Create Project with Manifest . 2. Press Ctrl + Shit + P. This time we need to type or Select “ SFDX: Authorize an Org “.  3. Enter " Custom " and put URL of your sandbox  4. Enter name  5. When done, wait a bit and goto Manifest folder rightclick on package.xml   6. Click  SFDX: Retrieve This Source from Org

How to install window 10 from a USB

Image
Please check out on videos: Source: @AvoidErrors

How to download Muli file in salesforc

cvIds = ' 068J0000000xUFqIAM/ 068J0000000xUFqidd ';  var url = '/sfc/servlet.shepherd/version/download' + cvIds;  window.location.href = url;

How to get path url of image from Static Resource in Apex class

String imageURL = URL.getSalesforceBaseUrl().toExternalForm() + PageReference.forResource('resourceName').getUrl(); System.debug('Here is image url:'+ imageURL );

How to change Page Layout

First of all you need to go to :  Setup => Search Profile                                        ==> Select profile you have used                                       ===> Select Object Setting    and choose object you used                                       ====> Now you can edit on  Record Types and Page Layout Assignments You can change by record type.                                       

How to use method "Future in Apex"

Future method is used to run code that took to long to process, so if you don't want to wait it working, you can used this @future for running it as backgound. public PageReference TestOne() { TestTwo('This is future method'); return null; } @future(callout=true) private static void TestTwo(String desc){ System.debug(desc); }

How to extends class in apex

// class one public virtual class MyCodeController { } // class two public class TestController extends MyCodeController { public TestController{ super(); } }

How to create e.force:showToast whith link

Image
In your controller showToast: function (type, message) { var toastEvent = $A.get('e.force:showToast'); var mode = 'dismissible'; var duration = 3000; if (type === 'error') { duration = 20000; } toastEvent.setParams({ type: type, mode: mode, duration: duration, message:"You Message", messageTemplate: "The record '{0}' has been updated successfully.", messageTemplateData: [{ label:"#123456", url: "/Your record Id" }] }); toastEvent.fire(); }

How to get id from div using onclick in lightning component

Component <div data-account-id="{! account.Id }"  onclick="{! c.selectAccount }">click me</div> Controller selectAccount:  function (cmp, event, helper) {         var id = event.currentTarget.dataset.accountId;         console.log(id); }

How to solve Key hash xxxxxxxxxxx= does not match any stored key hashes

This is how i solved this problem Downloaded your APK to your PC in java jdk\bin folder C:\Program Files\Java\jdk1.7.0_79\bin go to java jdk\bin folder and run cmd then copy the following command in your cmd keytool -list -printcert -jarfile apkname.apk Copy the SHA1 value to your clip board like this CD:A1:EA:A3:5C:5C:68:FB:FA:0A:6B:E5:5A:72:64:DD:26:8D:44:84 and open http://tomeko.net/online_tools/hex_to_base64.php 1.2k to convert your SHA1 value to base64. This is what Facebook requires get zaHqo1xcaPv6CmvlWnJk3SaNRIQ= as our keyhash.

Get Id from current page in Lightning Component

Image
1. Get Id from current page 1.1 Add 'force:hasRecordId' to implements <aura:component implements="force:hasRecordId"> 1.2 Create attribute to receive Id <aura:attribute name="recordId" type="Id" /> 1.3 In controller js component.get("v.recordId");

How to render Visualforce page to PDF then Download it.

7. How to render Visualforce page to PDF then Download it. 1. You need to have two page first page is main page <apex:page id="MainPage" showHeader="false" cache="true" contentType="application/x-pdf#PDF_Name.pdf" <apex:include pageName="SecondpageName"/> </apex:page> 2. your second page <apex:page renderAs="pdf" >//your code</apex:page>

Dynamic SOQL

Image
url source : https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_dynamic_soql.htm

Query in Loop problem: ( we do not need to to select query in loop )

4. Query in Loop problem: ( we do not need to to select query in loop ) resolved: In Apex Class: public class UpdateAccTriggerHandler { public void handleBeforeCreateUpdate( List<Account> newAccList ){ Set<Id> accountGroupIds = new Set<Id>();       for( Account iAccount : newAccList ) {             if(iAccount.Group__c != null ) {                 accountGroupIds.add( iAccount.Group__c );             }         } List<Account> accountGroups = [ SELECT Id, Name, OwnerId                                   From Account                                   WHERE Id in: accountGroupIds                     ...

Call Method from trigger to apex

3. Call Method from trigger to apex and with list<Account> and Map<Id,Account> In Apex class: public class UpdateAccTriggerHandler { public void updateAccountTest(List<Account> newAccList, Map<Id,Account> oldMap){ for(Account acc:newAccList){ //your code... } } } In Trigger : UpdateAccTriggerHandler updateAcc = new UpdateAccTriggerHandler (); updateAcc .updateAccountTest(Trigger.New, Trigger.oldMap);

How to call method in Apex without @RemoteAction

2. Call Method in salcesforce apex class without @RemoteAction In Apex Class: public void saveRanking() { // you code here} In salesforce Page: // call method from apex class by clicking on button <apex:commandButton styleClass="slds-button slds-button--neutral btn-refresh" reRender="mainForm" status="loadingStatus" action="{!saveRanking}" value="Save"> </apex:commandButton>