• Deepak Pansari
  • NEWBIE
  • 80 Points
  • Member since 2008

  • Chatter
    Feed
  • 3
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 79
    Questions
  • 63
    Replies
Hi All,

We are getting this error while inserting Case Manual share records through Apex manual sharing.

duplicate value found: <unknown> duplicates value on record with id: <unknown>

We are not able to identify and reproduce this error.

Can someone provide some inputs on cause of this error?

Thanks
Deepak

Hi All,

 

Opportunity split feature is introduce in Summer 13 release , does anyone know if we can create validation rule on Opportunity split .

 

My requirement is like once the split amount is set , no one can edit this value.

 

Please let me know.

 

Regards,

Deepak

Hi All,

 

I trying to create a VF page with inline editing feature , But I am unable to make some field as Required on the page.

 

Can any one have any idea !!!. Below is the code snippet

 

/// Code -  

<apex:outputField value="{!contact.lastname}">  
                <apex:inlineEditSupport showOnEdit="saveButton, cancelButton"  
                hideOnEdit="editButton" event="ondblclick"  
                changedStyleClass="myBoldClass" resetFunction="resetInlineEdit"/>  

</apex:outputField> 

 

Regards,

Deepak

Hi All,

 

Is there any way to create custom field via code like apex code or Webservice.

 

Can some one guide me.

 

Thanks,

Deepak

Hi All,

 

Can any one tell me how to populate  "PartnerAccountid" in Opportunty , when I trt to insert it , I get error "Error: Compile Error: Field is not writeable: Opportunity.PartnerAccountId at line"

 

Pleasl let me know.

 

- Deepak

Hi All,

 

I have a code which are getting all the fields name and their properties like api name, label , data type.

 

Now for deployed the code I am getting this exception :

System.SObjectException: Field Lead.LastViewedDate is inaccessible in this context.

 

It seems that there is a field "LastViewedDate" , I have checked all fields but I am not able to find this.

Please let me know if any one have any idea.

 

Regards,

Deepak

 

Hi ,

 

I have overrided lead convert button and then redirected to account page.

 

Now the issue here is , I have a trigger on lead after update which sends email to user , it wont fire when lead conversion process is over , But when I use standard lead conversion , then trigger gets fire.

 

So my question is does the trigger on lead will not fire if we use custom lead conversion process.

 

Regards,

Deepak Pansari

Hi All,

 

I have 2 trigger ( before update) in Lead object , Trigger1 and Triiger2.

 

Is there any way , where i system will fire only one trigger.

 

I mean to say , if any one of trigger is executed then second one will not executed , order does not matter.

 

Any idea , apart from setting a flag in lead object.

 

Thanks,

Deepak 

 

 

Hi,

 

As a company  have different roles heirarchy  CEO-->VP-->Director-->Manger

 

and now , i want a report role hierachy wise for example VP wants to see , it show director wise report , as explain in below sample graph.

 

 

 

In sort I want report  based on role heirarchy for Opportunty object.

 

Does any one has any idea about how do i can build his In Dashboard.

 

Thanks,

Deepak 

Hi All,

 

I need to call two functions and want a delay of 10 seconds between then.

 

It is possible with Apex code ?

 

Thanks,

Deepak

Hi All,

 

I have a custom object  , if user is delete a record for that object it goes to Recycle bin and user will able to restore it.

 

I want to prevent user to restoring the record fron recycle bin.

 

Can some one help me ?

 

- Deepak 

 

Hi,

 

Does any one know how do i get Step Number or Step name from a approval process via apex code?

 

Regards,

Deepak

Hi,

 

I have created a custom object and wanted to give "Read" permision to all profile (custom/standard) ,

 

Can some one tell me how it can be done?

 

Many thanks,

Deepak Pansari 

Hi,

 

I have contract which are associated with an account , when I change Account owner , the contract owner will change automatically , is there any way to prevent this , or to track account owner change ?

 

Thanks,

Deepak Pansari

Hi All,

 

I have ip rescrition issue. My ip address is 112.111.X.Y , Every time value of X and Y has changed and i need to daily enter IP in SFDC.

 

Does any know any solution for this , i tried this also   112.111.0.0 to 112.111.255.255 , but it not working.

 

