You need to sign in to do that
Don't have an account?
kamal_Rao
how to insert owner field in new record in salesforce
HI,
I am trying to creating new record sorce is coming out of the BOX using rest what i am creating new record that record owner also come out ofthe box that is also salesforce org.
hear my problem is insert owner field in new record.
I am trying to creating new record sorce is coming out of the BOX using rest what i am creating new record that record owner also come out ofthe box that is also salesforce org.
hear my problem is insert owner field in new record.
but inserting time showing error like this variable dosn't exist.....
@HTTPPOST
global static void creatingRating(string srating, id cuserid )
{
string email=RestContext.request.params.get('email');
system.debug('-------------------'+srating );
system.debug('-------------------'+cuserid );
ID cby=RestContext.request.params.get('uid');
rating__c rec=new rating__c();
rec.rating__C=srating;
//res.ownerId=cuserid;
insert rec;
you are doing res.OwnerId
Let's hope it works for him.