• Ajvad Aju
  • NEWBIE
  • 90 Points
  • Member since 2017

  • Chatter
    Feed
  • 3
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 21
    Replies
User-added image

Okay I need some help here. Is this data clean? Do I need to create objects for all 8 columns and new fields? What i should select for ID - External or salesforce while importing? Are there any errors or ambiguity in this data that need to be cleaned before importing?
Hi Team,
In an opportunity in Lightning, when we click in stage bar on "Closed" stage, then click on "Select closed stage", the system opens a popup asking which Stage user wants to select : Closed won, Closed lost, Cancelled. User-added image But in our implement
List<Messaging.SingleEmailMessage> mails = new List<Messaging.SingleEmailMessage>();
List<ID>ownerids=new List<ID>();

List<String> sendTo = new List<String>();
List<User>users=new List<User>();

for (case mycase : Trigger.new) {

    case oldcon = Trigger.oldMap.get(mycase.Id)
        
    
 if (mycase.ownerid != oldcon.ownerid ) {

     ownerids.add(oldcon.ownerid) ; 

     }
    }

   users=[select name,id,email from user where id in:ownerids];
    for(User u:users){

      sendTo.add(u.Email); 

    }

    Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();
mail.setSenderDisplayName('Email alert');
mail.setSubject('Owner change');
String body = 'Dear User Owner changed';
mail.setToAddresses(sendTo);
mail.setPlainTextBody(body);
mails.add(mail);
Messaging.sendEmail(mails);
Hello..

My requirement is to take location from user say after every 1 hours and the end time is 2 hours.
how to do this?
    

  var initDate = new Date(); // Or get the user login date from an HTML element (i.e. hidden input)
                    var interval;
                    
                    interval = window.setInterval(function() {
                        var now = new Date();
                  
                        if(hours=='' || hours==null || hours ==undefined){
                            getLocations();
                        }else{
                            if(now.getTime() - initDate.getTime() < hours*60*60*1000 && now.getDate() == initDate.getDate()) {
                               
                                getLocations();
                            }
                            else {
                                stopJourney();
                                window.clearInterval(interval);
                                toggleAdjustment();
                                checkInToggle();
                                toggleAdjustment();
                                var element1 = document.getElementById("stopInactive");
                                element1.classList.toggle("clsHide");
                                var element2 = document.getElementById("stop");
                                element2.classList.toggle("clsHide");
                                
                            }
                        }
                    }, intervalInMinutes*60*60*1000);
                });


Note: value of "hours" varaible : 2
value of "intervalInMinutes" : 1
 
Hi, 
I need some helps with Visualforce email template, I have received error
Error: Unknown property 'core.email.template.EmailTemplateComponentController.Case'

I have try to capture all asset product and serial number captured in the email related to a Case. And currently relate structure is below:
Case related Asset Booking with Asset and Serial number.

Here is the code I have entered

<messaging:emailTemplate subject="I am Product Loan Approved" recipientType="Contact" relatedToType="Case">
<messaging:plainTextEmailBody >
    <html>
        <Body>
            <Style type="text/css">
                TH{font-size:11px; font-face:arial;background: #CCCCCC;border-width:1;text-align:center}
                TD {font-szie:11px;font-face: verdana}
                Table {border:solid #CCCCCC; border-width:1}
                TR {border: solid #CCCCCC; border-width: 1}
            </style>
            <font face="arial" size="2">
<p>Hi {!Case.Contact},</p>
<br/>
<p>Thank you for submitting an equipment loan</p>
<p>Your Loan request has been approved and we will be in touch once the equipment has been dispatched or ready for pickup</p>
<br/>
<p>Please refer loan product details below: </p>
<table border="0">
    <tr>
        <th>Product Name</th>
        <th>Serial Number</th>
    </tr>
    <apex:repeat var="cx" value="{!relatedTo.Asset_c}">
        <tr>
            <td>{!cx.Asset_Product__c}</td>
            <td>{!cx.Serial_number__c}</td>
        </tr>
    </apex:repeat>
</table>
<p />
</font>
</body>
</html>
</messaging:plainTextEmailBody>
</messaging:emailTemplate>
Hi Viewers,

i want sent email when click on detail page custom button in opportunity obj. &update the fields 
1. send an email partner
2.channel manager(account owner of partner account)
3.account owner
4. fields should be updated like date= today,stage='duplcate',status= 'rejected'.


​can any one help me .
Hi

My scenario is :
Billing Document:Parent
Billing Item:Child
I need a detion trigger to delete Billing Item with Unit Price=0/Blank and Subsegment=Undefined.

Note:Billing document can also be created from SAP.So if any Billing Item with above mentioed criteria is there it should also get deleted
Thanks!!
Hi All,
      i want to know about compliance and compliance team?
is anyone know about them?
Hi Guys,

I need help writing an Apex Trigger, please. I currently have a validation rule in place which does not allow the user to move forward in Opportunity stage unless they have ticked a checkbox, however, I want to add to this rule so that they cannot move forward in stage unless they upload a customer declaration PDF under 'Files' as well as ticking the checkbox. 

I have been made aware that this cannot be done using Validation Rules, however, must be done using an Apex Trigger on Opportunity. 

I have taken a stab in the dark at writing the trigger from looking at Youtube videos but admittedly have absolutely no clue what I'm doing;

User-added image

Any assistance is greatly appreciated.
Hi,
     I want to get the jobname for the schedule class by using apex schedule class name or id. I don't know the when it was scheduled and job Name. Now I would like to add this schedule class and reschedule it again. When i try to add this job i am getting the following error "This Apex class has batch or future jobs pending or in progress" .


Thanks,
Mohan S