Tuesday, 17 October 2017

Execute a Scriplet on a Action Call

Hi,

Now a days, I have started exploring USD and learning small things here and there. 

I got a requirement to Open a Web Page by considering some parameters from Account record in USD. To achieve this thing, we can directly pass parameters in the Data field of the Action Call but if there any conditions to check and frame the URL, we have to use Scriplet.

To create a scriplet, Navigate to CRM -> Settings -> Unified Service Desk -> Scriplets -> New

Give the name as per you wish

Write a code in the Script Text field. And don't forget to call the same method again as show in below.

function openGooglePage() {
    var vName = "[[account.name]]";
    var url = "http://www.google.com/search?q=" + vName;
    return url;
}


openGooglePage();

Now create an action call and give url=[[$scriptlet.OpenGooglePage]] in the Data column.


Hope this helps.

--
Happy CRM'ing
Gopinath

3 comments:

  1. It’s a great spot to find new information. Here we all can learn a lot of useful things. Thank you so much for this wonderful article. - Appointment Setting Services Canberra and Brisbane, Appointment Setting Companies Canberra and Brisbane

    http://leadgenerationservices.com.au/appointment-setting.html

    ReplyDelete
  2. Great!!post thanks for sharing this article.


    crm software

    ReplyDelete
  3. Nice information! If you are looking for Dynamics 365 customer service in Brisbane, Datalinks is a Dynamics 365 customer service Brisbane based helps firms to enable employees and connect the customer experiences in a consistent, high-quality, and predictable manner. It help you transform your company into a Smart Enterprise by driving clever innovation of your workflows, technology, and complete organisation.

    ReplyDelete