• ramamohanreddy
  • NEWBIE
  • 25 Points
  • Member since 2012

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 5
    Replies

Hi ,

      how to save records into salesforce from senchtouch.

      if any body know, please help me.

 

Thanks

p.r

 

Hi,

  I am the salesforce dev-401 certified candidate, i passed in sp12 exam on april 25th in 2012,

  now i am planning to write Maintenance exam.But i loss my username and password for webassessor.

  How could i get my login details.

 

Can any body please help me,

 

Thanks:

mohan

 


//class creation
public with sharing class UploadAssetController
{

//cunstrutor creation
public UploadAssetController ()
{
selObject = 'Asset';
//Fetching hard coded 'IT Equipment' classification for default to all assets
List<ServoTerraClassification__c> classificationList = [select id, name from ServoTerraClassification__c where name ='IT Equipment'];
if(classificationList != null && classificationList.size() > 0){
ITClassificationObject = classificationList.get(0);
}
}
//**************************write test classes for these below two methods**********************************************************************
//create all asset components
public void createAssetComponent(sevro_Terra_Asset__c assetObject, string componentName ,string componentValue){
string componentId = getComponentId(componentName, assetObject.servo_Terra_Category__c);
string componentValueId = getComponentValueId(componentId , componentValue);
//create new component object
createComponentObject(assetObject, componentId,componentValueId);

}

//create single asset component object
public void createComponentObject(sevro_Terra_Asset__c assetObject, string componentId, string componentValueId)
{
String assetId = assetObject.id;
if(assetComponentsMap !=null && assetComponentsMap.size() > 0 && assetComponentsMap.get(assetId+fieldSep+componentId+fieldSep+componentValueId) != null){
return ;
}
else
{
//Creates new component object
servo_Terra_Asset_Component__c componentObject = new servo_Terra_Asset_Component__c();
componentObject.sevroTerraAsset__c = assetId;
componentObject.servoTerraComponent__c = componentId;
componentObject.servoTerraComponentValue__c = componentValueId;
assetComponentsMap.put(assetId+fieldSep+componentId+fieldSep+componentValueId,componentObject);
}
}
}
--------------------------------------------
here the objects are
sevro_Terra_Asset__c ,servo_Terra_Category__c, servoTerraComponent__c 

 

 

Thanks

pandu

Too many SOQL errors 101 :

trigger OfferDefaults on bid__c (before insert) {

 
    for(bid__c vBid:Trigger.new){
        vBid.Status__c='Open';
        List<Auction__c> vList= [select Id, Name, OwnerId, Seller__c, Seller__r.Id, Seller__r.Name, asset__c, asset__r.Id, qtyAvail__c, minimum_Quantity__c from Auction__c where auction__c.Id=:vBid.auction__c];
       
        if(vList.size()>0){
            Auction__c vAuction= (Auction__c) vList[0];
       
            if(vBid.quantity__c <= 0) {
                vBid.quantity__c.AddError('Invalid input');
            }
            if(vBid.quantity__c > vAuction.qtyAvail__c) {
                vBid.quantity__c.AddError('There are only ' + vAuction.qtyAvail__c + ' items available');
            }
            else if(vBid.quantity__c > vAuction.minimum_quantity__c) {
                vBid.quantity__c.AddError('A minimum of ' + vAuction.minimum_quantity__c + 'items is required');   
            }
            else {
                //Set the Seller
                vBid.Seller__c=vAuction.Seller__c;
                //Set the Asset
                vBid.Asset_ST__c=vAuction.asset__c;
                //Change the OwnerID so that the Seller can see the Offer
                vBid.OwnerId=vAuction.OwnerId;
            }

        }
    }
}

 This trigger for loop is inside the loop. thats why this error occurs. how can I use the query in this trigger?

Hi all,

         I have  some problem Regarding to instead of sending an email every time when a STATUS=ACCEPTED OR REJECTED, to the customer portal owners,  I want to send single email to every customer portal users, that mail contains   todays all details of STATUS

 at every day one time only.

   please give me solution immediately.

  

Thanks:

p.ram

 

Hi,

  I am the salesforce dev-401 certified candidate, i passed in sp12 exam on april 25th in 2012,

  now i am planning to write Maintenance exam.But i loss my username and password for webassessor.

  How could i get my login details.

 

Can any body please help me,

 

Thanks:

mohan

 

Too many SOQL errors 101 :

trigger OfferDefaults on bid__c (before insert) {

 
    for(bid__c vBid:Trigger.new){
        vBid.Status__c='Open';
        List<Auction__c> vList= [select Id, Name, OwnerId, Seller__c, Seller__r.Id, Seller__r.Name, asset__c, asset__r.Id, qtyAvail__c, minimum_Quantity__c from Auction__c where auction__c.Id=:vBid.auction__c];
       
        if(vList.size()>0){
            Auction__c vAuction= (Auction__c) vList[0];
       
            if(vBid.quantity__c <= 0) {
                vBid.quantity__c.AddError('Invalid input');
            }
            if(vBid.quantity__c > vAuction.qtyAvail__c) {
                vBid.quantity__c.AddError('There are only ' + vAuction.qtyAvail__c + ' items available');
            }
            else if(vBid.quantity__c > vAuction.minimum_quantity__c) {
                vBid.quantity__c.AddError('A minimum of ' + vAuction.minimum_quantity__c + 'items is required');   
            }
            else {
                //Set the Seller
                vBid.Seller__c=vAuction.Seller__c;
                //Set the Asset
                vBid.Asset_ST__c=vAuction.asset__c;
                //Change the OwnerID so that the Seller can see the Offer
                vBid.OwnerId=vAuction.OwnerId;
            }

        }
    }
}

 This trigger for loop is inside the loop. thats why this error occurs. how can I use the query in this trigger?

Hi all,

         I have  some problem Regarding to instead of sending an email every time when a STATUS=ACCEPTED OR REJECTED, to the customer portal owners,  I want to send single email to every customer portal users, that mail contains   todays all details of STATUS

 at every day one time only.

   please give me solution immediately.

  

Thanks:

p.ram