You need to sign in to do that
Don't have an account?
restRequest.getRequestForcreate did not work
Good morning all
I have an problem with my coding..I will create new record to object in salesforce..I use restRequest.getRequestForcreate
Nothing an error but while I check the object in salesforce nothing a new record
this is my code
public void createRecords() {
Map<String, Object> fields = new HashMap<String, Object>();
fields.put("Table_No__c", picker.getValue());
try {
restRequest = RestRequest.getRequestForCreate(
getString(R.string.api_version), "Order__c", fields);
} catch (Exception e) {
// TODO: handle exception
Toast.makeText(
MainActivityChoiceTable.this,
MainActivityChoiceTable.this.getString(SalesforceSDKManager
.getInstance().getSalesforceR()
.stringGenericError(), e.toString()),
Toast.LENGTH_LONG);
}
}
any someone can help me?
Thank you
All Answers
Ok Matthews..thank you
it work