Class SalesforceFunctions

java.lang.Object
flexagon.fd.services.groovy.functions.BaseFunctions
flexagon.fd.services.groovy.functions.SalesforceFunctions

public class SalesforceFunctions extends BaseFunctions
Utility functions used for making Salesforce calls
Since:
6.0
  • Constructor Details

    • SalesforceFunctions

      public SalesforceFunctions(LogFunctions pLogFunctions)
  • Method Details

    • discoverFilesAndCommit

      public void discoverFilesAndCommit(Long pProjectId, Long pBranchId, String pPackageName, String pAccountCode, String pCommitMessage, String pCommitUser, String pFileType, String pFileName) throws FlexCheckedException
      Discover partial deployment files from Salesforce Account for a given project. This will automatically save populate changes.
      Parameters:
      pProjectId - Project id to populate files for. This should be a project using partial deployment.
      pBranchId - Branch id to use when populating.
      pPackageName - The package name (optional), if you wish to add discovered files to package.
      pAccountCode - The cloud account code for discovering files.
      pCommitMessage - Commit message.
      pCommitUser - Username for commit.
      pFileType - The File / Object type.
      pFileName - The File names with path. Can be a comma-separated list of file names.
      Throws:
      FlexCheckedException
    • getGroovyKey

      public String getGroovyKey()
      Specified by:
      getGroovyKey in class BaseFunctions
    • cleanup

      public void cleanup()
      Specified by:
      cleanup in class BaseFunctions