• Victor DeLima
  • NEWBIE
  • 0 Points
  • Member since 2013

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

I want to get the site guest user's original timezone.

If we use userinfo.getTimzone(), it will give us the timezone thats being stored in the site guest user record.

What are the possible ways to accomplish this??

Thanks.

I need to create a Trigger on a custom object that will update the OpportunitySplit records to reflect the Users and Splits inserted into a custom object.

 

My logic is:

 

Get the users and split percentages (3 total users), and the Opportuity Id, from the inserted record on the custom object

Select all existing OpportunityTeamMember records related to the Opportunity

Select all existing OpportunitySplit records related to the Opportunity

Delete all OpportunitySplit records for the given Opportunity except the Opportunity Owners OpportunitySplit record

Delete all OpportunityTeamMember records for the given Opportunity except the Opportunity Owners OpportunityTeamMember record.

Excecute a Database.Upsert that updates the Opportunity Owners TeamMemberRole to a specific value (DM Schedule Split Primary) and inserts new OpportunityTeamMember records for 2 other users.

This works fine

Execute a Database.Upsert that updates the Opportunity Owners SplitPercentage and inserts new OpportunitySplit records for the other 2 users. (The total of all 3 equals 100)

This throws an error:  FIELD_INTEGRITY_EXCEPTION, Can't update splits: percentages don't add up to 100.00%

 

What is the secret here?

HI Every body,

 

     I found Organization ID in 'Company Information menu, Its has 15 digits. But the problem is, I need to use this ID in a visualforce page, there its working with 18 digit ID only.

 

     salesforce is adding 3 more digits, after 15 digits. I found this 18 digit ID, "View Page Source"  option in the browser.

 

 

Why salesforce is adding 3 more digits to my Organization ID. How to find this 18 digit ID in the salesaforce.

 

Please help me.

 

Thanks,

Naresh.B