• kamal3883
  • NEWBIE
  • 35 Points
  • Member since 2013

  • Chatter
    Feed
  • 1
    Best Answers
  • 2
    Likes Received
  • 0
    Likes Given
  • 35
    Questions
  • 21
    Replies
Hi All,

I am trying to enforce assignment rules through after update trigger. Here is complete scenario:

1) Time based workflow is updating owner of case.
2) In after update trigger, i am enforcing assignment rules.

Checked debug logs and figured out after update part is running successfully. There is no exception but assignment rules are not working. 

If i am updating case owner directly, assignment rules are working correctly.
I want to add two columns in my grid. Right now grid is showing only 1 column.
<apex:repeat value="{!listofaccount}" var="abc" >
        <br></br> 
            <ul class="slds-list--horizontal slds-has-cards--space has-selections">
                 <li class="slds-list__item">              
                     <div class="slds-col slds-size--1-of-1 slds-small-size--1-of-1 slds-medium-size--1-of-1 slds-large-size--1-of-2">
                <div class="slds-list--horizontal name-value-pair">
                <div class="slds-item--label slds-text-title slds-truncate" title="Start Date">a</div>
                    <div class="slds-item--detail slds-p-bottom--xx-small">
                        <apex:outputfield value="{!abc.a__c}"/> 
                    </div>
                </div>
                
                <div class="slds-list--horizontal name-value-pair">
                    <div class="slds-item--label slds-text-title slds-truncate" title="Group">b</div>
                    <div class="slds-item--detail slds-p-bottom--xx-small">
                        <apex:outputfield value="{!abc.b__c}"/> 
                    </div>
                </div>
            </div>
			<div class="slds-col slds-size--1-of-1 slds-small-size--1-of-1 slds-medium-size--1-of-1 slds-large-size--1-of-2">           
                                    
                <div class="slds-list--horizontal name-value-pair">
                <div class="slds-item--label slds-text-title slds-truncate" title="Start Date">c</div>
                <div class="slds-item--detail slds-p-bottom--xx-small">
                        <apex:outputfield value="{!abc.c__c}"/> 
                </div>  
              </div>  
				
                
            </div>
              </li>
            </ul>
         </apex:repeat>
Hi,

Can we create territory record in test class or we need to query it. Can sombody help with example code or procedure to do same.

I just need to create account assignement in test class.

Thanks
 
Hi All,

Is there is any possible way to identify when a new territory is assigned to account. Actually when we assign territory to account a record of object ObjectTerritory2Association is created. But we cannot write trigger on ObjectTerritory2Association. So is there anything through which i can identify same in Apex. Anyother solution like creating fields or trigger on any object through which i can acheive same.
Hi,

Can anyone tell me is it possible to extract email signature(Salesforce Standard present in My Email Settings) in Apex. We just want to extract through apex so that we can append it in some pages.

Thanks
 
Hi,

Can anybody help me on this one:

1) i want to upload files to Chatter posts through rest api only way for this one is using binary files but how can we upload PPT or doc using binay files.
2) In same way is there any way to reterive files directly from chatter posts instead of going to content.
Hi, 

I am facing one issue in opening file genrated from Visualforce page. Data is exported properly but there is one problem in opening excel. 

When i try to open it, it says file is in different format to wat it mentioned in file extensions.

One thing which might be helpful we are adding data in excel in form of datatable.
Can anybody please help me with VF page and controller of below page. i develop one page but not able to add accept button in each row. Button should update Row whenever ClickedUser-added image
Hi, 

I try to autofill a lookup field on Case on click of Java script button. This lookup field is dependent on Account lookup on case. Account field is populated absoultey fine. But i am getting this error "Value does not exist or does not match filter criteria".  Value is also correct. Even i was not facing any issue on save of record. only problem is its showing error on edit page which is very weird.Here is part  of code:

&CF00Nm0000000JZ5l={!URLENCODE(Asset__c.Name)}&CF00Nm0000000JZ5l__lkid = {!Asset__c.Id } "
Hi all,

we have custmize milestone related list on case. now we want to setup custom clock from point of creation of milestone using custom firld.

Can you help me in setting a custom clock which runs in this form 00:00. 
Hi,

