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
rishi jaykar 1rishi jaykar 1 

how to insert record using tooling API:

final PageReference theUrl = new PageReference(SERVER_URL + '/services/data/v37.0/query/');

for Example i am using this code for getting record now i want to insert record using same technic ??:
theUrl.getParameters().put('q','select id,name from Account limit 10');
request = new HttpRequest();
request.setHeader('Authorization', 'OAuth ' + SESSION_ID);

String body = (new Http()).send(request).getBody();
System.debug('Accounts in JSON format: ' + body);
Rahul KumarRahul Kumar (Salesforce Developers) 
Hi Rishi,

May I suggest you please check the below link for reference. hope it helps.

Please mark it as best answer if the information is informative.

Rahul Kumar
rishi jaykar 1rishi jaykar 1
thank you Rahul but i don't want to create metadata like object or fileds i just want to create record over object
Alice SmithAlice Smith
Your project sounds awesome. This is really useful for making third party integrations admin friendly.