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
Eyal HutterEyal Hutter 

how to get the redirect url at sforce.one.createrecord method?

Hey,

I would like to get the url of the method in order to pass parameters so i can set fields while the object create process.
I'm using a custom action that contains a visualForce page on the salesforce1 in order to add a new record, but can't set a default value of a field. 

Example of the method:
sforce.one.createRecord('CAPSurvey__c','{!selectedrecordtypeId}');

Any help would be great on this, thank you!


Ramu_SFDCRamu_SFDC
The following blog post might give some insights on how to go about accomplishing this

http://salesforce.stackexchange.com/questions/21858/how-to-use-sforce-one-createrecord-method