• Tyler Mowbrey
  • NEWBIE
  • 23 Points
  • Member since 2014
  • Sr Salesforce.com Developer / Analyst
  • Lytx Inc


  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 5
    Replies
I'm passing this challenge, however when I actually test it out by clicking on an account in the account list item, I get this exception: 

"Something has gone wrong. Action failed: c$AccountMap$controller$accountSelected [TypeError: Cannot read property 'reuseTiles' of undefined] Failing descriptor: {c$AccountMap$controller$accountSelected}."

I did some debugging and found that the location and latitude of the account are indeed being capture by my event, so it looks like this might be a problem with the leaflet function map.panTo(). Does anyone know the solution to this issue? Here's my code, although it's exactly the same as the tutorial's.
 
({
    jsLoaded: function(component, event, helper) {

        setTimeout(function() {
            var map = L.map('map', {zoomControl: false}).setView([37.784173, -122.401557], 14);
            L.tileLayer('https://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}',
                {
                    attribution: 'Tiles © Esri'
                }).addTo(map);
            component.set("v.map", map);
        });
    },

    accountsLoaded: function(component, event, helper) {

        // Add markers
        var map = component.get('v.map');
        var accounts = event.getParam('accounts');
        for (var i=0; i<accounts.length; i++) {
            var account = accounts[i];
            var latLng = [account.Location__Latitude__s, account.Location__Longitude__s];
            L.marker(latLng, {account: account}).addTo(map);
        }  
    },

    accountSelected: function(component, event, helper) {
        // Center the map on the account selected in the list
        var map = component.get('v.map');
        var account = event.getParam("account");
        alert(account.Location__Latitude__s + ', ' + account.Location__Longitude__s);
        map.panTo([account.Location__Latitude__s, account.Location__Longitude__s]);
    }
})

 
Case Description: ***This issue began after Spring 14 release***

We have a custom object on Cases called RMA. We have a trigger on Cases that will "unfollow" users from the Chatter Entity Subscription when an RMA is processed and the Case is closed. This has been working for the XOR-Media Logistic Management profile for close to one year.

After the Spring 14 release, when a user in that profile processes RMAs which close the case, they receive an error:

• PBSI.beforeInsertRMALineArchive: execution of BeforeInsert caused by: System.DmlException: Update failed. First exception on row 0 with id a0ld0000005hBQ4AAM; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, PBSI_RMA_LinesTrigger: execution of AfterUpdate caused by: System.DmlException: Update failed. First exception on row 0 with id 500d000000GoTtFAAV; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, CaseTrigger: execution of AfterUpdate caused by: System.DmlException: Delete failed. First exception on row 0 with id 0E8d0000004AM5MCAW; first error: INSUFFICIENT_ACCESS_OR_READONLY, insufficient access rights on object id: [] Class.UCase.unFollowonClose: line 33, column 1 Trigger.CaseTrigger: line 38, column 1: [] Class.UPBSI_RMA_Lines.CalculateCaseStatus: line 197, column 1 Class.UPBSI_RMA_Lines.preCalculateCaseStatus: line 88, column 1 Trigger.PBSI_RMA_LinesTrigger: line 32, column 1: [] (PBSI)

Our developers have reviewed this and determined the error is due to the profile that does not have permissions to delete the Entity Subscription. But there isn't a setting that can be enabled for this profile on this object.

This issue does not occur for those with System Administrator profile.

We tried to give the profile in question access to "Moderate Chatter" and "Manager Users" but the issue still happens.

My question is: Did something in Spring 14 change with Entity Subscription object and profile permissions? Is there a permission we can grant to a user to be able to remove Chatter followers.


Hi All,

 

I am trying to pull in the Account Owner's Name to a custom object using a formula. However just see an option for the Account Owner ID.

 

TIA

 

David