• Glen Cubinar
  • NEWBIE
  • 10 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 1
    Replies
Hi Everyone,

I would like to ask how can I identify if a specific contact is being merge in a Trigger with Before Update event, there is a scenario when a Trigger Validation is being executed but I want to bypass is when merging contact records.

how can I identify that the Winner Contact was updated due to Merge process?

Thanks
Hi Everyone,

I would like to retrieve the following details in the OOB State and Country Picklists.

-Parent Country
-State
-State Code
-Active

Im using the code:

Schema.DescribeFieldResult fieldResult = User.StateCode.getDescribe(); List<Schema.PicklistEntry> ple = fieldResult.getPicklistValues();

User-added image

the problem is i can only retieve the following values:

Schema.PicklistEntry[getLabel=Abu Dhabi;getValue=ABUDHABI;isActive=true;isDefaultValue=false;]

Parent Country is not included, how can i get the parent country for each specific state?

Thanks

Hi,

I was converting 3 Lead Records to Contact, and when im trying to get ID's of the records having a trigger in contact object with event of after insert I am only getting 1 ID per instance. I was expecting to get the 3 ID's in one instance.  

Hi,

I have a class that is called by a visualforce page as shown below, and I would like to seek assistance on how can I run it using a Trigger.

Visualforce Page:

<apex:page standardController="Account" extensions="ArchiveController" action="{!submitRequest}">
    <apex:form >
        <apex:actionFunction name="cancelProcess" action="{!cancelProcess}"/>
    </apex:form>
   
    <script>
   
        var message = "{!message}";
        var checkProcess = "{!checkProcess}";      
    
        function Archive(){
            if(checkProcess == 'true'){
                 alert(message);
                 cancelProcess();
             }
         }
        Archive();
       
    </script>
</apex:page>




Hi,

I have a class that is called by a visualforce page as shown below, and I would like to seek assistance on how can I run it using a Trigger.

Visualforce Page:

<apex:page standardController="Account" extensions="ArchiveController" action="{!submitRequest}">
    <apex:form >
        <apex:actionFunction name="cancelProcess" action="{!cancelProcess}"/>
    </apex:form>
   
    <script>
   
        var message = "{!message}";
        var checkProcess = "{!checkProcess}";      
    
        function Archive(){
            if(checkProcess == 'true'){
                 alert(message);
                 cancelProcess();
             }
         }
        Archive();
       
    </script>
</apex:page>