You need to sign in to do that
Don't have an account?
Nitish Talekar
i want to redirect to opp record after clicking on opportunity name in salesforce1 mobile app. but getting this error while using sforce.one.navaigateToSobject(id)
i want to redirect to opp record after clicking on opportunity name in salesforce1 mobile app.
i want to redirect to opp record after clicking on opportunity name in salesforce1 mobile app. but getting this error while using sforce.one.navaigateToSobject(id)
Include the following javascript file to your visualforce page. I have hard-coded the Opportunity Id for my convenient, replace that with your variable. The following code is working for me.
All Answers
Please use below URL to redirect
sforce.one.navigateToSObject(recId,"detail");
there are 2 parameter which you need to pass, Id and Detail..
Please check and let me know if it works for you
P.S. If my answer helps you to solve your problem please mark it as best answer. It will help other to find best answer.
Thanks,
Sandeep
Salesforce Certified Developer
I used the
sforce.one.navigateToSObject(recId,"detail"); but getting same error.
Include the following javascript file to your visualforce page. I have hard-coded the Opportunity Id for my convenient, replace that with your variable. The following code is working for me.
I want to make one of the column in the VF page clickable and it should redirect to the opportunity product how do I achieve that?
<apex:column >
<apex:outputLink value="https:/xxxxxxxxxxsalesforce.com/?id={opportunity.OpportunityLineItems}">{!item.product2.name}</apex:outputLink>
</apex:column>