i have configured few case Milestones in my org. whenever i am creating new case, milestones get associated to the case as per criteria. after some time milestones violates. but i am not geeting violation emails and also if there is any field update is configured on violation is not working.

Is there any specific reason for this. this is very critical issue for us.

Thanks 

Hi,

i want to send an email to certain group of people at 1 pm and 4 pm. actually we are using milestone and business hour at  account level. finally what we need to send an email at 1 pm and 4 pm but this time calculation is based on time zone of account(custom). please suggest any way for this.

i am using formula field and apex but somehow its not so dynmaic.
Hi,

I want to display violation image in visualforce page. Please find below statement where i want to display Violation image.

<apex:outputText value="{!if(caseWrap.caseMile.IsViolated, 'Violated', null)}" ></apex:outputText>

instead of violated i want to add violation image shown in case milestone. Please check sample in Image. Can we use static resource for this. Then how can we use Image tag in that case in this syntax.

User-added image
Hi,

I want to extract Name field of Case milestone. But somehow this field is not available in Case milestone Metadata. if anyone knows please let me know any possible way.

I want to custmize Case milestone.
Hi,

i have a requirement where i need timezone dynamically. its like this:

Suppose i create a case with some account and that account have country/city X. now i need to create timezone or business hour on case as per this city X.

is there any app present on app exchange which help in getting timezones as per city.

Thanks 

Hi,


I want to access List custom setting in Custom Java script. can anybody help me with pseudo code and is it possible to access it like other salesforce custom object.

i dont want to call Apex method and want to write complete logic in button only.

Hi,

 

I want to create a report on lead which shows all leads having same email id. Requirement is like this:

 

We need to create a link on Lead detail page which shows all leads having same email id as current Lead.

 

Can anybody suggest how can i acheive this.

 

Thanks 

 

Hi,

 

 

I want to open serach page in subtab of service console. below is some part of code. can somebody help me figuring out error. 

 

<apex:page Controller="searchp" tabStyle="Asset__c" showHeader="true" sidebar="false">
<style>
    .pageBlockStyle{
        border-style: solid;
        border-width: 2px;
   }
</style>
<apex:includeScript value="/soap/ajax/26.0/connection.js"/>
<apex:includeScript value="/support/console/26.0/integration.js"/>
<script type="text/javascript">     

       var openSubtabTimer = null;
       
       function openAssetSubtab() {
       
           // Use the results primary tab id and open a new subtab 
           var openSubtab = function(result) {               
                sforce.console.openSubtab(primaryTabId , '/' + assettab.Id, false,
                assettab.Name, null, null);           
                clearTimeout(openSubtabTimer);
            };
            // Get the enclosing primary tab id. The openSubtab method is set as the callback
            sforce.console.getEnclosingPrimaryTabId(openSubtab);
       }       
      
       var previousOnload = window.onload;        
       window.onload = function() { 
            if (previousOnload) { 
                previousOnload();
            }                
           openSubtabTimer = setTimeout('openAssetSubtab()', '500'); 
       }
   </script>
    
