Fixed – Microsoft.Crm.CrmException: Property ‘x’ isn’t declared on the control manifest in Microsoft Dynamics 365


We got this error while trying to save the form which uses the PCF Control.

This was because the name of the property was changed

And the updated solution was imported, while the control on the form was still referring to the old property name.

Fix is straightforward, remove the field using that control with old property name from the form and save the change.

Hope it helps..

Advertisements

PCF Control to show Twitter Likes Timeline


In the same line as Profile Timeline PCF Control, we can use the same concept to create a control that shows likes timeline that displays the recently like tweets of a specific public Twitter Account.

More on this

https://developer.twitter.com/en/docs/twitter-for-websites/timelines/guides/likes-timeline

Here we have specified the public twitter account nishantranacrm in this case, it will show all the tweets that are liked by that profile.

We can have both the Profile Timelines and Like Timelines control for the profile that we are interested in for a lead, contact or account record.

Get it here

https://github.com/nishantranacrm/PCFTwitterLikesControl

Hope it helps..

PCF Control to show the Twitter profile timelines


Created a simple PCF Control to show the twitter timelines for the profile. It basically uses embedded tweets.

Get the control here

https://github.com/nishantranacrm/TwitterPCFControl

Simply enter the twitter profile in the text field and it will render the latest tweets of that profile.

Inside an account form à

For the contact record à

Embedded timelines make it extremely easy to embed the Tweets on a web page.

We can navigate to publish.twitter.com to generate the code.

Here I have searched from my profile, which then next gives us the display options to select.

Here we selected the Embedded Timeline display option, which generated the code for us.

The code that we are using inside our PCF Control.

Read more about it here

https://developer.twitter.com/en/docs/twitter-for-websites/timelines/overview

Hope it helps..

Very simple PCF Control to show Gravatar


The Gravatar or globally recognised avatar is basically an image associated to our email id, which appears besides our comments, blogs posts, sites etc.

https://en.gravatar.com/site/implement/

To request an image of Gravatar, we need to first calculate hash of the email id and pass it to the URL

The format à

https://www.gravatar.com/avatar/{HASH}

e.g.

https://www.gravatar.com/avatar/205e460b479e2e5b48aec07710c08d50

https://en.gravatar.com/site/implement/images/

Using this information, just created a PCF control for single line of text – email type that will show the Gravatar associated to it. It was more from learning perspective than trying to implement a business case or requirement.

This is how the control looks like within the form.

For another email id, it shows the corresponding avatar image.

For cases where there are no gravatar associated it shows the default image

And as we are using it for the email type of text field, the usual validation provided by the platform works seamlessly.

Get the tool here

https://github.com/nishantranacrm/GravatarPCFControl

Hope it helps..

Customize Opportunity Close Dialog Box – Dynamics 365 For Sales


With the 2019 release wave 2 plan, finally, we can customize the opportunity close dialog box (Unified Interface only)

Enable it from the Sales tab of System Settings dialog box.

The default out of the box Close Opportunity Dialog Box à

Now to add or remove fields to the dialog box, we need to customize the Quick Create form of Close Opportunity entity.

Change the ordering of the fields, added a custom field, removed Competitor and Description dialog box.

Updated Close Opportunity Dialog Box

We can use client-side validation on it

We can specify business rules

We can also customize the Main (Information) form.

This form can be used to check the details of closed opportunities.

Entity Relationships cannot be customized.

Great to see the feature available as it was one of the most requested features in the product.

https://experience.dynamics.com/ideas/idea/?ideaid=4792dfee-121a-e611-80e2-c4346badc228

Hope it helps..

No capacity available please check with your administrator error while using business card scanner control in Dynamics 365 Sales


We might get below error while trying to use scan business card feature in Dynamics 365 Sales

This is because as pre requisite it requires AI Builder licensing.

https://docs.microsoft.com/en-us/ai-builder/administer-licensing

For enabling the 30 day

free trial login to PowerApps

https://make.powerapps.com/

For the AI Builder, start the free trial.

Once enable we can see the business card scanner control working properly.

Hope it helps..