Skip to content

Instantly share code, notes, and snippets.

@abacijson
Created April 2, 2020 00:21
Show Gist options
  • Save abacijson/2901b6b7354178fe02ec222ce07d3879 to your computer and use it in GitHub Desktop.
Save abacijson/2901b6b7354178fe02ec222ce07d3879 to your computer and use it in GitHub Desktop.
function afterSubmit(subscriptionContext) {
var newRecordId = subscriptionContext.newRecord.id;
var allocateAction = action.get({
recordType: 'revenuearrangement',
id: 'allocate'
});
allocateAction.execute({recordId: newRecordId});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment