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
karthikakarthika 

Need help to develop a custom webservice

hi All,

 

I am trying to create opportunity from the records that I get from a staging table. For this to happen I need to create a intermediate custom object which acts as a place holder for the opp info. Once the custom object is created , I perfrom a search on account,contact and user obejcts with the values from staging table and associate them to the opportunity. Once an opp is created I update the  custom object with oppID, AccountId etc.

 

My question is how can I design a webservice call and how should the call be (Sync or Async) ? and should the  logic be  written in a Batch Apex.

 

I am new to Apex and your help would be greatly appreciated.

 

Karthika