Searching the Help
To search for information in the Help, type a word or phrase in the Search box. When you enter a group of words, OR is inferred. You can use Boolean operators to refine your search.
Results returned are case insensitive. However, results ranking takes case into account and assigns higher scores to case matches. Therefore, a search for "cats" followed by a search for "Cats" would return the same number of Help topics, but the order in which the topics are listed would be different.
Search for | Example | Results |
---|---|---|
A single word | cat
|
Topics that contain the word "cat". You will also find its grammatical variations, such as "cats". |
A phrase. You can specify that the search results contain a specific phrase. |
"cat food" (quotation marks) |
Topics that contain the literal phrase "cat food" and all its grammatical variations. Without the quotation marks, the query is equivalent to specifying an OR operator, which finds topics with one of the individual words instead of the phrase. |
Search for | Operator | Example |
---|---|---|
Two or more words in the same topic |
|
|
Either word in a topic |
|
|
Topics that do not contain a specific word or phrase |
|
|
Topics that contain one string and do not contain another | ^ (caret) |
cat ^ mouse
|
A combination of search types | ( ) parentheses |
|
- JavaScript object: SCFile
- JavaScript method: SCFile.deleteAttachment( attachID )
- JavaScript method: SCFile.deleteAttachments()
- JavaScript method: SCFile.doAction()
- JavaScript method: SCFile.doCount()
- JavaScript method: SCFile.doDelete()
- JavaScript method: SCFile.doInsert()
- JavaScript method: SCFile.doPurge()
- JavaScript method: SCFile.doRemove()
- JavaScript method: SCFile.doSave()
- JavaScript method: SCFile.doSelect()
- JavaScript method: SCFile.doUpdate()
- JavaScript method: SCFile.getAttachment( attachID )
- JavaScript method: SCFile.getattachments()
- JavaScript method: SCFile.getBinary()
- JavaScript method: SCFile.getFirst()
- JavaScript method: SCFile.getLast()
- JavaScript method: SCFile.getLastRC()
- JavaScript method: SCFile.getMessages()
- JavaScript method: SCFile.getNext()
- JavaScript method: SCFile.getPrev()
- JavaScript method: SCFile.getPurgedRowCount()
- JavaScript method: SCFile.getText()
- JavaScript method: SCFile.getType()
- JavaScript method: SCFile.getXML()
- JavaScript method: SCFile.insertattachment()
- JavaScript method: SCFile.isRecord()
- JavaScript method: SCFile.setBinary()
- JavaScript method: SCFile.setFields()
- JavaScript method: SCFile.setOrderBy()
- JavaScript method: SCFile.setRecord()
- JavaScript method: SCFile.updateAttachment( attachObj )
JavaScript method: SCFile.doAction()
This method executes a Document Engine action using any new field values defined in a ITSMA Service Management file object. You must define a Service Management file object and new values for required fields.
Syntax
SCFile_object.doAction( docEngineAction );
Arguments
The following arguments are valid for this method:
Argument | Data type | Description |
---|---|---|
docEngineAction
|
String | This argument specifies the Document Engine action you want the script to execute on the object. This argument must contain a valid Service Management Document Engine action appropriate for the Service Management object. |
Return values
RC_SUCCESS
or one of the other global return code values.
The method returns RC_SUCCESS
if the method successfully runs the Document Engine action or returns one of the error global return code values if the method cannot run the Document Engine action.
Example
This example does the following:
- Creates a new incident record from variable values
- Resolves the incident record
This example requires the following sample data:
- The "Use Resolved Status?" option enabled in the Incident Management Environment record
- A valid value for the number field (for example, "IM11112")
var numberValue; var callbackContact; var categoryValue; var assignmentValue; var descriptionValue; var actionType; var resultionCodeValue; var resolutionValue; function insertIncident( num, name, cat, group, desc ) { print( "Creating new incident record..." ); var newIncident = new SCFile( "probsummary" ); newIncident.number = num; newIncident.callback_contact = name; newIncident.category = cat; newIncident.assignment = group; newIncident.description = desc; var rc = newIncident.doInsert(); if ( rc == RC_SUCCESS ) { print( "Success. Created new record " + newIncident.getText() ); return newIncident.number } else { print( "Could not create record. " + RCtoString( rc ) ); return null } } function resolveIncident( id, action, rescode, res ) { print( "Resolving incident " + id + "..." ); var findIncident = new SCFile ( "probsummary" ); var f = findIncident.doSelect( "number=\"" + id + "\"" ); if ( f == RC_SUCCESS ) { print( "Success. Found interaction record..." ); findIncident.resolution_code = rescode; findIncident.resolution = res; var a = findIncident.doAction( action ); print( "The resolve Incident return value is " + RCtoString( a ) ); print( "The incident record is " + findIncident.getText() ) print( "The value of the status field is: " + findIncident.problem_status ); return findIncident } else { print( "Could not find record. " + RCtoString( f ) ); return null } } numberValue = "IM11121" callbackContact = "ADMINISTRATOR, SYSTEM"; categoryValue = "network"; assignmentValue = "HELPDESK"; descriptionValue = null; interactionID = insertIncident( numberValue, callbackContact, categoryValue, assignmentValue, descriptionValue ); actionType = "resolve"; resultionCodeValue = "Advice & Guidance"; resolutionValue = null; resolveIncident( interactionID, actionType, resultionCodeValue, resolutionValue );
We welcome your comments!
To open the configured email client on this computer, open an email window.
Otherwise, copy the information below to a web mail client, and send this email to docs.feedback@hpe.com.
Help Topic ID:
Product:
Topic Title:
Feedback: