• uzair
  • NEWBIE
  • 55 Points
  • Member since 2010

  • Chatter
    Feed
  • 2
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 24
    Questions
  • 31
    Replies

Hi,

 

This is my first time getting in touch with cloud computing and I am still clueless about a lot of stuff. I created a custom object with a picklist field. I have already entered the values and when I tried to create a new record of this object, I was able to select values from the picklist field, with an Admin profile. Then I created another account with Standard User profile, and when I tried to create a new record with this profile, the picklist field was disabled and I was unable to select or view anything from this field. Is it related to security setting? I was unable to find any help on this.

Really appreciate any help from the community.

Thanks alot!!!

Hi All,

I'm trying to deploy couple of triggers from sandbox to production org and I'm getting the following error 'chatter_answers_question_escalation_to_case_trigger.trigger -- Error: Entity is not org-accessible'. I'm getting the same error even when trying to make that trigger Inactive or delete it.

Could you all please help me overcome this error.
  • June 17, 2016
  • Like
  • 0

Hi All,

 

I'm unable to publish Site.com sites that I created while working on "Site.com Workbook".

 

I have 'Site.com Publisher User' permissions but the 'Publish Changes' button is not visible in my overview tab.

 

Is there some thing that I'm missing.

 

Thanks in Advance,

Uzair.

  • October 05, 2012
  • Like
  • 0

Hi All,

 

I'm writing a simple trigger to increment the value of a field.

 

trigger tgrCounter on Mileage__c (after insert, after update) {
	List MilToupdate = new List();
	for(Mileage__c Mlg : Trigger.new){
		Mlg.Counter__c = Mlg.Counter__c+1;
		MilToupdate.add(Mlg); 
	}
	update MilToupdate;
}

 

While saving the record i'm getting the following error message "Apex trigger tgrCounter caused an unexpected exception, contact your administrator: tgrCounter: execution of AfterUpdate caused by: System.FinalException: Record is read-only: Trigger.tgrCounter: line 4, column 1"

 

Any help to over come this would be highly appreciated.

 

Thanks in Advance,

Uzair.

  • September 17, 2012
  • Like
  • 0

Hi All,

 

Is there a way where we can Migrate all of our data from one production org to other production org; like for configuration we do it by deploying metadata from one org to other.

 

Any help would be highly appreciated.

 

Thanks in Advance.

Uzair

  • September 06, 2012
  • Like
  • 0

Hi All,

 

When I'm trying to delete certain fields on my production system I'm getting "Unable to Complete the Requested Change" page. The reason is displaying as "This custom field is referenced elsewhere in salesforce.com." ; in section it is displaying 'Flow'.

 

How to remove the field reference from the flow, as when I'm going to edit it is only allowing me to edit the flow name and description. However after deactivating the flow I'm getting the same notification.

 

Any help to overcome will be highly appreciated.

 

Thanks in Advance.

  • October 25, 2011
  • Like
  • 0

Hi All,

 

Is there any way where we can save an image a record. The image can be view when a record is opened.

 

I have a situation where I'm storing employee details and want to store an image of the employee.

 

Hope this helps in understanding my issue.

 

Any help regarding this will be highle appreciated.

 

Thanks in Advance.

  • October 10, 2011
  • Like
  • 0

Hi All,

 

Is there any way through which we can use the 'Force.com Flow User' User object Permission field in validation.

 

Thanks in Advance.

  • September 22, 2011
  • Like
  • 0

Hi All,

 

I'm writing a formula to formula field and I'm  exceeding the compiled size limit.

 

Is there any alternate for the following code :

 

CONTAINS( TEXT(Product_Name__c ), "Connect")

 Here Product_Name__c is a Picklist field.

 

Any help regarding this would be highly appreciated.

 

Thanks in Advance.

  • September 08, 2011
  • Like
  • 0

 Hi All,

 

I'm in a situation where I have written the formula for a formula field and I'm getting the below given error :

"Compiled formula is too big to execute (76,352 characters). Maximum size is 5,000 characters"

 

In the below formula 'Product_Name__c' and 'New_Supplier__c'  are picklist fields; 'Proposed_Supply_Start_Date__c' and 'Postage_Date__c' are date fields; 'Contract_Term_Months__c' is a number field; 'Amount' is the standard amount field of opportunity and 'Acquisition_Renewal__c' is a text field.

 

