Archive

Archive for the ‘Customizations’ Category

Dynamics CE Custom Controls

April 19th, 2019 DynamicsMSCRM No comments

Timer Control

Description Use a timer control with forms where records need to meet a specific time-based milestone. A timer control shows people how much time is available to complete an action in the resolution of an active record or how much time has passed since the time to complete the action has passed.

Timer control Data Source properties use fields for the entity.

Failure Time Field Type uses a date-time field to set the time.

  • The three condition fields use one of the Option SetTwo OptionsStatus, or Status Reason fields for the entity.

Calendar control

Description Use this control to configure forms so they show up as a calendar view in Dynamics 365 for phones and tablets. You can also use this control to replace dashboards, lists, or entity grids for phones and tablets.

Property Description
Start Date Define the start date and time of the item to visualize in the calendar view. The available values are any of the columns in this view of type date.
End Date Define the end date and time of the item to visualize in the calendar view. The available values are any of the columns in this view of type date.
Duration The duration in minutes. If you specify a value for End Date, Duration is ignored.
Description This is the caption you want to see for calendar items.

The minimum duration shown in the calendar is 30 minutes. Items with a duration less than 30 minutes will still appear as 30 minutes long.

The calendar control supports all date behaviors (User Local, Date Only, and Time-Zone Independent).

Timeline control

Provide a timeline of recent, relevant news articles and Twitter tweets for an account.

Property Description
CC_Timeline_Title Property to map for the title of each timeline item.
CC_Timeline_Title_Desc Description for Title.
CC_Timeline_Label1 Field to be displayed below the title of timeline item.
CC_Timeline_Label1_Desc Description for Label 1.
CC_Timeline_Label2 Field to be displayed after Label 1.
CC_Timeline_Label2_Desc Description for Label 2.
CC_Timeline_Label3 Field to be displayed after Label 2.
CC_Timeline_Label3_Desc Description for Label 3.
CC_Timeline_Label4 Field to be displayed after Label 3.
CC_Timeline_Label4_Desc Description for Label 4.
CC_Timeline_Label5 Field to be displayed after Label 4.
CC_Timeline_Label5_Desc Description for Label 5.
CC_Timeline_Timestamp Field to use for sorting timeline in reverse chronological order.
CC_Timeline_Timestamp_Desc Description for Timestamp.
CC_Timeline_Group Field to map for grouping timeline.
CC_Timeline_Group_Desc Description for Group field.
CC_Timeline_GroupOrder Order of the group the item belongs to relative to other groups (assign values 1, 2, 3, and so on for groups to be displayed). The group will be displayed in ascending value of group values assigned.
CC_Timeline_GroupOrder_Desc Description for Group Order field.
CC_Timeline_URL URL field to map for displaying the URL of each timeline item.
CC_Timeline_URL_Desc Description for URL field.
CC_Timeline_ThumbnailURL Field to map for thumbnail of image/icon to display for each item.
CC_Timeline_ThumnailURL_Desc Description for the ThumbnailURL field.
CC_Timeline_Filter Field to map for timeline filter.
CC_Timeline_Filter_Desc Description for Filter.
CC_Timeline_Footer Web resource to display as the footer of the timeline.
CC_Timeline_Footer_Desc Description for Footer field.

Linear slider

Description The linear slider control lets your users input numerical values by dragging a slider and provides an option for typing in the quantity. The slider provides whole number input and display only.

Field Type Use this control for any numerical or money field.

Property Description
Max Set the maximum value to display on the slider.
Min Set the minimum value to display on the slider.
Value The value to display on the slider.
Step Set the amount to add or subtract from the current value when entering data with this control.

Option sets

Description The option set control presents a set of choices for your users to choose from when entering data.

Field Type Use this control for option sets with two or three choices only.

Property Description
Field Shows the field that the control is mapped to.

Flip switch

Description The flip switch is like an on/off switch, providing a choice between two values.

Field Type Two Options

Property Description
Field Shows the field that the control is mapped to.

Star rating

Description Use the star rating to provide a visual representation of a rating. The maximum number of stars you can set is five.

Field Type You can use this control for whole numbers only; it can’t accept decimal values.

Note Be sure to select the Hide on web option for this control.

Property Description
Max Select the maximum number of stars for the control from the dropdown list.

Radial knob

Description The radial knob provides a way for users to enter data by sliding the knob, and shows up on the screen as a circle. The radial knob control provides whole number input and display only. You can use touch to change the value, or you can use the keypad to focus on the number and edit it.

Field Type Use this control for any numerical or money fields.

