共用方式為


Set custom icon for custom case origin

 

Applies To: Dynamics CRM 2013

In Microsoft Dynamics CRM 2013 Service Pack 1 (SP1) and the Microsoft Dynamics CRM Online Spring ‘14 release you can set a custom icon to display in views where the Case Origin field is visible.

Case origin field icons

The case origin field has the following options and a corresponding icon is displayed in views within the application:

Label

Value

Icon

Phone

1

Case origin icon for phone

Email

2

Case origin icon for email

Web

3

Case origin icon for web

Facebook

2483

Case origin icon for FaceBook

Twitter

3986

Case origin icon for Twitter

You can edit the case origin field to add additional options. The options used by this field are defined within the Case Origin global option set. More information: Create and edit global option sets

When you add a custom option, by default this icon will be displayed: Case origin icon for a custom origin. You can specify a different icon by creating an image web resource using the steps below:

Set a custom icon for a custom case origin

  1. If the customization prefix for the solution publisher associated with the unmanaged solution you are working in is not ‘new’ you must change the solution publisher customization prefix to ‘new’ temporarily while you create this image web resource. After you create this web resource, set it back to whatever value you want to use. More information: ece68f5f-ad40-4bfa-975a-3e5bafb854aa#BKMK_SolutionPublisher.

  2. Create a 16x16 pixel icon to represent your custom case origin. A PNG file with a transparent background is recommended.

  3. Identify the value for the custom option for the Case Origin global option set. By default, the first custom option value will be set to 100,000,000 and will increment for each additional option.

  4. Create a PNG format image web resource using the following naming convention: ‘new-Incident_origincode_icon*#*.png’ where # represents the value for the custom option.

    More information: Create and edit web resources

    For example, for a custom option with a value of 100,000,000 create a web resource with the name new_Incident_origincode_icon100000000.png.

    Important

    Do not include commas in the name of the web resource.
    The solution publisher customization prefix is prepended to the name of the web resource and this value must be ‘new’.

    Use the Upload File button in the web resource form to upload the icon file you created.

  5. Save and publish your web resource.

  6. To verify, create a case record using the custom case origin and verify that a view that displays the case origin icon shows your custom icon.

    There may be a several minutes delay after you publish your custom web resource. You may need to press F5 to refresh the page in your browser.

See Also

Create and edit global option sets
Create and edit web resources

© 2016 Microsoft Corporation. All rights reserved. Copyright