Here goes my formula :

 

IF(
  AND(  ISPICKVAL(  New_Supplier__c , "British Gas Business"),
    ( Proposed_Supply_Start_Date__c <  DATE(2012,05,01) ),
    ( Contract_Term_Months__c = 12)
  )
  ,  (Amount  * 0.8 ),
  IF(
   AND(  ISPICKVAL(  New_Supplier__c , "British Gas Business"),
     ( Proposed_Supply_Start_Date__c <  DATE(2012,05,01) ),
     ( Contract_Term_Months__c = 24)
   )
   ,  ((Amount/2)  * 0.8 ),
   IF(
    AND(  ISPICKVAL(  New_Supplier__c , "British Gas Business"),
      ( Proposed_Supply_Start_Date__c <  DATE(2012,05,01) ),
      ( Contract_Term_Months__c = 36)
    )
    ,  ((Amount/3)  * 0.8 ),
    IF(
     AND(  ISPICKVAL(  New_Supplier__c , "Eon"),
       ( Proposed_Supply_Start_Date__c <  DATE(2012,05,01) ),
       ( Acquisition_Renewal__c = "Renewal" ),
       ( CONTAINS( TEXT(Product_Name__c ), "Access") ),
       ( Contract_Term_Months__c = 36)
     )
     ,  (Amount),
     IF(
      AND(  ISPICKVAL(  New_Supplier__c , "Eon"),
        ( Proposed_Supply_Start_Date__c <  DATE(2012,05,01) ),
        ( Acquisition_Renewal__c = "Acquisition" ),
        ( CONTAINS( TEXT(Product_Name__c ), "Connect") ),
        ( Contract_Term_Months__c = 12)
      )
      ,  (Amount  * 0.6 ),
      IF(
       AND(  ISPICKVAL(  New_Supplier__c , "Eon"),
         ( Postage_Date__c  <  DATE(2012,05,01) ),
         ( Acquisition_Renewal__c = "Renewal" ),
         ( CONTAINS( TEXT(Product_Name__c ), "Connect") ),
         ( Contract_Term_Months__c = 12)
       )
       ,  (Amount  * 0.6 ),
       IF(
        AND(  ISPICKVAL(  New_Supplier__c , "Eon"),
          ( Proposed_Supply_Start_Date__c  <  DATE(2012,05,01) ),
          ( Acquisition_Renewal__c = "Acquisition" ),
          ( CONTAINS( TEXT(Product_Name__c ), "Connect") ),
          ( Contract_Term_Months__c = 24)
        )
        ,  (Amount  * 0.5 ),
        IF(
         AND(  ISPICKVAL(  New_Supplier__c , "Eon"),
           ( Postage_Date__c  <  DATE(2012,05,01) ),
           ( Acquisition_Renewal__c = "Renewal" ),
           ( CONTAINS( TEXT(Product_Name__c ), "Connect") ),
           ( Contract_Term_Months__c = 24)
         )
         ,  (Amount  * 0.5 ),
         IF(
          AND(  ISPICKVAL(  New_Supplier__c , "Eon"),
            ( Proposed_Supply_Start_Date__c  <  DATE(2012,05,01) ),
            ( Acquisition_Renewal__c = "Acquisition" ),
            ( CONTAINS( TEXT(Product_Name__c ), "Connect") ),
            ( Contract_Term_Months__c = 36)
          )
          ,  (Amount  * 0.4 ),
          IF(
           AND(  ISPICKVAL(  New_Supplier__c , "Eon"),
             ( Postage_Date__c  <  DATE(2012,05,01) ),
             ( Acquisition_Renewal__c = "Renewal" ),
             ( CONTAINS( TEXT(Product_Name__c ), "Connect") ),
             ( Contract_Term_Months__c = 36)
           )
           ,  (Amount  * 0.4 ),0
          )
         )
        )
       )
      )
     )
    )
   )
  )
 ) 

 

Any help to overcome this error will be highly appreciated.

 

Thanks in Advance.

 

  • September 07, 2011
  • Like
  • 0

Hi all,

 

I have a situation where, the Standard Field 'Extension' of User Object needs to be Unique.

 

Is there any way I can make this field unique.

 

Any help regarding this would be highly appreciated.

 

Thanks in Advance,

Mohammed Uzair.

  • June 24, 2011
  • Like
  • 0

