Skip to content

Commit

Permalink
Merge pull request #4144 from SalesforceFoundation/feature/msmith/crl…
Browse files Browse the repository at this point in the history
…p-api-to-execute-rollups

CRLP: ExecuteRollups Api Placeholder
  • Loading branch information
RadSFDeveloper authored Mar 25, 2019
2 parents 5edc592 + 634517f commit 0f49ae8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/classes/CRLP_ApiService.cls
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
public inherited sharing class CRLP_ApiService {

public static final String PARAM_ROLLUPTYPE = 'RollupType';
public static final String PARAM_ROLLUPDEFS = 'RollupDefinitions';


/**
Expand Down
3 changes: 3 additions & 0 deletions src/classes/Callable_API.cls
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ global with sharing class Callable_API implements System.Callable {
List<CRLP_Rollup> response = crlpApiSvc.getRollupDefinitions((String) params.get(CRLP_ApiService.PARAM_ROLLUPTYPE));
return JSON.serialize(response, true);

} when 'crlp.executerollups' { // PLACEHOLDER CODE ONLY
return params.get(CRLP_ApiService.PARAM_ROLLUPDEFS);

} when else {
throw new MalformedMethodInvocationException(
String.format(System.Label.CallableApiMethodNotImplemented, new List<String> { action })
Expand Down

0 comments on commit 0f49ae8

Please sign in to comment.