So I am trying to redirect to the edit page of a record to pass parameters. For the desktop browser everything works fine. However, for SF1 I get a "Looks like there's a problem error"

Is the relative URL I'm passing incorrect? How can I navigate to the Record Create page in SF1?

<script type="text/javascript">
setTimeout(function() {

    if(typeof sforce != 'undefined' && sforce != null) {
    } else {
        window.open('/a05/e', '_self');
}, 1);


Try createRecord(​entityName​[, recordTypeId]) (pulled from Navigation with the sforce.one Object).

createRecord(​entityName​[, recordTypeId])

Opens the page to create a new record for the specified entityName, for example, “Account” or “MyObject__c”.
recordTypeId is optional and, if provided, specifies the record type for the created object.


if(typeof sforce != 'undefined' && sforce != null) {
  • I get a "You don't have access to this record. Ask your administrator. However, I'm system admin. Is there an other permission I need? – tjcinnamon Jun 24 '16 at 14:47
  • Also, it works in the browser which leads me to believe I have access to the record create/edit from that vForce page – tjcinnamon Jun 24 '16 at 14:49
  • Maybe you need to specify a recordTypeId? – Adrian Larson Jun 24 '16 at 14:50
  • nevermind. Looks like the API Name is case sensitive. I had WorkDay__c and it needed to be Workday__c – tjcinnamon Jun 24 '16 at 14:50
  • Makes sense. It is Javascript. – Adrian Larson Jun 24 '16 at 14:52

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.