Hi All,

Is there any way to hide a tab from all the profiles at a time.

Thanks in advance.

  • February 10, 2011
  • Like
  • 0

Hi All,

 

I have a trigger for which I have written testmethod. The code coverage of trigger is not increasing. I'm New to this thing.

 

The following is the trigger code for which I wrote Test method.

 

datetime myDate =  datetime.newInstance(2009, 07, 02);
      if(trigger.new[i].Field1__c ==   'No' && trigger.new[i].CreatedDate > myDate){
        if(trigger.new[i].Field2__c != trigger.new[i].Field3__c){
          trigger.new[i].adderror('The Field two and three should be equal');
        }
        
      }

 

The test method which I wrote is :

 

public static testMethod void OppBeforeUpdate1(){
    Opportunity newOpp = new Opportunity();
    newOpp = setupOpp(); // In this method I have Inserted an Opportunity, Account, Contact.
    newOpp.Field1__c = 'No';
    newOpp.Field2__c = 'Gas';
    newOpp.Field3__c = 'Electricity';
    update newOpp; // Updating the Opportunity.
}

 

 

When I'm Clicking "Run Test" on the Classes folder.

 

Under the trigger a warning message is displaying like "Line 30 , Column 30 Not Covered"

 

Any help regarding this will be appreciated.

 

 

Thanks in Advance.

  • December 14, 2010
  • Like
  • 0

Hi all,

 

I had created an approval process, to automate the submission I wrote a trigger.

 

I used the below Condition to Exclude profiles from entering the approval process.

 

 

if(trigger.new[i].stageName != 'Closed Won' && oldOpp.stageName == 'Closed Won' && (UserInfo.getProfileId() !='00e200000019jtu' && UserInfo.getProfileId() !='00e20000000seRt' ))

 

The records are getting locked for all the Profiles, even for the excluded profiles.This should not be the Case.

 

In the approval process I used the criteria as:

Opportunity: Stage not equal to Closed Won

Any help to over this issue come will be appreciated.

Thanks in Advance.
  • December 03, 2010
  • Like
  • 0

Hi All,

 

I'm receiving the following messsage when i'm clicking on some link(s) in my salesforce production environment.

 

 

This XML file does not appear to have any style information associated with it. The document tree is shown below.
      
−
<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>8379CEFB0AB1D7AD</RequestId>
−
<HostId>
ffFVux5NmGDQSDs/q9SO/+kdNCDzayhqy7qm/cwaRYfujSvHro+z1DaMH0OmufT4
</HostId>
</Error>

 

Why this message is displaying. How to over come this message.

 

Any help regarding this will be appreciated.

 

Thanks in Advance.

 

  • November 30, 2010
  • Like
  • 0

Hi All,

 

While transferring account to the user I received notification as following:

 

Transfer Requires Read

The new owner must have "Read" permissions on this type of record.
Click here to return to the previous page.

 

For this I'd created a Role below to User's role to whom I'm transferring and when I'm transferring the record to the user I got the same notification message. I tried to over come by creating a sharing rule, but the result is same.

 

Hope this will help you to understand my problem.

 

Any help to overcome this notification will be highly appreciated.

 

Thanks in Advance.

  • October 26, 2010
  • Like
  • 0

Hi All,

 

Is it possible to make use of URLFOR based on condition like given below

 

 

"{!URLFOR($Resource.Stylesheets, '{!IF(true, "images/red_bg.png","images/blue_bg.png" )}' )}"

 

 

If it is possible kindly provide a sample example.

 

Any help regarding this will be appreciated.

 

Thanks in Advance.

  • October 20, 2010
  • Like
  • 0

Hi all,

 

I have created two pages, by name 'A' and 'B'.

 

What I require is, if I click 'Click here for B' link from the page 'A' the popup window should appear and display the page 'B' after filling the details in page 'B' when i click 'Ok' button of the page 'B', the page 'B' should disappear and the page 'A' should be continued.

 

Any help regarding this will be highly appreciated.

 

Note that I want to do this with out using java script.

 

Thanks in Advance.

  • October 08, 2010
  • Like
  • 0

Hi All,

 

How to use a field in validation from other object that does not have relation in between.

The StageName and Renewal are from 'Opportunity' and Details_Required_for_Renewals__c is from the object 'Product'.