Thanks,

Deepak

Hi All,

 

I want to send  500+ emails from my batch class with mass email class.

 

My question : is it possible or i will face any governor limit , I am using unlimited edition of SFDC.

 

Thanks,

Deepak 

Hi All,

 

Some how my sandbox classes and trigger are refreshed by production code.

 

can some one tell me how it is possible and is there any way to prevent it ?

 

Thx,

Deepak

Hi All,

 

As we know related list is displaying limited number of records in the list , rest records are viewed by paging.

 

Is there any way to increase / Set the record count of for related list.

 

 

- Deepak 

Hi All,

 

Is there any way to get Users Id from Queue via Apex ?

 

- Deepak

Hi All,

 

I need to re-assign Approval to some one else via apex code , when an object is already submitted for approval and status is pending.

 

Any help ?

 

Deepak

 

Hi All,

We are getting this error while inserting Case Manual share records through Apex manual sharing.

duplicate value found: <unknown> duplicates value on record with id: <unknown>

We are not able to identify and reproduce this error.

Can someone provide some inputs on cause of this error?

Thanks
Deepak

Hi All,

 

Opportunity split feature is introduce in Summer 13 release , does anyone know if we can create validation rule on Opportunity split .

 

My requirement is like once the split amount is set , no one can edit this value.

 

Please let me know.

 

Regards,

Deepak

Hello,

 

In apex exist some method for get information about Page Layout similar to sforce_api --> describeLayout but I need in Apex

 

Thanks.

  • November 29, 2012
  • Like
  • 0

Hi All,

 

Is there any way to create custom field via code like apex code or Webservice.

 

Can some one guide me.

 

Thanks,

Deepak

Hi All,

 

I have a code which are getting all the fields name and their properties like api name, label , data type.

 

Now for deployed the code I am getting this exception :

System.SObjectException: Field Lead.LastViewedDate is inaccessible in this context.

 

It seems that there is a field "LastViewedDate" , I have checked all fields but I am not able to find this.

Please let me know if any one have any idea.

 

Regards,

Deepak

 

Hello ,

 

I am trying to create a chatter posts with @mentions from REST API but want to post these chatter with a different user and not as logged in user for REST API , Can this be possible I know we can do this using apex code by setting CreatedById but @mentions are not possible through APEx hence I am using rest api from salesforce. Please let me know if anybody has any solution for this ?

 

Thanks and Regards,

Atul

Hi ,

 

I have overrided lead convert button and then redirected to account page.

 

Now the issue here is , I have a trigger on lead after update which sends email to user , it wont fire when lead conversion process is over , But when I use standard lead conversion , then trigger gets fire.

 

So my question is does the trigger on lead will not fire if we use custom lead conversion process.

 

Regards,

Deepak Pansari

Hi All,

 

I need to call two functions and want a delay of 10 seconds between then.

 

It is possible with Apex code ?

 

Thanks,

Deepak

Hi,

 

Does any one know how do i get Step Number or Step name from a approval process via apex code?

 

Regards,

Deepak

Hi,

 

I have created a custom object and wanted to give "Read" permision to all profile (custom/standard) ,

 

Can some one tell me how it can be done?

 

Many thanks,

Deepak Pansari 

Hi,

 

I have contract which are associated with an account , when I change Account owner , the contract owner will change automatically , is there any way to prevent this , or to track account owner change ?

 

Thanks,

Deepak Pansari

Hi All,

 

I have ip rescrition issue. My ip address is 112.111.X.Y , Every time value of X and Y has changed and i need to daily enter IP in SFDC.

 

Does any know any solution for this , i tried this also   112.111.0.0 to 112.111.255.255 , but it not working.

 

Thanks,

Deepak

Hi All,

 

I have an approval process that based on a picklist field value decides which Queue should be the next approver. Now the client has the requriement that the Queue Members should have the ability to change the Approver Queue if they feel that the other queue should actually be the approver. How can this be done? Has anybody done anything of this kind before?

 

The only soln I can think of is to recall the record from Approval process and resend to the appropriate queue when the picklist value is updated. However the approval history will record this. Is it possible to dynamically change the approver once the record is in the approval process?

Message Edited by Rajesh Shah on 07-30-2009 02:44 PM