Note This control isn’t supported on Android 4.2 and 4.3 devices. It impacts the scrolling experience on those versions.

Property Description
Max Set the maximum value to display on the gauge.
Min Set the minimum value to display on the gauge.
Value Get or set the value to display on the gauge.
Step Set the amount to add or subtract from the current value when entering data with this control.

Website preview

Description Use the website preview control to map a URL field and show a preview of the website.

Field Type URL

Important By enabling this control, you consent to allow your users to share certain identifiable device information with an external system.

Property Description
Field Shows the field the control is mapped to.

Bullet graph

Description The bullet graph control displays a single key measure with a comparative measure and qualitative ranges to instantly signal whether the measure is good, bad, or in another state. Use this control in dashboards for any numerical or money field. For example, you can map the value to actual revenue and the target to estimated revenue to visualize actual versus estimated revenue.

Field Type Us this control with any numerical or money field

Property Description
Max Set the maximum value to display on the graph.
Min Set the minimum value to display on the graph.
Good Set a value that’s considered good for the measure (optional).
Bad Set a value that’s considered bad for the measure (optional).
Value Shows the field that the control is mapped to.
Target Map this to the field you want to compare the value with. For example, if Value is mapped to Actual Revenue, you can map Target to Estimated Revenue, or you can provide a static value.

Pen Control

Description Use the pen control to capture written input such as signatures.

Field Type Text, multiline

Note The minimum recommended Maximum Length specified for the field this control maps to is 15000. Be sure to select the Hide on web option for this control.

Property Description
PenMode Specify PenMode!DrawPenMode!Erase, or PenMode!Select to determine what happens when a user drags a pointing device in a pen control.

Auto-complete

Description The auto-complete control filters an item list as you type and lets you select a value from the drop-down list. For example, you can use this control to let users choose from a dropdown list of states or countries/regions.

Field Type This control maps to a Single Line of Text type field.

Property Description
Field Shows the field the control is mapped to.
Source Set the source for the data (Grouped Options, Option Set, or View).
Option Set Select the option set for this field.
View Select the entity and view for this field.
Field Select the field of the view’s primary entity to use as the data source.

Multimedia

Description You can embed videos to provide a richer customer experience for sales and field people on the go. Use this control to map to a URL field that contains the audio or video link to play in the control.

Field Type URL

Note This control is supported on Android versions 4.4 and later. YouTube videos aren’t currently supported on Windows 8 and Windows 8.1 tablets and phones. On Windows 10, only HTTPS videos (including YouTube) are supported.

Supported media types include:

  • Streaming MP4 files
  • YouTube videos
  • Azure media
  • Audio streams
Property Description
Media Enter the URL of the media to play in this control.

Number input

Description Use the number input control to help users enter data quickly. Users only have to tap the plus and minus buttons to change a numeric value in increments you set. Users can also type a number directly into the field. This field is only supported in edit mode.

Field Type Use this control for any numerical or money field.

Property Description
Step Set the amount to add or subtract from the current value when entering data with this control.
Field Shows the field the control is mapped to.

Input Mask

Description With the input mask control, you set the formatting for a field like phone number or credit card to prevent entering invalid data. For example, if you want users to enter a United States phone number in the format +1-222-555-1011, use the input mask +1-000-000-0000.

Field Type Formatted fields.

Property Description
Mask Enter the mask to use for validating data as users enter it. You can use a combination of the following characters for the mask:

0 – Digit

9 – Digit or space

# – Digit, sign, or space

L – Letter

I – Letter or space

A – Alphanumeric

A – Alphanumeric or space

< – Converts characters that follow to lower case

> – Converts characters that follow to upper case

| – Disables case conversion

\ – Escapes any character, turning it into a literal

All others – Literals

Field Shows the field the control is mapped to.

Linear Gauge

Description The linear gauge lets your users input numerical values by dragging a slider instead of typing in the exact quantity. The slider provides whole number input and display only.

Field Types Use this control for any numerical and money fields.

Property Description
Max Set the maximum value to display on the gauge.
Min Set the minimum value to display on the gauge.
Value Get or set the value to display on the gauge.
Step Set the amount to add or subtract from the current value when entering data with this control.

Arc knob

Description The arc knob provides a way for users to enter data by sliding the knob, and shows up on the screen as an arc. The arc knob control provides whole number input and display only. You can use touch to change the value, you can also focus on the number and edit it using the keypad.

Field Types Use this control for any numerical and money fields.

Note This control isn’t supported on Android 4.2 and 4.3 devices. It impacts the scrolling experience on those versions.

