Wednesday 23 September 2015

How to Update Notes to Replacement parameters in Unified Service desk (USD)


While agent is Speaking to Customer, he may make some notes in Notes Panel. When call ends, the Notes should be stored in Notes of CRM Record.

At this point We can use below Action to get The Values from Notes Panel.


Click  here to see how to Create Record in CRM




How to Create a Record in CRM with USD Action call-Unified Service Desk (USD)

1. If we want create a record inCRM with USD Action call, We have an Action "Create Entity" on Global Manager.


2.
http://msusd.blogspot.in/2015/09/how-to-auto-populate-fields-in-new-crm.html

Tuesday 22 September 2015

How to Navigate to Perticular Views in Unified Service Desk (USD)



Open forms, views, dialogs and reports with a URL

 Navigating in CRM is based on Entity name and GUID of the Record. Framing URL for different forms

https://msdn.microsoft.com/en-us/library/gg328483.aspx

How to Change Page name Dynamically when multiple Pages are allowed in CRM Page hosted control--Unified Service Desk (USD)


1. As we already know that ,we can open multiple pages in Single CRM Page hosted control.
by default the name will be Tab name of Browser.

2. To Change the name of the Page we need an action call



try {
    document.title = "[[Incident.casetypecode]+] "
}
catch (e) {

}

we can set any name as title of Page by passing dynamically as shown above.

3. See the bellow Screen to verify




Wednesday 16 September 2015

How to Navigate to Perticular Dashboard by Passing URL in Unified Service Desk--Unified Service Desk (USD)

1. Create a Hosted Control of type CRMPage.
2. Create an Action Call with Action "Navigate"
3. Give the URL in data field

url=dashboards/dashboard.aspx?dashboardId=%7b36132013-5A26-E511-80BE-000D3AA0DA2D%7d&dashboardType=1030&pagemode=iframe


the above highlighted is GUID of the Dashboard. 

How to Create Entity Search and Using in Replacement Parameters -Unified Service Desk (USD)



1. To Create Entity Search in Unified Service Desk
We need fetch XML. So open Advanced Find and Give Some Criteria which we want to fetch. Download the fetch XML



 2. Click on Entity Search and Click on "New" to Create new Entity Search.



3.  Create an Entity Search in USD
 4. Create an Action Call to Search.
Enter Hosted Control --CRM Global MAnager
Action- DoSerch
Data-as shown in bellow fig
 5. Call the Action call in Debugger;

 6. We can See the results As Shown in bellow fig. We can Use these values as replacement Parameters

How to Close Current CRM Page When Multiple Pages Allowed In CRM Page Hosted Control--Unified Service Desk (USD)



 In The Previous Post we have seen how to open multiple Pages in Single CRM Page Hosted Control.
Now we are going to See how to close CRM Pages in Hosted Control.

1. We need Create a button under the Hosted Control to Which we want to Create Multiple Pages
See How to Create a button here



2. Create an Action call with Action "Close Active" for The Hosted Control and Associate it to the Button as shown in Above Screen Shot


3. We can See the button as Bellow.




How to Open Multiple Forms in Single CRM Page Hosted Control --Unified Service Desk (USD)




1. Create a Hosted Control of type CRM Page.
Allow Multiple Pages--Yes
Maximum No.Of Browsers=(value)
If we didnt specify any value then
by default it is 3



2. We Can see Multiple Pages In USD as bellow.
In Agent Script panel we have 
a. Inquiries
b. Complaints
c. Service Request 
On Click of each link the corresponding form will be loaded. But all the forms will be in Same hosted Control as shown bellow




Friday 4 September 2015

How to set Optionset Value dynamically Using Scriptlet in Unified Service desk--Unified Service Desk (USD)

1. To set Option Set value Dynamically We need to Create A Scriptlet.



2. get Option set Values from field .



As the same way get all the values for remaining options too.


function getcomplintype() {

   //Get the text value from Replacement  parameters or pass text value
    var val = "[[$Scriptlet.getsubject]+]"
    //var val="option1"

    if (val != "") {
        if (val == "option1") {

            return 839540000;
        }

        else if (val == "option1") {
            return 839540001;
        }
        else if (val == "option1") {
            return 839540002;
        }

        else if (val == "option1") {
            return 839540003;
        }

        else if (val == "option1") {
            return 839540004;
        }
        else if (val == "option1") {
            return 839540005;
        }
        else if (val == "option1") {
            return 839540006;
        }

        else {
            return "";
        }
    }
}
getcomplintype();


2.Pass the Integer value to option Set


How to Auto populate fields in new CRM page in Unified Service desk--Unified Service Desk (USD)


1. Create a hosted control with USD component type=CRM Page

2. Create  an Action call  passing the bellow values based on type of field. give LogicalName of the entity.

LogicalName=incident 

3. If we have multiple forms in one entity, in order to navigate by changing form type, we can directly navigate to corresponding form by passing formId.

formId=16381886-6D0A-49E5-9F32-AC12F1FEDCA7

4. If There is any lookup to set then Pass the values as bellow.

customerid=EntityReference([[$Context.InitialEntity]],[[$Context.Id]])
customeridname=[[$Context.fullname]+] 

5. If we have any Optionset field to set then pass value as bellow.

casetypecode=OptionSetValue(2)


6. Set text field by directly passing text value

title=Complaint