<apex:form >
            <apex:pageBlock id="pblock" >
            <apex:pageblocksection title="Search Hardwareasset" columns="1"  >
  <!--          <apex:panelGrid columns="1" cellspacing="15%" >  -->
                 <apex:pageBlockSection columns="4">  
                    <apex:pageBlockSectionItem >
                        <apex:outputLabel >Search</apex:outputLabel>
                        <apex:inputText value="{!searchString}" id="idSearch" />
                    </apex:pageBlockSectionItem>
                     </apex:pageBlockSection>
              <apex:pageBlockSection columns="2" >
                    <apex:commandButton value="Search" action="{!Search}" reRender="pblock" status="status" />
                    <apex:actionStatus startText="Searching... " id="searching"/>  
                </apex:pageBlockSection>
                </apex:pageBlockSection> 
                <br />
             <div style="border-top:#EAC117 2px solid;"></div>
             <apex:actionStatus id="status" startText="Please wait while we are getting the results..." style="color:red" />
            <br /> 
             
            <apex:pageMessages />
            <br />
                          
          <apex:pageblocksection title="Search Result" columns="1" id="pbs" rendered="{!(pageNumber>0)}"  >
            
            
            <apex:panelGrid columns="2" >
            <apex:outputpanel >
            
            Page #:&nbsp;<apex:outputLabel value="{!pageNumber}"/> out of &nbsp;<apex:outputLabel value="{!totalPageNumber}"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            
            <apex:commandButton value="Previous" action="{!previousBtnClick}" disabled="{!previousButtonEnabled}" reRender="pbs"></apex:commandButton>
            &nbsp;&nbsp;
            <apex:commandButton value="Next" action="{!nextBtnClick}" reRender="pbs" disabled="{!nextButtonDisabled}" ></apex:commandButton>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
           &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <apex:outputLabel >Show Record Per Page </apex:outputLabel>&nbsp;&nbsp;
                         <apex:selectList value="{!recordPerPage}" size="1" multiselect="false" >
                                       <apex:selectOption itemValue="5" itemLabel="5"/>
                                       <apex:selectOption itemValue="10" itemLabel="10"/>
                                       <apex:selectOption itemValue="25" itemLabel="25"/>
                                   <apex:actionSupport event="onchange" action="{!resetPgSize}" status="pagesizereset"  rerender="pbs" />
                          </apex:selectList>
                               <apex:actionStatus id="pagesizereset" startText="Loading..."/>

           </apex:outputpanel>
            </apex:panelGrid>
            <body onLoad="Init()"/>
            <apex:pageBlockTable value="{!assetListToShow}" var="var" id="idDataTableasset" border="1"  styleClass="pageBlockStyle" >
                
                 <apex:column id="idColIsPublish" headerValue="Asset Name" headerClass="pageBlockStyle">
                 <apex:outputlink value="#" onclick="window.open('/{!var.id}')">{!var.Name}</apex:outputlink>
                 
               
                       
                 </apex:column>
                 <apex:column id="idColasset" headerValue="Serial number" headerClass="pageBlockStyle">
                       <apex:outputField value="{!var.Serial_Number__c}" />
                 </apex:column>
                 
                  <apex:column id="idColCreated" headerValue="Created Date" headerClass="pageBlockStyle" >
                       <apex:outputField value="{!var.createdDate}" />
                 </apex:column>
                 
           </apex:pageBlockTable>
           </apex:pageblocksection>
                </apex:pageblock>
                </apex:form>
</apex:page>

 

Hi,

 

I am setting few fields of lead through URL hack. i want user should not able to edit these fields.

 

Complete thing is i want to make few fields on Lead standard page read only without using any profile or object settings.

Hi,

 

i want to add hover message on outputlink in visualforce page. Mini page layout is not required is not required as hover message.

 

requirement is something like this: this is mouseover event. whenever someone hover mouse over outputlink it should show description field of that record.

 

Please let me know if you dont get my problem.

 

Thanks

Hi,

i have a requirement where i need timezone dynamically. its like this:

Suppose i create a case with some account and that account have country/city X. now i need to create timezone or business hour on case as per this city X.

is there any app present on app exchange which help in getting timezones as per city.

Thanks 

Hi, I want to implement case age using formula field. my requirement is like this. 1) Only weekdays are business days. 2) i also want to use business hours. suppose if business hour is 8am to 8 pm. so after 10 days it should say 120 not 240 hours.

 

i tried this formula 

1) CASE(MOD( datevalue(CreatedDate)- DATE(1985,6,24),7), 

0 , CASE( MOD( ClosedDate - CreatedDate,7),1,2,2,3,3,4,4,5,5,5,6,5,1), 
1 , CASE( MOD( ClosedDate - CreatedDate ,7),1,2,2,3,3,4,4,4,5,4,6,5,1), 
2 , CASE( MOD( ClosedDate - CreatedDate,7),1,2,2,3,3,3,4,3,5,4,6,5,1), 
3 , CASE( MOD( ClosedDate - CreatedDate,7),1,2,2,2,3,2,4,3,5,4,6,5,1), 
4 , CASE( MOD( ClosedDate - CreatedDate,7),1,1,2,1,3,2,4,3,5,4,6,5,1), 
5 , CASE( MOD( ClosedDate - CreatedDate,7),1,0,2,1,3,2,4,3,5,4,6,5,0), 
6 , CASE( MOD( ClosedDate - CreatedDate,7),1,1,2,2,3,3,4,4,5,5,6,5,0), 
999) 

(FLOOR(( ClosedDate - CreatedDate)/7)*5)

 

 

