The following code will be used to set the catalog item variable value in ServiceNow workflow run script activity // If the variable is not part of a variable set current.variables.your_variable_name =’yes’ ; // Otherwise current.variable_pool.your_variable_name = ‘yes’;
Credential Management in ServiceNow discovery
Service now is an agent less discovery mechanism that we use to populate CMDB with critical assets and applications in support of business services. To accomplish these goals, the use of specific credentials is needed to access the client’s systems. Credentials are stored in your ServiceNow instance or in the case of Windows systems they […]
Parse the CSV file upload in ServiceNow Service Portal
Body HTML template <div class=”text-center m”> <span class=”file-upload-input”> <input type=”file” style=”display: none” multiple=”true” ng-file-select=”attachmentHandler.onFileSelect($files); filePicked($files);” class=”sp-attachments-input”> <button title=”Add attachment” ng-click=”attachmentHandler.openSelector($event)” class=”btn btn-primary sp-attachment-add” aria-label=”Add attachment” role=”button”>${Upload the custim file} </button> </span> </div> Client Controller Code $scope.filePicked = function (oEvent) { docArr = []; // Get The File From The Input var oFile = oEvent[0]; […]