Property Description
Max Set the maximum value to display on the gauge.
Min Set the minimum value to display on the gauge.
Value Get or set the value to display on the gauge.
Step Set the amount to add or subtract from the current value when entering data with this control.

Canvas App

Custom Control Ref Chart

  • Share/Bookmark

MS CRM Attribute Mapping Error When Importing Customizations

May 25th, 2010 DynamicsMSCRM No comments

Failure: Entity-Entity: This attribute map is invalid. A valid attribute map must meet these requirements&#58;&#13;&#10;-&#9;The data type must match.&#13;&#10;-&#9;The length of the target attribute cannot be shorter than the source attribute.&#13;&#10;-&#9;The format should match.&#13;&#10;-&#9;The target attribute must not be used in another mapping.&#13;&#10;-&#9;The source attribute must be visible on the entity form.&#13;&#10;-&#9;The target attribute must be a field a user can enter data into.&#13;&#10;-&#9;Address ID values cannot be mapped.

This can be a number of thing however, in my case it was attributes that were mapped differently than expected. To resolve it I had to open the Customization XML file and review the mappings there were bring created, comparing then to the CRM instance. By then deleting the inconsistant ones on the tenant the XML file then imported correctly.

  • Share/Bookmark

LinkedIn and MS CRM

May 21st, 2010 DynamicsMSCRM No comments

1) Create the iFrame
Add an Iframe and name it IFRAME_LinkedIn. Uncheck restrict cross-frame scripting box and check the “automatically expand to use available space” box under the row layout section of the formatting tab. Click ok to save the iframe changes.

2) Add Code
Enter the following code on the OnLoad event of the from.

var CRM_FORM_TYPE_CREATE = 1;
var CRM_FORM_TYPE_UPDATE = 2;
switch (crmForm.FormType)
{
case CRM_FORM_TYPE_UPDATE:
crmForm.all.IFRAME_LinkedIn.src=”http://www.linkedin.com/search?search=&company=” + crmForm.all.name.DataValue+ “&currentCompany=currentCompany&searchLocationType=I&countryCode=us&postalCode=” + crmForm.all.address1_postalcode.DataValue+ “&distance=50&sortCriteria=3″;
break;
}

NOTES:
Required Fields
Account Name and Zipcode are required fields for this integration and should be made as required fields in MS-CRM. The Zipcode requirement can be removed by removing the location references in the URL.

Sorting
The lists will be sorted by the default sorting (degrees and Name). This can be changed by changing the sortCriteria value.
1: Number of Connections
2: Degrees and Recommendations
3: Degrees and Name
4: Keyword (CompanyName) relevance

Troubleshooting
If you get a security message when you open the account record or the following message in the LinkedIn iframe “Navigation to the webpage was canceled”, you need to change security settings in Internet Explorer to enable “Display Mixed Content”.

Sourced From Statera

  • Share/Bookmark
Categories: Customizations, Scripts Tags:

Quick Fix for Microsoft CRM Lead Notes Converting to Qualified Entities

May 20th, 2010 DynamicsMSCRM No comments

Within MS CRM 4.0 the Lead notes and attachements do not convert to the Account, Contact or Opportunity when converting the Lead. The following is a work around that allows for the information to be mapped to one or all of these entities.

First we will need to customise the account form, adding a new tab and section called Originating Lead Notes and then adding an iFrame called IFRAME_LeadNotes. Set the URL of your iFrame to about:blank and untick Restrict cross-frame scripting.

Next, download and add the JavaScript code to your form onload event:

Publish your changes and you are now able to view the original lead’s notes in your account form.

NOTE: Make sure the OriginatingLead attribute is on the form otherwise the script will error.

To make the solution even more user friendly rather than show a blank iFrame you may want hide the Lead Notes tab if there is no Originating Lead. This solution can also be used in other areas where you want to show notes from another record on a form. The skies are the limit :)

Sources From CRM in the Real World

  • Share/Bookmark

MS CRM List Vew Record Counter For Microsoft Dynamics CRM 4.0

May 17th, 2010 DynamicsMSCRM No comments

Record Counter

When you open CRM and select a view that contains more records than can be shown on one page, you don’t know how many records are in this view. My Record Counter creates a ‘dummy’ record (just emulates it without creation of this record in CRM) and it shows the count of records and pages in the primary field. It works even if the count of records in fetch response is greater then 5000.

Every time this plugin is called, it calculates the count of records and pages.

Sourced From CRM Team Blog

  • Share/Bookmark
Categories: Customizations Tags: , ,