• Carlos Carvalho Jr
  • NEWBIE
  • 40 Points
  • Member since 2017
  • Senior Developer
  • Empiricus Research


  • Chatter
    Feed
  • 1
    Best Answers
  • 2
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 9
    Replies
HI there,
Could you help please, i'm turning crazy, 
i did a basic table which list the ID of quote and some others fields of quotes.
I need when i click on ID to store the ID into javascript var in order to do some proces behind.
I have tried with JS and Jquery, same problem on both , it work when reading value of a <p> balise for example, but never with apex:Column
 
<script>
    jQuery.noConflict();
    
    jQuery(document).ready(function() {    
        jQuery(".theqid").click(function() {
			var b = $(this).html();
            console.log("the value: "+ b);
        });
    });
  </script>

<apex:pageBlockTable value="{!closedwonlist}" var="q" id="mytable">                
                <apex:column styleClass="theqid" headerValue="Quote Id">
                    <apex:outputText value="{!q.Id}"/>
                </apex:column>
                 <apex:column value="{!q.Opportunity.Name}" />  
                <apex:column value="{!q.Name}" />
                <apex:column value="{!q.opportunity.StageName}" />           
</apex:pageBlockTable>
Many thanks for all help you could providing.

 
I used the lightning:conversationToolkitAPI in aura app to detect when chat was ended by user or customer.

For Chat Transcript work fine but for Messaging Session doesn't work.

Someone could help?
I used the lightning:conversationToolkitAPI in aura app to detect when chat was ended by user or customer.

For Chat Transcript work fine but for Messaging Session doesn't work.

Someone could help?
How to create a single rest API or URL to create, update and delete a record in salesforce? The API can be call from other system Like logic app or ServiceNow.?

I want to create a single API to perform all the 3 operation in apex http call.
Requirement is we only need single URL, anyone can help, Much appriciated...
I used the lightning:conversationToolkitAPI in aura app to detect when chat was ended by user or customer.

For Chat Transcript work fine but for Messaging Session doesn't work.

Someone could help?
Hello!

User-added image


User-added image

I recently began experimenting with the Einstein Bot Builder, and connected my bot to the Live Agent Chat Button. My Live Agent chat sessions work fine without the bot, but once I connect the bot, I receive the error "There is a connection issue."

Does anyone know how to fix this?
I appreciate any help!
I am rying to deploy below mentioned trigger from Sandbox, however receivig code coverage error. I understand I need to create a test class to deploy this trigger successfully. will apprecoate if somebody can help me in creating a test class.  


trigger EventItemBeforeDelete on nihrm__EventItem__c (before delete)
 {
for  (nihrm__EventItem__c q: trigger.old)
if (q.Journaled__c == true)
{
q.adderror('This Event Item has been sent to Intacct cannot be Deleted. If you need to remove the charge for the customer, please change quantity & unit price to 0; and check the boxes to hide from PEO & hide from Check.');
}
}

Thanks 
Ru
I should start this by saying I am not a deeloper and didn't write this code (I don't write code!) but can update and redeploy. Every time I do an update with data loader I hit CPU exceeded because of a trigger in the system. Trigger posted below. Is anyone able to help me work out how to optimise this so I don't hit the CPU limits?

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
trigger updateFlagOnContact on Event_Attendee__c (After insert,after Update) {
   if(!globalUtility.isActiveTrigger('updateFlagOnContact')){
        system.debug('>>>>>>>>>>Kill Switch Executed');
        return;
    }  
    set<id> setEventId = new set<id>(); 
    set<id> setContact2Update = new set<id>(); 
    map<id, Event__c > mapid2Event = new map<id, Event__c >();  
    for(Event_Attendee__c EA: trigger.new){
        setEventId.add(EA.Event_Event_Attendees__c);
    }
    
    
    for(Event__c event:[select id,End_Date__c,Start_Date__c from event__c where (End_Date__c!=null and End_Date__c>=:system.today()) OR (End_Date__c=null and Start_Date__c>=:system.today())]){
           mapid2Event.put(event.id,event);
       
    }
    
    
    
    for(Event_Attendee__c EA: trigger.new){
        if(mapid2Event.get(EA.Event_Event_Attendees__c)!=null){
          setContact2Update.add(EA.Attendee__c);  
        }
    }
    
        list<contact> lstContact2update = new list<contact>();

    if(setContact2Update!=null && setContact2Update.size()>0){
        for(contact con:[select id, Is_Part_of_Current_or_Future_Event__c from contact where id in:setContact2Update]){
            con.Is_Part_of_Current_or_Future_Event__c =true;
            lstContact2update.add(con);
        }
    }
    if(lstContact2update.size()>0){
        update lstContact2update;
    }
    
}
2  objects  having same number field  in both  but no realtionship( lookup or MD relationship)
 
Obj - A, , Obj -B , number field name . SS ID in both
  After insert Trigger in A 
Trying to get B records which match from object A  after inserting records in A ( when inserting records in A, object B also getting inserted ) 
trigger CreateB on  A (after insert) {

    
    list<A__c> regList;
    reList = [select id, SS_ID___c, dec__C from  A_C where id IN :trigger.new];
    
    list<B__c> pL=[select , id , SS_ID___c, from B__c where SS_ID___c, IN :  reList.SS_ID___c, ];
    
    }
  • August 04, 2017
  • Like
  • 0
HI there,
Could you help please, i'm turning crazy, 
i did a basic table which list the ID of quote and some others fields of quotes.
I need when i click on ID to store the ID into javascript var in order to do some proces behind.
I have tried with JS and Jquery, same problem on both , it work when reading value of a <p> balise for example, but never with apex:Column
 
<script>
    jQuery.noConflict();
    
    jQuery(document).ready(function() {    
        jQuery(".theqid").click(function() {
			var b = $(this).html();
            console.log("the value: "+ b);
        });
    });
  </script>

<apex:pageBlockTable value="{!closedwonlist}" var="q" id="mytable">                
                <apex:column styleClass="theqid" headerValue="Quote Id">
                    <apex:outputText value="{!q.Id}"/>
                </apex:column>
                 <apex:column value="{!q.Opportunity.Name}" />  
                <apex:column value="{!q.Name}" />
                <apex:column value="{!q.opportunity.StageName}" />           
</apex:pageBlockTable>
Many thanks for all help you could providing.

 
Hi

I have a url which contains xml file, if i click the click the url it will download the file to my local drive, instead of doing it manually i need to achieve this using apex class, i.e. the scheduled apex class download the file from a url and upload it to the custom object.

How to achieve this, anybody have worked this kind of scenario.

thanks
Dinesh