ffscpq.CloneScopingSessionServiceglobal with sharing class CloneScopingSessionService A service that provides functionality related to cloning scoping sessions. MethodscloneScopingSessionglobal static ffscpq.CloneScopingSessionService.CloneScopingSessionResponse cloneScopingSession(ffscpq.CloneScopingSessionService.CloneScopingSessionRequest request) A method that clones a scoping session. Input Parameters
Return ValueThis service returns a CloneScopingSessionResponse. Sample Code
//Note: This sample code is for demonstration purposes only. It is not intended for
//use in a production environment, is not guaranteed against defects or errors, and
//is in no way optimized or streamlined.
// Construct the request
Id scopingSessionId = 'a5WDR000001HAPY2A4';
Id opportunityId = '006DR00000KhTNXYA3';
CloneScopingSessionService.CloneScopingSessionRequest request = new CloneScopingSessionService.CloneScopingSessionRequest(
scopingSessionId
);
// Optionally add opportunity ID to populate a lookup on the cloned scoping session.
request.OpportunityId = opportunityId;
// Optionally add description to the cloned scoping session.
request.Description = 'Cloned scoping session description';
// Optionally add a name to the cloned scoping session.
request.Name = 'Cloned Scoping Session Name';
CloneScopingSessionService.CloneScopingSessionResponse response = CloneScopingSessionService.cloneScopingSession(
request
);
ffscpq.CloneScopingSessionService.CloneScopingSessionRequestglobal with sharing class CloneScopingSessionRequest The request structure for cloning a scoping session. Properties
MethodsCloneScopingSessionRequestglobal CloneScopingSessionRequest(Id scopingSessionId) Input Parameters
ffscpq.CloneScopingSessionService.CloneScopingSessionResponseglobal with sharing class CloneScopingSessionResponse The result returned after cloning a scoping session. Properties
|