• sainath .chalamcherla
  • NEWBIE
  • 20 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 8
    Questions
  • 0
    Replies
Hi,

I have an requirement One agent should answer one customer at a time.

maximum chat capacity 2
queue overall size 5
routing type :leastactive

will above configurations helps me to achieve my requirement.

Thanks & regards
​sainath.
Hi Team,

I have an requirement where an agent can answer only two chats,when an agent reached his capacity it should transfer to next agent.
how to configure this in live agent salesforce.

Thanks & Regards
sainath
Hi,
In live agent enabling file transfer for customer to attach files. successfully implemented the functionality but i want that feature looks like button
for customer.
.User-added image
I tried a lot but not figured out exact solution.

Thanks & Regards
sainath
Hi Team.

I am new bie to salesforce,I am in baffle state whether to go with validation rule or code fix for this scenario.
Validation Rule scenario:
Criteria : caseowner has the rights to "EDIT" the case(In Mini Pane Window).
Analysis : I am the user, I created a case, my name should display on "CaseOwner" field of case object and i can only "edit" (In Mini Pane Window).the case.
                 If any user try to edit the case,Message should display.
                 If the user "Accepts" the case then "caseowner" field should populate with user name and he has rights to "edit" (In Mini Pane             Window)the case.            
Message : Please accept the case inorder to "Edit".

My workarrounds:
 1 ) IF( ISCHANGED( LastModifiedById ) && (OwnerId <> $User.Id) && (OwnerId <> LastModifiedById) && (LastModifiedById <> $User.Id), true,false) -- Notworking
2) AND( ISCHANGED( OwnerId ), (OwnerId <> Owner:User.Id)) --Notworking
3) IF( ISCHANGED(  Owner:User.Id  ) && (OwnerId <> $User.Id) && (OwnerId <> LastModifiedById) && (LastModifiedById <> $User.Id), true,false)--Error ---The ISCHANGED function cannot reference the Owner:User.Id field.


Thanks
sainath.

 
Hi Team,
This is sainath,I am begginer, I am working on Wrapper class.
Requirements: I have to display account,contact,opportunity fields in pageblock table using wrapper class. i done with code in apex and visualforce page.But there is a issue with data alignment in pageblock table.find attached code below.
public class mswrapper
{
public class saiwrapper
{
public string Accname    {get;set;}
public string accnum     {get;set;}
public string confstname {get;set;}
public string conlstname {get;set;}
public double oppamount  {get;set;}
public string oppstgname {get;set;}
}

public list<saiwrapper> wrplst {get;set;}

public mswrapper()
{

wrplst = new list<saiwrapper>();
saiwrapper swrp;
for(Account Acclst : [SELECT Name,AccountNumber FROM Account WHERE Type = 'Customer - Direct' LIMIT 10] )
{
 swrp = new saiwrapper();
 swrp.Accname = Acclst.Name;
 swrp.accnum = Acclst.AccountNumber;
 wrplst.add(swrp);
}
for(Contact conlst :[SELECT FirstName,LastName FROM Contact WHERE Level__c = 'Primary' LIMIT 10])
{
 swrp = new saiwrapper();
 swrp.confstname = conlst.FirstName;
 swrp.conlstname = conlst.LastName;
 wrplst.add(swrp);
}
for(Opportunity opplst :[SELECT Amount,StageName FROM Opportunity WHERE Amount < 10000 LIMIT 10])
{
 swrp = new saiwrapper();
 swrp.oppamount = opplst.Amount;
 swrp.oppstgname = opplst.StageName;
 wrplst.add(swrp);
}
}
}

visualforce Page:
<apex:page controller="mswrapper">
<apex:pageBlock >
<apex:pageBlockTable value="{!wrplst}" var="wrvar">
<apex:column value="{!wrvar.Accname}" headerValue="Account Name" title="Account"/>
<apex:column value="{!wrvar.accnum}" headerValue="Account Number" title="Account"/>
<apex:column value="{!wrvar.confstname}" headerValue="Contact FirstName" title="Contact"/>
<apex:column value="{!wrvar.conlstname}" headerValue="Contact LastName" title="Contact"/>
<apex:column value="{!wrvar.oppamount}" headerValue="Amount" title="Opportunity"/>
<apex:column value="{!wrvar.oppstgname}" headerValue="StageName" title="Opportunity"/>
</apex:pageBlockTable>
</apex:pageBlock>  
</apex:page>

Output:
User-added image
All Data Should be in same rows(same alignment).But it is showing in different way.Any body can suggest how to overcome this issue.

Thanks&Regards
sainath
 
Hi,
I got strucked in this example.I want to show the SOQL query result in table format in visualforce.
Apex Code:
public class AccountClass1
{
public list<Account> acc{get;set;}
public List<Contact> ccc{get;set;}
public  List<Account> AccountClass2()
{
 List<Account> acc = [select Name,Phone,Type from Account where Name='capital first'];
 return acc;
}
public  List<Contact>  AccountClass3()
{
  List<Contact> ccc = [SELECT AccountId,Name FROM Contact where AccountId IN(select Id  from Account where Name='capital first')];
  return ccc;
}
}
VIsualForce Code:
<apex:page controller="AccountClass1" sidebar="True" showHeader="true">
  <apex:form >
  <apex:commandButton action="{!AccountClass2}" value="Accountquery" id="ss"/>
  <apex:pageBlock>
  <apex:pageblockTable value="{!acc}" var="a" id="ss">
  <apex:column value="{!a.Name}"/>
  <apex:column value="{!a.Phone}"/>
  <apex:column value="{!a.Type}"/>
  </apex:pageblockTable>
  </apex:pageBlock>
  <apex:commandButton action="{!AccountClass3}" value="Contactquery" id="ds" />
  <apex:pageBlock>
  <apex:pageblockTable value="{!ccc}" var="c" id="ds">
  <apex:column value="{!c.AccountId}"/>
  <apex:column value="{!c.Name}"/>
  </apex:pageblockTable>
  </apex:pageBlock>
  <script>
  </script>
  </apex:form>
</apex:page>

output 
User-added image

After clicking on AccountQuery or ContactQuery I am getting the following output
User-added image

 
My Trigger scenario; Take two custom objects, okati master okati detail, when ever master email field updated all its detail records having email                                       as empty should get updated with masters email. 
Error   :    expecting a right parentheses, found 'RiskRel_mail__c' at line 10 column 7

Risk Object(Master)
Risk--Master Object
RiskRelationship(child)
RiskRelationship----child
trigger UpdateRelationship on Risk__c (After Update) {
set<Id> riskidtoquery = new  set<Id>();
for(Risk__c R: Trigger.new)
{
riskidtoquery .add(R.Id);
}
List<RiskRelationship__c> relationship = [select Id,RiskRel_mail__c from RiskRelationship__c where Risk__c IN:riskidtoquery];
for(RiskRelationship__c rr : relationship)
{
If(rr. RiskRel_mail__c =='' )( ERROR THROWING LINE)
{
  rr.RiskRel_mail__c = riskidtoquery.Risk_mail__c
}
}
Update rr;
}
Thanks and Regards,
sainath