3

Is it possible to open a VF page in Salesforce1 iOS app coming from a link in an email?

If not, do you have any workaround ideas to make this work?

3
  • So you want a user, who has received an email in their standard mail app on their mobile device, to be able to tap that link and open the S1 mobile app, and have it arrive right on your VF page? Definitely not standard.
    – pchittum
    Feb 27 '15 at 21:21
  • Actually it is possible. We were able to make it work after a while of research. But, there are still issues/limitations i.e. we still cannot append url parameters with the link to SF1. we really need it
    – Kebin
    Mar 2 '15 at 3:52
  • Yeah...the not-standard bit would be getting to the specific VF page you want. The rest of it isn't too hard. The thing to realize is that Salesforce 1 (or more to the point, the underlying aura framework it is built on) doesn't understand actions the same way the rest of the UI does, it works with events. I think the way you might have some success is if you can hook into the force:navigateToUrl event. Sorry, but too busy today to try it myself, but I think you might be after something like com.salesforce.salesforce1://force/navigateToUrl...the tricky bit is the url param again.
    – pchittum
    Mar 2 '15 at 11:50
1

If you are trying to view a record, you can use:

com.salesforce.salesforce1://entity/view?entityId={!record.Id}

Note that this only allows you to force SalesForce1 to perform the View action. You can override this action, but that may have more serious consequences and not be desirable.

9
  • I am now able to open a VF page using <b> com.salesforce.salesforce1://entity/view?entityId=apex/myVFpage?id={!Case.Id} </b> but I noticed it cannot pass the id parameter. Do you know if it's possible, or is my parameter assignment wrong?
    – Kebin
    Mar 2 '15 at 3:26
  • Just use the merge value {!Case.Id}
    – Adrian Larson
    Mar 2 '15 at 3:28
  • So what I did is correct? I did put the ?id={!Case.id} because myVFpage has a standardcontroller Case. the reason why I need the id. But unfortunately, it seems the id parameter is blank after opening up the VF page :(
    – Kebin
    Mar 2 '15 at 3:38
  • I don't think you can access an apex page that way - this url scheme document doesn't include any reference to accessing apex pages: na7.my.salesforce.com/help/pdfs/en/… May 4 '15 at 6:47
  • @CaspNZ I have confirmed it to work in production environments.
    – Adrian Larson
    May 4 '15 at 13:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.