function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
VintaraVintara 

Salesforce1 iOS call-in URL to open APEX page or record with parameter.

Salesforce1 can be opened using standard iOS call-in/call-out URL fomats such as the following...

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

It is unclear which of the two is the prefered format, however currently both work. However, it is unclear how to open an APEX page using simular call-in URLs. Alternitivly, if I can open the record in edit mode that may be workable as well so long as paramters are preserved. However, despite everything I've read on the subject, I can not get records to open in edit mode by chaning "view" to "edit". Doing so using the first URL format still opens the record in read mode and if I do that with the second, it fails to open at all.

The only thing resembling documentation I can find is a PDF posted awhile back by Dan McCall 
(https://success.salesforce.com/06930000003vIt6) 

However, despite what that document says I can not get either edit mode or APEX page to open. Additinaly I found this blog posting...
(https://plus.google.com/108841584505265827017/posts/GjHbMRmQzC3)

Which claims that the following is the correct format to open an APEX page, however it to fails in my tests.
com.salesforce.salesforce1://entity/view?entityId=apex/VFPAGENAMEHERE

Has anyone been able to get either openign a record in edit mode, or opening an APEX page to work and sucsessfully passed them a paramter using an iOS call-in/call-out URL?
Gaurav KheterpalGaurav Kheterpal
There was recently a tutorial published on Developer Force blog on deep linking to Salesforce1 - https://developer.salesforce.com/blogs/isv/2015/01/empower-salesforce1-solution-deep-link.html

This refers to the URL schemes document which shows edit operations should use this scheme

Edit a Record Use this URL scheme to navigate to the edit detail page of a record.

sObject//edit

The following example URL navigates the user to the edit detail page of an Opportunity:

salesforce1://sObject/006R0000001r7Rq/edit

Note: The user must have permission to edit the record.

For specific records, the generic syntax is

<scheme_name>/sObject/<id>/edit&s1oid=<orgID>&slnid=<networkID>

I hope this helps.
VintaraVintara
I've seen the blog you linked to, but it is doing what I am trying to avoid, which is building a custom app.

Let me try to break my question down a bit.

1) Can deep-linking be used to open an APEX page in Salesforce1?
2) Can deep-linking be used to pass paramters or data to Salesforce1?
Gaurav KheterpalGaurav Kheterpal
1) I don't think so.
2) Yes, but only using query parameters as explained in this (https://na7.my.salesforce.com/help/pdfs/en/salesforce1_url_schemes_ios.pdf) document.