There is no relationship in between the Opportunity and Product objects(means no lookup or masterdetail field is created)

 

I wrote the formula as given:

AND(
           Renewal__c="", 
           OR(  ISPICKVAL( StageName, "Signed contract received"),
                    ISPICKVAL( StageName, "Closed Won")),
           $ObjectType.Product__c.Fields.Details_Required_for_Renewals__c, "FALSE"
 )

when i'm clicking check for syntax i'm getting the following error

" Incorrect parameter for function AND(). Expected Boolean, received Object "

 

any help to overcome this error will be appreciated.

 

Thanks in Advance.

  • September 22, 2010
  • Like
  • 0

Hi All,

 

I have created a visualforce page consisting of four fields A, B, C and D.

I'm accessing this page from Accounts and Opportunities.

 

What I require is :

When i'll access this page from Accounts the field 'C' should become read only and the field 'D' should be Hidden.

But when i'll access this page from Opportunities all the fields should be editable and visible

 

any help regarding this will be appreciated.

 

Thanks in Advance.

  • September 22, 2010
  • Like
  • 0

Hi all,

 

Is there any way such that i can get whole number as shown below.

100

instead of getting as 100.00 for number field.

 

your response will be appreciated.

 

Thanks in Advance.

  • August 10, 2010
  • Like
  • 0
Hi All,

I'm trying to deploy couple of triggers from sandbox to production org and I'm getting the following error 'chatter_answers_question_escalation_to_case_trigger.trigger -- Error: Entity is not org-accessible'. I'm getting the same error even when trying to make that trigger Inactive or delete it.

Could you all please help me overcome this error.
  • June 17, 2016
  • Like
  • 0

Hi All,

 

I'm unable to publish Site.com sites that I created while working on "Site.com Workbook".

 

I have 'Site.com Publisher User' permissions but the 'Publish Changes' button is not visible in my overview tab.

 

Is there some thing that I'm missing.

 

Thanks in Advance,

Uzair.

  • October 05, 2012
  • Like
  • 0

Hi All,

 

I'm writing a simple trigger to increment the value of a field.

 

trigger tgrCounter on Mileage__c (after insert, after update) {
	List MilToupdate = new List();
	for(Mileage__c Mlg : Trigger.new){
		Mlg.Counter__c = Mlg.Counter__c+1;
		MilToupdate.add(Mlg); 
	}
	update MilToupdate;
}

 

While saving the record i'm getting the following error message "Apex trigger tgrCounter caused an unexpected exception, contact your administrator: tgrCounter: execution of AfterUpdate caused by: System.FinalException: Record is read-only: Trigger.tgrCounter: line 4, column 1"

 

Any help to over come this would be highly appreciated.

 

Thanks in Advance,

Uzair.

  • September 17, 2012
  • Like
  • 0

Hi All,

 

Is there a way where we can Migrate all of our data from one production org to other production org; like for configuration we do it by deploying metadata from one org to other.

 

Any help would be highly appreciated.

 

Thanks in Advance.

Uzair

  • September 06, 2012
  • Like
  • 0

Hi all,

 

I have created a workflow on opportunity,  When the stage equals closed won email is sending to some users,

I need to send the notes and attachments of the opportunity with that email notification!!
Is it possible in the work flow??
Plz help on this...

 

Thanks

Hi All,

 

When I'm trying to delete certain fields on my production system I'm getting "Unable to Complete the Requested Change" page. The reason is displaying as "This custom field is referenced elsewhere in salesforce.com." ; in section it is displaying 'Flow'.

 

How to remove the field reference from the flow, as when I'm going to edit it is only allowing me to edit the flow name and description. However after deactivating the flow I'm getting the same notification.

 

Any help to overcome will be highly appreciated.

 

Thanks in Advance.

  • October 25, 2011
  • Like
  • 0

Hi All,

 

Is there any way where we can save an image a record. The image can be view when a record is opened.

 

I have a situation where I'm storing employee details and want to store an image of the employee.

 

Hope this helps in understanding my issue.

 

Any help regarding this will be highle appreciated.

 

Thanks in Advance.

  • October 10, 2011
  • Like
  • 0

Hi All,

 

I'm writing a formula to formula field and I'm  exceeding the compiled size limit.

 

Is there any alternate for the following code :

 

CONTAINS( TEXT(Product_Name__c ), "Connect")

 Here Product_Name__c is a Picklist field.

 

