Posts

Set Session Name using scriplets in USD

Image
Generally in USD, setting session name is the default requirement. We can set the session name through scriplets. Below is the configurations which we need to do for setting the session name. Step1. Create a scriplet. navigate CRM> UnifiedServiceDesk>Scriplet > new. Name : GetSessionName Script :  function GetSessionName() { var contact= '[[contact.fullname]+]'; var account='[[account.name]+]'; var incident='[[Incident.ticketnumber]+]'; if(contact!='') { return contact; } else if(account!='') { return account; } else if(incident!='') { return incident; } else { return 'New Session'; } } GetSessionName(); If any configuration exists then add this scriplet to the configuration. Here setting session names based on the priority. If contact exists then it will displays contact next it if account exists then account ,next  incident so on. Create Session Line. Navigate CRM> UnifiedServiceDesk>Scriplet &g