-
ChatterFeed
-
0Best Answers
-
0Likes Received
-
0Likes Given
-
4Questions
-
9Replies
Overriding the edit button on console apps
I've even gone back to following the Trailhead tutorial on it and I get the same: https://trailhead.salesforce.com/content/learn/projects/workshop-override-standard-action
My original solution was using a LWC wrapped in an aura component. Is overriding the edit (and new) buttons broken in console apps, or has anyone found a way to force the page to update the current tab?
- Jonathan Boulter
- March 28, 2022
- Like
- 0
- Continue reading or reply
Lightning Sync and Events created by Workflow / Apex
The only Events that sync are those I manually create via the Lightning UI, which seems a bit pointless, so I'm really hoping I've missed something. I'm guessig there is another object somewhere that is being used as there is noting on the Event object that looks like it could be used to keep it in sync with
I don't really want to install a third party add on just to do this
Thanks in advance
- Jonathan Boulter
- August 16, 2017
- Like
- 0
- Continue reading or reply
office 365 Connected App
I've followed this guide for setting up Office 365 as a Connected App:
but I'm just getting an error when I click the app:
not too bad, as I was just testing but now no one can login to Office 365 as it is redirecting to my Dev Org...
I've tried this command:
from here:
but its still doing the same. How do I turn this off, I'm guessing I've got to change the IssuerUri, but to what?
- Jonathan Boulter
- October 13, 2016
- Like
- 0
- Continue reading or reply
Trigger Framework / testing for null Trigger
Hi,
I've found that my triggers are becoming difficult to maintain, so I decided to create a framework that would hopefully make things easier. I've used Kevin O'Hara post (https://developer.salesforce.com/page/Trigger_Frameworks_and_Apex_Trigger_Best_Practices) as a starting point, but I've stripped out a lot of it.
My code is working, but is a little messy because I've hit a problem with testing Trigger.isBefore:
private void setTriggerContext(string ctx) { if(ctx == null){ if(Trigger.isBefore && Trigger.isInsert) { this.context = TriggerContext.BEFORE_INSERT; } else if(Trigger.isBefore && Trigger.isUpdate) { this.context = TriggerContext.BEFORE_UPDATE; } else if(Trigger.isBefore && Trigger.isDelete) { this.context = TriggerContext.BEFORE_DELETE; } else if(Trigger.isAfter && Trigger.isInsert) { this.context = TriggerContext.AFTER_INSERT; } else if(Trigger.isAfter && Trigger.isUpdate) { this.context = TriggerContext.AFTER_UPDATE; } else if(Trigger.isAfter && Trigger.isDelete) { this.context = TriggerContext.AFTER_DELETE; } else if(Trigger.isAfter && Trigger.isUndelete) { this.context = TriggerContext.AFTER_UNDELETE; } else { this.context = TriggerContext.UNKNOWN; } } else { if(ctx == 'before insert') { this.context = TriggerContext.BEFORE_INSERT; } else if(ctx == 'before update') { this.context = TriggerContext.BEFORE_UPDATE; } else if(ctx == 'before delete') { this.context = TriggerContext.BEFORE_DELETE; } else if(ctx == 'after insert') { this.context = TriggerContext.AFTER_INSERT; } else if(ctx == 'after update') { this.context = TriggerContext.AFTER_UPDATE; } else if(ctx == 'after delete') { this.context = TriggerContext.AFTER_DELETE; } else if(ctx == 'after undelete') { this.context = TriggerContext.AFTER_UNDELETE; } else { this.context = TriggerContext.UNKNOWN; } } system.debug('Context Set: ' + this.context); }What I'd like to write is:
private void setTriggerContext(String ctx) { if(ctx == 'before insert' || (Trigger.isBefore && Trigger.isInsert)) { this.context = TriggerContext.BEFORE_INSERT; } else if(ctx == 'before update' || (Trigger.isBefore && Trigger.isUpdate)) { this.context = TriggerContext.BEFORE_UPDATE; } else if(ctx == 'before delete' || (Trigger.isBefore && Trigger.isDelete)) { this.context = TriggerContext.BEFORE_DELETE; } else if(ctx == 'after insert' || (Trigger.isAfter && Trigger.isInsert)) { this.context = TriggerContext.AFTER_INSERT; } else if(ctx == 'after update' || (Trigger.isAfter && Trigger.isUpdate)) { this.context = TriggerContext.AFTER_UPDATE; } else if(ctx == 'after delete' || (Trigger.isAfter && Trigger.isDelete)) { this.context = TriggerContext.AFTER_DELETE; } else if(ctx == 'after undelete' || (Trigger.isAfter && Trigger.isUndelete)) { this.context = TriggerContext.AFTER_UNDELETE; } else { this.context = TriggerContext.UNKNOWN; } }Unfortunatly when I test this I get an Attempt to de-reference a null object error, which I'm guessing is because its not being run from a Trigger. I've tried:
if(Trigger == null) { // Set Trigger to something... }But get greeted with unexpected token: 'Trigger'...
Is there a way around these problems or do I just have to accept some messy code and only 70% coverage :(
- Jonathan Boulter
- August 12, 2016
- Like
- 0
- Continue reading or reply
office 365 Connected App
I've followed this guide for setting up Office 365 as a Connected App:
but I'm just getting an error when I click the app:
not too bad, as I was just testing but now no one can login to Office 365 as it is redirecting to my Dev Org...
I've tried this command:
from here:
but its still doing the same. How do I turn this off, I'm guessing I've got to change the IssuerUri, but to what?
- Jonathan Boulter
- October 13, 2016
- Like
- 0
- Continue reading or reply
Trigger Framework / testing for null Trigger
Hi,
I've found that my triggers are becoming difficult to maintain, so I decided to create a framework that would hopefully make things easier. I've used Kevin O'Hara post (https://developer.salesforce.com/page/Trigger_Frameworks_and_Apex_Trigger_Best_Practices) as a starting point, but I've stripped out a lot of it.
My code is working, but is a little messy because I've hit a problem with testing Trigger.isBefore:
private void setTriggerContext(string ctx) { if(ctx == null){ if(Trigger.isBefore && Trigger.isInsert) { this.context = TriggerContext.BEFORE_INSERT; } else if(Trigger.isBefore && Trigger.isUpdate) { this.context = TriggerContext.BEFORE_UPDATE; } else if(Trigger.isBefore && Trigger.isDelete) { this.context = TriggerContext.BEFORE_DELETE; } else if(Trigger.isAfter && Trigger.isInsert) { this.context = TriggerContext.AFTER_INSERT; } else if(Trigger.isAfter && Trigger.isUpdate) { this.context = TriggerContext.AFTER_UPDATE; } else if(Trigger.isAfter && Trigger.isDelete) { this.context = TriggerContext.AFTER_DELETE; } else if(Trigger.isAfter && Trigger.isUndelete) { this.context = TriggerContext.AFTER_UNDELETE; } else { this.context = TriggerContext.UNKNOWN; } } else { if(ctx == 'before insert') { this.context = TriggerContext.BEFORE_INSERT; } else if(ctx == 'before update') { this.context = TriggerContext.BEFORE_UPDATE; } else if(ctx == 'before delete') { this.context = TriggerContext.BEFORE_DELETE; } else if(ctx == 'after insert') { this.context = TriggerContext.AFTER_INSERT; } else if(ctx == 'after update') { this.context = TriggerContext.AFTER_UPDATE; } else if(ctx == 'after delete') { this.context = TriggerContext.AFTER_DELETE; } else if(ctx == 'after undelete') { this.context = TriggerContext.AFTER_UNDELETE; } else { this.context = TriggerContext.UNKNOWN; } } system.debug('Context Set: ' + this.context); }What I'd like to write is:
private void setTriggerContext(String ctx) { if(ctx == 'before insert' || (Trigger.isBefore && Trigger.isInsert)) { this.context = TriggerContext.BEFORE_INSERT; } else if(ctx == 'before update' || (Trigger.isBefore && Trigger.isUpdate)) { this.context = TriggerContext.BEFORE_UPDATE; } else if(ctx == 'before delete' || (Trigger.isBefore && Trigger.isDelete)) { this.context = TriggerContext.BEFORE_DELETE; } else if(ctx == 'after insert' || (Trigger.isAfter && Trigger.isInsert)) { this.context = TriggerContext.AFTER_INSERT; } else if(ctx == 'after update' || (Trigger.isAfter && Trigger.isUpdate)) { this.context = TriggerContext.AFTER_UPDATE; } else if(ctx == 'after delete' || (Trigger.isAfter && Trigger.isDelete)) { this.context = TriggerContext.AFTER_DELETE; } else if(ctx == 'after undelete' || (Trigger.isAfter && Trigger.isUndelete)) { this.context = TriggerContext.AFTER_UNDELETE; } else { this.context = TriggerContext.UNKNOWN; } }Unfortunatly when I test this I get an Attempt to de-reference a null object error, which I'm guessing is because its not being run from a Trigger. I've tried:
if(Trigger == null) { // Set Trigger to something... }But get greeted with unexpected token: 'Trigger'...
Is there a way around these problems or do I just have to accept some messy code and only 70% coverage :(
- Jonathan Boulter
- August 12, 2016
- Like
- 0
- Continue reading or reply
Quick Start: Heroku Connect Provision the Heroku Connect Add-on
I trying to validate trailhead challenge " Quick Start: Heroku Connect Provision the Heroku Connect Add-on " but I have the error :
"Step Not yet complete... here's what's wrong:
The Heroku Connect Add on has not been setup correctly. "
I don't understand why, cause I've checked the listen and write option and selected the 7 fields in the mapping.
Moreover the contact is correctly updated in Salesforce.
I have tested with region Europe and also United States as mentionned here : https://developer.salesforce.com/forums/?id=906F00000005IX8IAM
but still the same error message.
Could you please advise ?
- EmilienGuichard
- November 16, 2015
- Like
- 1
- Continue reading or reply
Enable to validate badges for: Quick Start Heroku Connect
I successfully configure heroku connect. i also deploy the application(NodeJs) on heroku.
but when i try to validate the bagde : "Provision the Heroku Connect Add-on" and "Change and Redeploy the Application"
When i click "Verify step", i get the following error:
Did you know what kind of verifications the Trailhead does to validate these two steps ?
Thanks
- Reda Benhemmouche
- November 01, 2015
- Like
- 0
- Continue reading or reply
Creating Global Quick Actions Trailhead error
Have read the previous posts and suggestions to fix, but my Global Actions are identical to the correct responses and the Publisher Layouts are displayed. When I go into Chatter and Home on one of the Apps, I still do not see the New Detailed Account action listed in the feed though. Is there some other setting I need to fix that will enable this to display BESIDES the Global Page Layout??
- Christine Harris
- August 12, 2015
- Like
- 0
- Continue reading or reply
Unable to fetch organization details in Eclipse.
Hi Team,
I recently installed the Force.com IDE plug in in Eclipse 3.6(indigo).
When i am trying to create a new project and clik on next it displays an error saying " Unable to fetch organization details for (my usename)".
Can anyone please help me in getting this corrected?
Thanks,
Rony
- ronyc
- May 24, 2013
- Like
- 1
- Continue reading or reply
Re-opening the disscussion of SortOrder on OpportunityLineItem
http://community.salesforce.com/sforce/board/message?board.id=general_development&message.id=3154
Looks like people from SF were going to look into it but obviously nothing has come to fruition. The reason I have put this in the Visualforce board is that we have have a few VF applications that could really take advantage of access to this field. Visualforce has also opened up new possibilities to UI design where the ability to manage SortOrder could be useful.
Also, no offense to salesforce.com, but the tool for sorting OpportunityLineItems is not that useful when there are multiple products with the same name. I have actually built a pretty slick sorting application but this is currently useless.
A lot of the concerns were about error handling. What happens if you have 3 line items but sort order is defined as, 1, 2, 2. Or 1, 2, 4. How about just throwing a sortOrder exception and force the developers to write good code?
Ideas? Thoughts?
http://ideas.salesforce.com/article/show/10092062/OpportunityLineItem_SortOrder_to_be_CreatableUpdatable
-Jason
Message Edited by TehNrd on 09-05-2008 01:22 PM
- TehNrd
- September 03, 2008
- Like
- 1
- Continue reading or reply