You need to sign in to do that
Don't have an account?
Tom Brown 2
Salesforce Console for Service: Issues with Custom Button to Transfer Ownership
We are using the Salesforce Console for Service (Lightning Experience) for a new Service Cloud roll out. I have a requirement to allow the support rep to change owership to a specific queue with the single click of a button. In doing some research it seems like this should be possibe by doing the following:
- Create a custom case button
- That calls a custom VisualForce page (snippet below)
I am having the following issues with this.
1) Sometimes (but not always) the Case Feed updates with the new owner but the Case Owner field does not reflect the new owner. Seems like a refresh problem with the layout
2) Sometimes (but not always) a second tab is opened up - so we end up with 2 tabs open for the same case.
3) When a second tab does open up and you try to close that second tab we are getting a very fatal "Sorry to Interupt" error which spits out "Technical Stuff" as described below.
Technical Stuff:
TypeError: afterRender threw an error in 'markup://ui:tab' [a.find(...).getElement(...) is null]
throws at https://na30.lightning.force.com/auraFW/javascript/uUttwQR-pk5rKvOBHB6bAQ/aura_prod.js:201:446
anonymous/a/</<.renderer.afterRender()@https://na30.lightning.force.com/auraFW/javascript/uUttwQR-pk5rKvOBHB6bAQ/aura_prod.js line 147 > Function:1:349
anonymous/a/</<.renderer.afterRender()@https://na30.lightning.force.com/auraFW/javascript/uUttwQR-pk5rKvOBHB6bAQ/aura_prod.js line 147 > Function:3:183
anonymous/a/</<.renderer.afterRender()@https://na30.lightning.force.com/auraFW/javascript/uUttwQR-pk5rKvOBHB6bAQ/aura_prod.js line 147 > Function:12:400
anonymous/a/</<.renderer.afterRender()@https://na30.lightning.force.com/auraFW/javascript/uUttwQR-pk5rKvOBHB6bAQ/aura_prod.js line 147 > Function:1:281
anonymous/a/</<.renderer.afterRender()@https://na30.lightning.force.com/auraFW/javascript/uUttwQR-pk5rKvOBHB6bAQ/aura_prod.js line 147 > Function:15:231
anonymous/a/</<.renderer.afterRender()@https://na30.lightning.force.com/auraFW/javascript/uUttwQR-pk5rKvOBHB6bAQ/aura_prod.js line 147 > Function:3:183
anonymous/a/</<.renderer.afterRender()@https://na30.lightning.force.com/auraFW/javascript/uUttwQR-pk5rKvOBHB6bAQ/aura_prod.js line 147 > Function:1:281
anonymous/a/</<.renderer.afterRender()@https://na30.lightning.force.com/auraFW/javascript/uUttwQR-pk5rKvOBHB6bAQ/aura_prod.js line 147 > Function:3:183
anonymous/a/</<.renderer.afterRender()@https://na30.lightning.force.com/auraFW/javascript/uUttwQR-pk5rKvOBHB6bAQ/aura_prod.js line 147 > Function:3:477
anonymous/a/</<.renderer.afterRender()@https://na30.lightning.force.com/auraFW/javascript/uUttwQR-pk5rKvOBHB6bAQ/aura_prod.js line 147 > Function:1:281
anonymous/a/</<.renderer.afterRender()@https://na30.lightning.force.com/auraFW/javascript/uUttwQR-pk5rKvOBHB6bAQ/aura_prod.js line 147 > Function:12:400
anonymous/a/</<.renderer.afterRender()@https://na30.lightning.force.com/auraFW/javascript/uUttwQR-pk5rKvOBHB6bAQ/aura_prod.js line 147 > Function:1:281
anonymous/a/</<.renderer.afterRender()@https://na30.lightning.force.com/auraFW/javascript/uUttwQR-pk5rKvOBHB6bAQ/aura_prod.js line 147 > Function:3:183
anonymous/a/</<.renderer.afterRender()@https://na30.lightning.force.com/auraFW/javascript/uUttwQR-pk5rKvOBHB6bAQ/aura_prod.js line 147 > Function:1:281
anonymous/a/</<.renderer.afterRender()@https://na30.lightning.force.com/auraFW/javascript/uUttwQR-pk5rKvOBHB6bAQ/aura_prod.js line 147 > Function:3:183
anonymous/a/</<.renderer.afterRender()@https://na30.lightning.force.com/auraFW/javascript/uUttwQR-pk5rKvOBHB6bAQ/aura_prod.js line 147 > Function:12:400
anonymous/a/</<.renderer.afterRender()@https://na30.lightning.force.com/auraFW/javascript/uUttwQR-pk5rKvOBHB6bAQ/aura_prod.js line 147 > Function:1:28
It feels like soemthing is wrong in my VF page which might be causing this error.
My questions are:
1) Does anyone know what I am doing wrong in my (very simple) VF page which is leading to these errors?
2) Can I use VF to call out to a flow to change ownership like this? Or do I need to call out to the Case controller to do the change in ownership?
Any and all enlightenment much appreciated!
- Create a custom case button
- That calls a custom VisualForce page (snippet below)
<apex:page standardController="Case"> <flow:interview name="Case_Update_Owner" finishLocation="/{!$CurrentPage.parameters.id}"> <apex:param name="var_CaseId" value="{!Case.Id}"/> <apex:param name="var_NewOwnerId" value="00G36000002CyXy"/> </flow:interview> </apex:page>- Which calls a out a very simple Update Record flow to transfer ownership
I am having the following issues with this.
1) Sometimes (but not always) the Case Feed updates with the new owner but the Case Owner field does not reflect the new owner. Seems like a refresh problem with the layout
2) Sometimes (but not always) a second tab is opened up - so we end up with 2 tabs open for the same case.
3) When a second tab does open up and you try to close that second tab we are getting a very fatal "Sorry to Interupt" error which spits out "Technical Stuff" as described below.
Technical Stuff:
TypeError: afterRender threw an error in 'markup://ui:tab' [a.find(...).getElement(...) is null]
throws at https://na30.lightning.force.com/auraFW/javascript/uUttwQR-pk5rKvOBHB6bAQ/aura_prod.js:201:446
anonymous/a/</<.renderer.afterRender()@https://na30.lightning.force.com/auraFW/javascript/uUttwQR-pk5rKvOBHB6bAQ/aura_prod.js line 147 > Function:1:349
anonymous/a/</<.renderer.afterRender()@https://na30.lightning.force.com/auraFW/javascript/uUttwQR-pk5rKvOBHB6bAQ/aura_prod.js line 147 > Function:3:183
anonymous/a/</<.renderer.afterRender()@https://na30.lightning.force.com/auraFW/javascript/uUttwQR-pk5rKvOBHB6bAQ/aura_prod.js line 147 > Function:12:400
anonymous/a/</<.renderer.afterRender()@https://na30.lightning.force.com/auraFW/javascript/uUttwQR-pk5rKvOBHB6bAQ/aura_prod.js line 147 > Function:1:281
anonymous/a/</<.renderer.afterRender()@https://na30.lightning.force.com/auraFW/javascript/uUttwQR-pk5rKvOBHB6bAQ/aura_prod.js line 147 > Function:15:231
anonymous/a/</<.renderer.afterRender()@https://na30.lightning.force.com/auraFW/javascript/uUttwQR-pk5rKvOBHB6bAQ/aura_prod.js line 147 > Function:3:183
anonymous/a/</<.renderer.afterRender()@https://na30.lightning.force.com/auraFW/javascript/uUttwQR-pk5rKvOBHB6bAQ/aura_prod.js line 147 > Function:1:281
anonymous/a/</<.renderer.afterRender()@https://na30.lightning.force.com/auraFW/javascript/uUttwQR-pk5rKvOBHB6bAQ/aura_prod.js line 147 > Function:3:183
anonymous/a/</<.renderer.afterRender()@https://na30.lightning.force.com/auraFW/javascript/uUttwQR-pk5rKvOBHB6bAQ/aura_prod.js line 147 > Function:3:477
anonymous/a/</<.renderer.afterRender()@https://na30.lightning.force.com/auraFW/javascript/uUttwQR-pk5rKvOBHB6bAQ/aura_prod.js line 147 > Function:1:281
anonymous/a/</<.renderer.afterRender()@https://na30.lightning.force.com/auraFW/javascript/uUttwQR-pk5rKvOBHB6bAQ/aura_prod.js line 147 > Function:12:400
anonymous/a/</<.renderer.afterRender()@https://na30.lightning.force.com/auraFW/javascript/uUttwQR-pk5rKvOBHB6bAQ/aura_prod.js line 147 > Function:1:281
anonymous/a/</<.renderer.afterRender()@https://na30.lightning.force.com/auraFW/javascript/uUttwQR-pk5rKvOBHB6bAQ/aura_prod.js line 147 > Function:3:183
anonymous/a/</<.renderer.afterRender()@https://na30.lightning.force.com/auraFW/javascript/uUttwQR-pk5rKvOBHB6bAQ/aura_prod.js line 147 > Function:1:281
anonymous/a/</<.renderer.afterRender()@https://na30.lightning.force.com/auraFW/javascript/uUttwQR-pk5rKvOBHB6bAQ/aura_prod.js line 147 > Function:3:183
anonymous/a/</<.renderer.afterRender()@https://na30.lightning.force.com/auraFW/javascript/uUttwQR-pk5rKvOBHB6bAQ/aura_prod.js line 147 > Function:12:400
anonymous/a/</<.renderer.afterRender()@https://na30.lightning.force.com/auraFW/javascript/uUttwQR-pk5rKvOBHB6bAQ/aura_prod.js line 147 > Function:1:28
It feels like soemthing is wrong in my VF page which might be causing this error.
My questions are:
1) Does anyone know what I am doing wrong in my (very simple) VF page which is leading to these errors?
2) Can I use VF to call out to a flow to change ownership like this? Or do I need to call out to the Case controller to do the change in ownership?
Any and all enlightenment much appreciated!