Workflow Operations

Function Description
ftos.context JSON object that stores information about the workflow context of the client-side process that called the script.
ftos.context.response.setData Passes a JSON object from a server automation script (triggered by a callAction function) to the result parameter of the client-side callback function.
getObjectKeys Returns the keys of a JSON object.
ftos.data.getNextSequenceNumber Gets a new sequence number from a preset sequencer.
isFinite Checks if a value is a finite number.
isNaN Checks if a value is a an illegal number (Not-a-Number).
ftos.utils.getLocalizedString Returns a composite format string stored in a resource object corresponding to the current system language.
importLibrary Allows you to import an automation script library into a module object.
ftos.context.propertyBag.set Defines a property and its value.
ftos.context.propertyBag.get Returns a property value.
ftos.businessStatusWorkflow.checkCondition Evaluates a business workflow condition for a given record.
ftos.businessStatusWorkflow.testCondition Evaluates a business workflow condition for an explicitly given data set.
ftos.data.getNextSequenceNumber Gets a new sequence number from a sequencer.
ftos.metadata.getOptionSet Returns the attributes and items of an optionset.
ftos.metadata.getOptionSetItemId Returns the attributes and items of an optionset.
ftos.businessStatusWorkflow.getId Returns the ID of a business status based on its name.
ftos.businessStatusWorkflow.getName Returns the name of a business status based on its ID.
ftos.businessStatusWorkflow.getStatuses Returns a mapping of an entity's business statuses configured in its business workflow.
ftos.businessStatusWorkflow.wasUpdated Checks if a record has transitioned from a business workflow status to a different business workflow status.
ftos.businessStatusWorkflow.update Applies a business status to a record.
requestOperationAuthorization Initiates a multi-factor authorization process.
authorizeOperation Authorizes an operation that is pending multi-factor authorization.
sleep Pauses the workflow execution for the specified number of milliseconds.
eval Runs JavaScript code represented as a string (evaluates expressions and executes statements).
getPaymentToken Initiates a payment flow using a configured payment processor.
ftos.identity.users.deactivate Sets the isAuthorized attribute of a system user record to False.
ftos.identity.users.getInactive Returns a list of users that haven't been active for a specific number of days.
usersAboutToExpirePasswords Returns the list of users whose passwords will expire within a specific number of days.
ftos.data.isInAudience Checks if a record is associated with an audience.
ftos.data.isPersona Checks if a record is associated with a customer persona.
ftos.formulaEngine.run Runs a Formula Engine calculation on a set of input arguments.
server.formulas.runFormula Runs a Formula Engine calculation on a set of input arguments.
getWorkStepInfo Gets information about an eSing workstep.