Hi All,

I am trying to enforce assignment rules through after update trigger. Here is complete scenario:

1) Time based workflow is updating owner of case.
2) In after update trigger, i am enforcing assignment rules.

Checked debug logs and figured out after update part is running successfully. There is no exception but assignment rules are not working. 

If i am updating case owner directly, assignment rules are working correctly.
Hi All,

Is there is any possible way to identify when a new territory is assigned to account. Actually when we assign territory to account a record of object ObjectTerritory2Association is created. But we cannot write trigger on ObjectTerritory2Association. So is there anything through which i can identify same in Apex. Anyother solution like creating fields or trigger on any object through which i can acheive same.
Hi, 

I try to autofill a lookup field on Case on click of Java script button. This lookup field is dependent on Account lookup on case. Account field is populated absoultey fine. But i am getting this error "Value does not exist or does not match filter criteria".  Value is also correct. Even i was not facing any issue on save of record. only problem is its showing error on edit page which is very weird.Here is part  of code:

&CF00Nm0000000JZ5l={!URLENCODE(Asset__c.Name)}&CF00Nm0000000JZ5l__lkid = {!Asset__c.Id } "
Hi all,

we have custmize milestone related list on case. now we want to setup custom clock from point of creation of milestone using custom firld.

Can you help me in setting a custom clock which runs in this form 00:00. 
Hi,

i have configured few case Milestones in my org. whenever i am creating new case, milestones get associated to the case as per criteria. after some time milestones violates. but i am not geeting violation emails and also if there is any field update is configured on violation is not working.

Is there any specific reason for this. this is very critical issue for us.

Thanks 

Hi,

I want to display violation image in visualforce page. Please find below statement where i want to display Violation image.

<apex:outputText value="{!if(caseWrap.caseMile.IsViolated, 'Violated', null)}" ></apex:outputText>

instead of violated i want to add violation image shown in case milestone. Please check sample in Image. Can we use static resource for this. Then how can we use Image tag in that case in this syntax.

User-added image

Hi,

 

I want to implement case age using formula field. my requirement is like this.

 

1) Only weekdays are business days.

 

2) i also want to use business hours. suppose if business hour is 8am to 8 pm.  so after 10 days it should say 120 not 240 hours.

Hi,

 

I want to default email template in send an email button in email section. 

 

Solution: i can do this by customizing send an email button. but issue is i cant add this button on email section on case. (email section is not customiziable on page layout).

 

we can create button on task and add it in open activity section. but i want to add this button in email section.

 

Other approch: using support settings on case for defaulting email template in send an email button. anybody knows whether  its possible to use 'Enable default email templates' option in support settings for this.

suppose i want to query all entitlement template on product. can anybody help. its very urgent.

Hi,

 

I want to dynamically extract parentid of account. this is like this.

 

suppose we have account hiearchery A--B--C---D--E . now on E i want to populate id of A. but i dont know length of hiearchery. 

 

Can somebody help on this ?

HI all,

 

I want to do sorting of map based on value. here is code:

 

for (Pricebook2 pb : [select id, Name from Pricebook2 where id in :ids order by name])
        {
            myPBNames.put(pb.id, pb.name);
        }

 

Results are got sorted based on id. But i want this should be based on name.

 

Even Order by is not working. Please suggest.

Hi,

 

I want to show progress bar in new window. Actually we have a functionality where we want to show progress bar when someone click on search button. This progree bar should display in new window.

 

some code:

j$( "#progressbar" ).show().progressbar({
                value: 25
            });

 

After serach is complete i want window should return back to normal.

Hi,

 

We want to setup secure connection from public domain website. Can anyone explain process.

 

issue is : 1) One should enter credit card details at public domian website. we want to hit salesforce through secure connection. connection over Https.

HI,

 

We try to implement horizontal scroll bar in apex: select.

 

  Issue: Horizontal size of multi select picklist is small. So we are not able to show full message. I am not able to add  any attachment.  

we have implemented following code.

 

<apex:selectList id="ifOfferGoal" label="Offer Goal"

                                    value="{!selectsOffer.offerGoal__c}" size="1"

                                    multiselect="false" style="width:205px">

                                    <apex:selectOptions value="{!offerGoal}" />

                                </apex:selectList>

 

Thanks

Kamaljit