Any help regarding this would be highly appreciated.

 

Thanks in Advance.

  • September 08, 2011
  • Like
  • 0

Hi All,

 

While transferring account to the user I received notification as following:

 

Transfer Requires Read

The new owner must have "Read" permissions on this type of record.
Click here to return to the previous page.

 

For this I'd created a Role below to User's role to whom I'm transferring and when I'm transferring the record to the user I got the same notification message. I tried to over come by creating a sharing rule, but the result is same.

 

Hope this will help you to understand my problem.

 

Any help to overcome this notification will be highly appreciated.

 

Thanks in Advance.

  • October 26, 2010
  • Like
  • 0

Hi All,

 

I have created a visualforce page consisting of four fields A, B, C and D.

I'm accessing this page from Accounts and Opportunities.

 

What I require is :

When i'll access this page from Accounts the field 'C' should become read only and the field 'D' should be Hidden.

But when i'll access this page from Opportunities all the fields should be editable and visible

 

any help regarding this will be appreciated.

 

Thanks in Advance.

  • September 22, 2010
  • Like
  • 0

Hi,

 

This is my first time getting in touch with cloud computing and I am still clueless about a lot of stuff. I created a custom object with a picklist field. I have already entered the values and when I tried to create a new record of this object, I was able to select values from the picklist field, with an Admin profile. Then I created another account with Standard User profile, and when I tried to create a new record with this profile, the picklist field was disabled and I was unable to select or view anything from this field. Is it related to security setting? I was unable to find any help on this.

Really appreciate any help from the community.

Thanks alot!!!

For example if the first field is 10, the second is 5 and the third is 3, they should get the error message. the second and third added together should match the first..what is wrong???

 

 

IF( The_number_of_Enrollment_Mtgs_Requested__c   = How_many_enrollment_mtgs_did_VMC_conduct__c +  How_many_meetings_did_others_conduct__c   , The_number_of_Enrollment_Mtgs_Requested__c   = How_many_enrollment_mtgs_did_VMC_conduct__c  +  How_many_meetings_did_others_conduct__c ,  The_number_of_Enrollment_Mtgs_Requested__c    >    How_many_enrollment_mtgs_did_VMC_conduct__c +  How_many_meetings_did_others_conduct__c )

  • August 11, 2010
  • Like
  • 0

Hi all,

 

I have a problem with merging the date field into the visualforce page.

I used {!Oppr.Entry_Date__c} it displayed "Tue Aug 10 00:00:00 GMT 2010".

I require the format to be "Tue Aug 10 2010".

How to change the format to achieve my requirement.

Any help regarding this will be appreciated.

 

Thanks in Advance.

  • August 09, 2010
  • Like
  • 0

I am invoking an approval process in an after update trigger which results in bunch of runtime errors. The approval process works flawlessly when submitted through default "Submit for Approval" button

 

below is my trigger code and the run time error messages 

 

trigger Approval_Process on SPA__c (after update){

for(SPA__c sp: Trigger.new){

if (sp.Submit_for_Approval__c){

Approval.ProcessSubmitRequest req1 = new Approval.ProcessSubmitRequest();

req1.setComments('Submitting request for approval.');

req1.setObjectId(sp.id);

req1.setNextApproverIds(new Id[] {UserInfo.getUserId()});

//req1.setNextApproverIds='005Q0000000IFNf';

Approval.ProcessResult result = Approval.process(req1);

System.assert(result.isSuccess());

System.assertEquals('Pending', result.getInstanceStatus(), 'Instance Status'+result.getInstanceStatus());

}

}

}

 The runtime errors I get are

CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY

NO_APPLICABLE_PROCESS

 

The detailed message is below

 

Error: Invalid Data. Review all error messages below to correct your data.Apex trigger Approval_Process caused an unexpected exception, contact your administrator:

Approval_Process: execution of AfterUpdate caused by: System.DmlException: Process failed. First exception on row 0; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY,

Approval_Process: execution of AfterUpdate caused by: System.DmlException: Process failed. First exception on row 0; first error: NO_APPLICABLE_PROCESS, No applicable approval process found.: [] Trigger.Approval_Process: line 11, column 45: []: Trigger.Approval_Process: line 11, column 45

 

 

 

 

 

  • January 21, 2010
  • Like
  • 0