Coder Social home page Coder Social logo

adoxio / xrm-portals-community-edition Goto Github PK

View Code? Open in Web Editor NEW
107.0 107.0 58.0 14.7 MB

The definitive edition of Microsoft Open Source Portals, supported by the experts in portals.

License: MIT License

C# 85.43% PowerShell 0.03% CSS 1.27% HTML 0.07% JavaScript 6.70% Smalltalk 6.05% Liquid 0.43% ASP.NET 0.01%
cms dynamics-365

xrm-portals-community-edition's People

Contributors

amervitz avatar carcand avatar fainelia avatar glosrob avatar hhnguyen avatar jliberta avatar slautebach avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

xrm-portals-community-edition's Issues

Fix 'warning CS0105: using directive for ... appeared previously in this namespace' compilation warnings

There are several files producing a build warning. The code should be updated so these warnings do not occur anymore.

Line 1: 7>C:\xRM-Portals-Community-Edition\Framework\Adxstudio.Xrm\Web\Mvc\Liquid\EmbeddedResourceFileSystem.cs(17,7,17,30): warning CS0105: The using directive for 'Adxstudio.Xrm.Resources' appeared previously in this namespace
Line 2: 7>C:\xRM-Portals-Community-Edition\Framework\Adxstudio.Xrm\Web\UI\CmsEntityEditingMetadataProvider.cs(34,7,34,31): warning CS0105: The using directive for 'Adxstudio.Xrm.AspNet.Cms' appeared previously in this namespace
Line 3: 7>C:\xRM-Portals-Community-Edition\Framework\Adxstudio.Xrm\Web\UI\WebControls\CaseEntitlement.cs(22,7,22,30): warning CS0105: The using directive for 'Adxstudio.Xrm.Resources' appeared previously in this namespace
Line 4: 7>C:\xRM-Portals-Community-Edition\Framework\Adxstudio.Xrm\Activity\ActivityDataAdapter.cs(27,8,27,30): warning CS0105: The using directive for 'Adxstudio.Xrm.Services' appeared previously in this namespace

Delete StyleCop.Cache files

There are StyleCop.Cache files that should be deleted since they are only used for development purposes and don't need to be committed, and *.[Cc]ache files are ignored in .gitignore.

Fix 'warning CS0649: ... is never assigned to, and will always have its default value null' compilation warnings

There are some compilation warnings due to fields that are never assigned to. These should probably be deleted. Please provide some analysis prior to starting.

C:\xRM-Portals-Community-Edition\Framework\Adxstudio.Xrm\Web\UI\CrmEntityFormView\FormXmlCellMetadata.cs(94,43,94,62): warning CS0649: Field 'FormXmlCellMetadata._sharePointSettings' is never assigned to, and will always have its default value null

C:\xRM-Portals-Community-Edition\Framework\Adxstudio.Xrm\EntityList\EntityListPackageRepositoryDataAdapter.cs(1042,23,1042,34): warning CS0649: Field 'PackageConfigurationSerializationBinder._knownTypes' is never assigned to, and will always have its default value null

C:\xRM-Portals-Community-Edition\Framework\Adxstudio.Xrm\Web\UI\JsonConfiguration\ActionSerializationBinder.cs(19,23,19,34): warning CS0649: Field 'ActionSerializationBinder._knownTypes' is never assigned to, and will always have its default value null

An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)

An exception with the following stack trace occurs when using features that perform HTML sanitization and running the site in 32-bit mode:

An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
System.BadImageFormatException
   at SafeHtml.SafeHtmSanitizer.NativeMethods.OshFGetSafeHTMLAllocForManaged2(Byte[] rgbSrc, Int32 cbSrc, Int32 cpSrc, Byte** rgbDst, Int32& cbDst, Int32 cpDst, Int32 grfosh)
   at SafeHtml.SafeHtmSanitizer.BuildSafeHtml(String existingHtml, SafeHtmlFlags flags, String& newHtml) in C:\xRM-Portals-Community-Edition\Framework\SafeHtml\SafeHtmSanitizer.cs:line 162
   at SafeHtml.SafeHtmSanitizer.GetSafeHtml(String currentHtml, SafeHtmlFlags flags, Boolean& wasBad) in C:\xRM-Portals-Community-Edition\Framework\SafeHtml\SafeHtmSanitizer.cs:line 127
   at SafeHtml.SafeHtmSanitizer.GetSafeHtml(String currentHtml) in C:\\xRM-Portals-Community-Edition\Framework\SafeHtml\SafeHtmSanitizer.cs:line 113
...

There is a native dll included, osafehtml.dll, that is pinvoked for HTML sanitization, that is compiled in 64-bit mode and causes this exception when pinvoked in 32-bit processes.

The installation instructions do indirectly mention using the 64-bit configuration when publishing the site to an Azure web app. I've verified this error occurs with on-premise IIS hosting and in Azure.

Actions:

  1. List 64-bit as a requirement in installation instructions
    IIS
    image
    Azure Web App
    image

  2. Consider replacing HTML sanitization with a managed library, as already listed in the Update SafeHtml to use only managed code project.

Web file upload through front-side editing doesn't create a note attachment

There is a bug where uploading a file through the front-side editor results in a 404 when trying to view the file afterwards. The cause appears to be due to the uploaded file being missing on the note attachment on the created Web File record.

Steps to reproduce:

  1. Login with content editing permissions
  2. Create a new child file
  3. Select a file and save the record
  4. Get a 404 when trying to view the file at the expected URL
  5. Open the web file record in Dynamics 365, see there isn't an attachment in the notes

Adding an attachment in a Note Entity Form Metadata record cannot be disabled

Hi,

this might be a bug in the JavaScript of the standard form for Entity Form Metadata.
I have observerd the following:

  • created new Entity Form Metadata record of type "Notes"
  • in the settings section "Create Dialog Options", disabled the function "Display Attach File" by putting the value from "true" to "false"
  • saved the record
  • reloaded the record
  • the value "Display Attach File" switches automatically from "false" to "true"
  • this behaviour can also be provoked by using the "Refresh View" functionality in the top right corner of the web resource

Fix 'warning MSB3245: Could not resolve this reference. Could not locate the assembly "Microsoft.ServiceBus"' compilation warning

There is a build warning of a missing Microsoft.ServiceBus assembly when compiling the Microsoft.Xrm.Portal project:

C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1987,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Microsoft.ServiceBus". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.

The Microsoft.ServiceBus reference is shown as missing when viewing the project in Visual Studio.

image

The reference in Microsoft.Xrm.Portal.csproj is to file that was not included as part of the files included in the open source release:

<Reference Include="Microsoft.ServiceBus">
 <HintPath>..\..\DllImports\Microsoft.ServiceBus.dll</HintPath>
</Reference>

It is possible this reference isn't needed in this project anymore, but we'll need to be careful because there are other projects (Adxstudio.Xrm and MasterPortal) that do refer to this assembly through the WindowsAzure.ServiceBus NuGet package as seen in their respective package.config files:

<package id="WindowsAzure.ServiceBus" version="3.1.3" targetFramework="net45" />

There are a few sections of code that refer to service bus in the Microsoft.Xrm.Portal project (e.g. search the project for 'servicebus') that will need to be analyzed to determine if this project indeed has a dependency on this assembly and whether it should be added back or can be removed.

Search and cache invalidation

To ensure search and cache are invalidated, do we just need to:

  1. Choose the right entities in the Web Notification solution
  2. Setup entries in Web Notification URLs
  3. Save and Publish back in the solution?

If so what URL(s) in (2)? Just http://HOSTNAME/WebNotification.axd ? Any changes to web.config required?

Also on search, should I be seeing the actual files in App_Data getting updated if this is working? I can see they are old and aren't changing as we add more data.

Fix 'warning CS0169: The field ... is never used' compilation warnings

There are compilation warnings due to unused fields, these fields should be deleted so the warnings don't occur.

C:\xRM-Portals-Community-Edition\Framework\Adxstudio.Xrm\Diagnostics\Metrics\IfxMetricsReporter.cs(115,36,115,49): warning CS0169: The field 'IfxMetricsReporter._mdmNamespace' is never used

C:\xRM-Portals-Community-Edition\Framework\Adxstudio.Xrm\Diagnostics\Metrics\IfxMetricsReporter.cs(115,118,115,128): warning CS0169: The field 'IfxMetricsReporter._portalApp' is never used

C:\xRM-Portals-Community-Edition\Framework\Adxstudio.Xrm\Diagnostics\Metrics\IfxMetricsReporter.cs(115,88,115,92): warning CS0169: The field 'IfxMetricsReporter._org' is never used

C:\xRM-Portals-Community-Edition\Framework\Adxstudio.Xrm\Diagnostics\Metrics\IfxMetricsReporter.cs(115,19,115,34): warning CS0169: The field 'IfxMetricsReporter._mdmAccountName' is never used

C:\xRM-Portals-Community-Edition\Framework\Adxstudio.Xrm\Diagnostics\Metrics\IfxMetricsReporter.cs(115,66,115,71): warning CS0169: The field 'IfxMetricsReporter._role' is never used

C:\xRM-Portals-Community-Edition\Framework\Adxstudio.Xrm\Diagnostics\Metrics\IfxMetricsReporter.cs(115,107,115,116): warning CS0169: The field 'IfxMetricsReporter._portalId' is never used

C:\xRM-Portals-Community-Edition\Framework\Adxstudio.Xrm\Diagnostics\Metrics\IfxMetricsReporter.cs(115,57,115,64): warning CS0169: The field 'IfxMetricsReporter._tenant' is never used

C:\xRM-Portals-Community-Edition\Framework\Adxstudio.Xrm\Diagnostics\Metrics\IfxMetricsReporter.cs(115,94,115,105): warning CS0169: The field 'IfxMetricsReporter._portalType' is never used

C:\xRM-Portals-Community-Edition\Framework\Adxstudio.Xrm\Diagnostics\Metrics\IfxMetricsReporter.cs(115,142,115,156): warning CS0169: The field 'IfxMetricsReporter._portalVersion' is never used

C:\xRM-Portals-Community-Edition\Framework\Adxstudio.Xrm\Diagnostics\Metrics\IfxMetricsReporter.cs(116,17,116,38): warning CS0169: The field 'IfxMetricsReporter._initializationFailed' is never used

C:\xRM-Portals-Community-Edition\Framework\Adxstudio.Xrm\Diagnostics\Metrics\IfxMetricsReporter.cs(115,73,115,86): warning CS0169: The field 'IfxMetricsReporter._roleInstance' is never used

C:\xRM-Portals-Community-Edition\Framework\Adxstudio.Xrm\AspNet\Cms\HealthMiddleware.cs(25,25,25,29): warning CS0169: The field 'HealthMiddleware.info' is never used

C:\xRM-Portals-Community-Edition\Framework\Adxstudio.Xrm\Diagnostics\Metrics\IfxMetricsReporter.cs(115,130,115,140): warning CS0169: The field 'IfxMetricsReporter._portalUrl' is never used

C:\xRM-Portals-Community-Edition\Framework\Adxstudio.Xrm\Diagnostics\Metrics\IfxMetricsReporter.cs(115,51,115,55): warning CS0169: The field 'IfxMetricsReporter._geo' is never used

Connection to Organization Service is closed when SSL v3 is used

I'm getting the following error on the setup page:

The Organization Service URL is invalid. Metadata contains a reference that cannot be resolved: 'https://instancename.crm3.dynamics.com/XRMServices/2011/Organization.svc?wsdl&sdkversion=8.2'. The underlying connection was closed: An unexpected error occurred on a send. Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. An existing connection was forcibly closed by the remote host

As soon as I disable the use of SSL v3 the problem goes away.

I'll send a pull request for this.

Update all projects to target .NET Framework 4.7 for TLS 1.2 compatibility

.NET Framework versions below 4.6 don't use TLS 1.2 by default. Older versions of the TLS protocol (1.0/1.1) are subject to being disabled for security reasons, and we need to ensure compatibility with hosting providers that either don't support the older protocols now or won't be supporting them in the future.

Upgrade all the projects to target the newest .NET Framework available, which is currently .NET 4.7, to enable the default usage of TLS 1.2 when connecting to Dynamics 365.

The system requirements will change compared to the originally documented requirements provided by Microsoft, and this .NET Framework version requirement will need to be included in setup instructions.

AdxStudio.Xrm

Few of classes missing in AdxStudio.XRM

like
Adxstudio.Xrm.OpenAuth.Configuration
Adxstudio.Xrm.IdentityModel.Web.Modules

how to get the adxstudio 7.x version

The entity with a name = 'adx_website' is not found in the MetadataCache.

Hello Experts,

I have downloaded the source code and I am able to build the solution and hosted the Master Portal site in IIS. Link is working http://localhost/MasterPortal and when I am entering Organization details correctly and clicking on Check Connection button, I am geting "The entity with a name = 'adx_website' is not found in the MetadataCache." error.

Could anyone please help me how to fix this issue.

Thanks in advance

Kind Regards,
Surjeet Singh

Editing multiple profiles of one record.

I have one entity named Profile for contact.
A contact can have many profiles.

Unfortunately i can edit entity form when there is one Profile but as soon as i add new Profile
i get this error :
image

Can this be solved? i am using current contact to map my profile

Warning: referenced component could not be found

Besides the 'Microsoft.ServiceBus' that's been reported in a previous issue I also get similar messages on the following components:

  • 'Microsoft.Cloud.InstrumentationFramework.Events'
  • 'Microsoft.Cloud.InstrumentationFramework.Health'
  • 'Microsoft.Cloud.InstrumentationFramework.Metrics'
  • 'Telerik.Web.UI'
  • 'AuthorizeNet'
  • 'AuthorizeNet.Helpers'

Projects: Adxstudio.Xrm and MasterPortal

E-commerce

How I can configurate the e-commerce portal? I tried to. Configurated with the documentation but I need to create some. Entities. Somebody help me

Exception when viewing a blog post with query string

When viewing a blog post with query strings in the URL, an unhandled exception is thrown:

The context can not load the related collection or reference for untracked entities while the 'MergeOption' is not set to 'NoTracking'. Change the 'MergeOption' to 'NoTracking' or attach the 'adx_blogpost' entity.

Line 760: var relatedEntity = entity.GetRelatedEntity<T>(relationship.SchemaName, relationship.PrimaryEntityRole);

Source File: C:\Source\Repos\xRM-Portals-Community-Edition\Framework\Microsoft.Xrm.Client\EntityExtensions.cs Line: 759

Search caching?

Is there caching of content used in search? It seems like it and I can't figure out how to get the cache to refresh - specifically I am keyword searching with words I know are in knowledge articles and getting only old results.

I have WebNotification.axd being called on entity change - does something else control the cache of search information? I notice that the files in App_Data\Adxstudio.Xrm.Search are old - are these cache files? Deleting them made the site unhappy....

Error Connecting to Portals Online. Appears to be related to TLS 1.2 support.

Since December likely after a change from Microsoft, I am unable to get xRM Portals Community Edition to connect to a Dynmaics 365 CE Online CRM Instance.

I get the following error:

The Organization Service URL is invalid. Metadata contains a reference that cannot be resolved: 'https://researchportal.crm3.dynamics.com/XRMServices/2011/Organization.svc?wsdl&sdkversion=8.2'. The underlying connection was closed: An unexpected error occurred on a send. Authentication failed because the remote party has closed the transport stream

image

After some research I found these these links that hit to the problem:
https://blogs.msdn.microsoft.com/crm/2017/09/28/updates-coming-to-dynamics-365-customer-engagement-connection-security/
https://community.dynamics.com/crm/f/117/t/263162

It appears the MS is now requiring online servers to connect with a minimum of TLS 1.2.

I have a potential fix as recommended from a forum to set

ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11;

I have a fix that works in my branch here: https://github.com/slautebach/xRM-Portals-Community-Edition/tree/fix-TLS-1.2 that I can submit as a PR for if it is appropriate.

Question about using Javascript to hide a lookup field.

i want to hide a lookup field or make it read only.
if i hide it through crm then data does not get submit nether for read only.

How can i make it read only using adx portal?
Please help . Sorry for asking here the adx forum are somehow not working

Fix 'warning CS0618: ... is obsolete ...' compliation warnings

There are some compilation warnings due to obsolete code being referenced. These should be changed to use the recommended alternative approach. Each change will need to be tested to ensure the functionality continues to work. Please provide testing procedures for validating each change.

C:\xRM-Portals-Community-Edition\Framework\Adxstudio.Xrm\Search\CrmEntityIndexSearcher.cs(234,71,234,100): warning CS0618: 'ICrmEntityIndex.LanguageLocaleCode' is obsolete: 'Use the new Multi Language implementation instead'

C:\xRM-Portals-Community-Edition\Framework\Adxstudio.Xrm\Search\CrmEntityIndexSearcher.cs(237,86,237,115): warning CS0618: 'ICrmEntityIndex.LanguageLocaleCode' is obsolete: 'Use the new Multi Language implementation instead'

C:\xRM-Portals-Community-Edition\Framework\Adxstudio.Xrm\Web\UI\EntityList\OData\EntityListODataFeedDataAdapter.cs(380,5,380,42): warning CS0618: 'ODataHttpRequestMessageExtensions.SetNextPageLink(HttpRequestMessage, Uri)' is obsolete: 'This method is obsolete; use the ODataProperties().NextLink property from the System.Web.Http.OData.Extensions or System.Web.OData.Extensions namespace.'

C:\xRM-Portals-Community-Edition\Framework\Adxstudio.Xrm\Web\UI\EntityList\OData\EntityListODataFeedDataAdapter.cs(385,5,385,62): warning CS0618: 'ODataHttpRequestMessageExtensions.SetInlineCount(HttpRequestMessage, long)' is obsolete: 'This method is obsolete; use the ODataProperties().TotalCount property from the System.Web.Http.OData.Extensions or System.Web.OData.Extensions namespace.'

Question : Manual Cache Invalidation

Hi, i have questions about manual cache invalidation, are javascript in this link (https://community.adxstudio.com/products/adxstudio-portals/documentation/developers-guide/cache/cache-invalidation-utility/) to do manual cache invalidation still works in this new portal? it doesn't seem to be worked. When i customize portal such as add web form, entity form, or assign web role to the contact does not automatically reflected on the website. I need to reset IIS every time i did customization.

Cache invalidation

I've attempted to configure Web Notifications to invalidate the xRM Portals cache using the previous Cache.axd Web Notification end point.

Doesn't seem to work any more!

However the portal doesn't seem to be "automagically" picking up changes/publishes in the same way that 365 Online Portals is now doing without Web Notifications. Is there a replacement, or other approach we need to take to invalidate particular caches in the new xRM Portal landascape?

Question about development and production environment

Hi, can you please help me,
If i have development environment dynamics crm connected with this portal, and already did a bunch of customization (like entity forms, list etc), how do i move the customization to the production portal?

.NET Framework 4.7

When I open the solution in VS 2017, I receive an error that .NET Framework 4.7 needs to be installed but it is already installed (and installed as part of VS 2017). So, I can't go any further.

If I select "Change the target to 4.6.1...", when I try to build the solution, or the Adxstudio.Xrm or Adxstudio.Xrm.Files projects, I receive the same error regarding the version of the .NET framework.

Any ideas how I can proceed? Please advise ASAP.

image

Deploying and running Portal under IIS 7.5

I downloaded and installed the portal into an Windows Server 2008 R2 and Windows 7 environment running IIS 7.5. I could not get portals to run, I kept receiving an HTTP 500.19 error, referencing an error with the web.config, but did not highlight any offending line number in the web.config. After trail and error I was able to determine that the offending web.config line was

    <applicationInitialization doAppInitAfterRestart="true">
        <add initializationPage="/" />
    </applicationInitialization>

I then determined that this was because IIS 7.5 does not come with the Application Initialization module installed.
https://www.iis.net/downloads/microsoft/application-initialization

Once I installed the module, the portal application loaded correctly within IIS.

I would recommend updating the Readme.md to mention this as the original "Self-hosted Installation Guide" from Microsoft does not.

Authenticated User Functionality with CafeX LiveAssist

Hey there, I've got CafeX LiveAssist up and running smoothly for Live Chat and co-browse, both working smoothly with XRM Portals. I'm now trying to add the "Contact Pop" functionality (which opens the contact record if the User is logged into the Portal), and am following the instructions on this page: https://www.liveassistfor365.com/en/support/authenticated-visitors-in-the-dynamics-customer-portal/

When I get to the step where I need to retrieve the Public Key using the following instruction, I get a Key Not Found error. Makes sense I haven't done anything to provide a key, though one is configured/provided when using the Cloud-based Dynamics Portals.

To fetch the JWT Public Key, open a separate browser, and navigate to [Customer Portal Base URL]/_services/auth/publickey (e.g. https://cafex02.microsoftcrmportals.com/_services/auth/publickey).

Our portal is hosted as an Azure App Service Web App, and I was hoping to get some clarity on the steps to follow in order to get a Certificate in place and be able to use the Portal's authenticated user in CafeX. Googling has only resulted in scenarios where people are adding certificates in order to use a custom domain name, where we're looking at a different purpose.

Fix 'warning CS0612: ... is obsolete' compilation warnings

There are some compilation warnings due to obsolete code being referenced. It isn't clear based on the warning what the recommended alternative implementation is. It's possible the code in question may not even be in use given the available schema and data. Please provide some analysis prior to making changes.

C:\xRM-Portals-Community-Edition\Framework\Adxstudio.Xrm\Web\Mvc\Liquid\EventOccurrencesDrop.cs(60,4,60,9): warning CS0612: 'EventOccurrencesDrop.Event' is obsolete

C:\xRM-Portals-Community-Edition\Framework\Adxstudio.Xrm\Web\Mvc\Liquid\EventDrop.cs(30,4,30,9): warning CS0612: 'EventDrop.Event' is obsolete

C:\xRM-Portals-Community-Edition\Framework\Adxstudio.Xrm\Web\Mvc\Liquid\EventDrop.cs(33,45,33,50): warning CS0612: 'EventDrop.Event' is obsolete

C:\xRM-Portals-Community-Edition\Framework\Adxstudio.Xrm\Web\Mvc\Liquid\EventDrop.cs(47,17,47,22): warning CS0612: 'EventDrop.Event' is obsolete

C:\xRM-Portals-Community-Edition\Framework\Adxstudio.Xrm\Web\Mvc\Liquid\EventDrop.cs(52,79,52,84): warning CS0612: 'EventDrop.Event' is obsolete

C:\xRM-Portals-Community-Edition\Framework\Adxstudio.Xrm\Web\Mvc\Html\LiquidExtensions.cs(178,20,178,30): warning CS0612: 'EventsDrop' is obsolete

External Login Unavailable

Even though the Site Settings Authentication/Registration/AzureADLoginEnabled and Authentication/Registration/ExternalLoginEnabled are set to true, the SignIn form does not display the credential form controls under Sign in with an external account. (It works fine when using the Microsoft-hosted version).

Any ideas? BTW I apologize up front if this a simple config setting that I missed.
image

Mid-level breadcrumb node does not retain query string parameter

Setup the following elements:

  1. Web page (My Organisations) with Account entity list
  2. Account entity list uses a 2nd web page (Organisation Details) to view item details
  3. Web page (Organisation Details) uses Account entity form to display item details
  4. Account entity form has sub-grid of Contacts. This sub-grid has a Create action that redirects to 3rd web page (New Organisation Contact)

When viewing an Organisation details, the URL is as follow:

/my-organisations/organisation/?id=475b158c-541c-e511-80d3-3863bb347ba8

The breadcrumb appears as: Home - My Organisations - Organisation Details. This is fine.

From this page, clicking Create on the Contacts sub-grid takes user to the New Organisation Contact page. The breadcrumb on this page appears as:

Home - My Organisations - Organisation Details - New Organisation Contact

The URL of the 2nd last node (Organisation Details) on the breadcrumb is /my-organisations/organisation/ - which is incorrect as it is missing the query string parameter. Clicking on this node results in a "The record you are looking for couldn't be found" error.

Reproduced on the MS Online CRM Portal (8.4.1.80).

Change third party notices to markdown formatted file

Third party notices are disclosed in Third-Party Notice.docx. This information being in a word document is not Git or GitHub friendly.

To address this concern, delete the file Third-Party Notice.docx and create a new file THIRD-PARTY-NOTICES.md with the same content and formatting using markdown.

Fix 'warning CS0162: Unreachable code detected' compilation warnings

There are some compilation warnings due to unreachable code.

The first one looks like it may be a bug, there is logic that probably should be executing but isn't due to an errant return statement. This one will require careful testing.

C:\xRM-Portals-Community-Edition\Framework\Adxstudio.Xrm\EntityForm\EntityFormFunctions.cs(258,8,258,13): warning CS0162: Unreachable code detected

The second one looks like there is extra code that should simply be deleted because it occurs after an exception is thrown.

C:\xRM-Portals-Community-Edition\Framework\Adxstudio.Xrm\ContentAccess\CategoryAccessProvider.cs(72,13,72,15): warning CS0162: Unreachable code detected

.NET Framework 4.7 requirement - seems to run on 4.6.2?

I'm in an environment where getting to newer versions of the .NET Framework isn't trivial. Currently 4.6.2 is deployed and we've done a test portal deployment. Despite the README saying 4.7 "must be installed", the portal seems to run correctly on 4.6.2. Can someone explain what won't work or where we will hit issues?
EDIT: I should add I'm connecting to 2016 (8.1) on-premise - I guess there would be issues if we were targeting Online in relation to TLS?

Windows authentication - intranet scenario

How do I configure the portal so the currently logged in Windows user is used for authentication? It seems to have changed a bit from ADX - didn't we select a System User in the Contact? I've tried tweaks to web.config to enable Windows authentication and disabled anon in IIS but with no joy.

Has anyone done this? Is it still possible with xRM Portals? I'd imagine this will be a reasonably common need so hopefully this discussion helps others in future.

Displaying Charts

Hi,

I am trying to use the built-in chart functionality using the Liquid Markup syntax:

General syntax:
{% chart id:"chart-guid-without-braces" viewid:"view-guid-without-braces" %}

Example:
{% chart id:"EB02E9AA-5580-E611-80D8-00155DFE75F9" viewid:"00000000-0000-0000-00AA-000010003002" %}

I made sure that my Portal User does have the required Entity Permissions for the entitiy of that chart.
Still, the chart will not show in the Portal.
On the Portal, only a loading message keeps circulatiing forever and no chart is shown.

Does someone maybe know if the extended Liquid Markup is not taken over to the Communty Edition and therefore is only available for the Online Portals?

Thank you and best regards.

Fix 'warning CS0168: The variable ... is declared but never used' compilation warnings

There are some compilation warnings due to unused variables, these variables should be deleted so the warnings don't occur.

Line 8: 7>C:\xRM-Portals-Community-Edition\Framework\Adxstudio.Xrm\AspNet\Cms\ContextLanguageInfo.cs(1064,11,1064,16): warning CS0168: The variable 'query' is declared but never used
Line 15: 7>C:\xRM-Portals-Community-Edition\Framework\Adxstudio.Xrm\Cms\ContentMapProvider.cs(349,54,349,56): warning CS0168: The variable 'fe' is declared but never used
Line 48: 8>C:\xRM-Portals-Community-Edition\Samples\MasterPortal\Areas\Portal\Controllers\EntityActivityController.cs(123,22,123,23): warning CS0168: The variable 'e' is declared but never used

Entity Lists not rendering Date Only fields properly

Configure a Date and Time field with the behavior of Date Only:
image:

Set the field's value in the Dynamics 365 web client:
image

The Entity Lists's rendering of the field isn't following the expected behavior of displaying the value without a time zone conversion:
image

To consistently reproduce, set the local operating system's timezone to UTC-08:00:
image

Error in / Application

Hi, i tried to set up portal followed the documentation, it was happened in configuration, after i set the address and, user name and password, also choose the portal. And then this error showed up.

errorportal

Is there anything wrong with configuration or missed something?

Fix 'warning CS0108: ... hides inherited member ...' compilation warnings

There are some compilation warnings due to hiding of inherited members. Will need to determine for each one whether the child class's member should be deleted or hidden using the new keyword.

C:\xRM-Portals-Community-Edition\Framework\Adxstudio.Xrm\Activity\PortalComment.cs(32,39,32,54): warning CS0108: 'PortalComment.FileAttachments' hides inherited member 'Activity.FileAttachments'. Use the new keyword if hiding was intended.

C:\xRM-Portals-Community-Edition\Framework\Adxstudio.Xrm\Marketing\DataAdapterDependencies.cs(30,20,30,30): warning CS0108: 'DataAdapterDependencies.PortalName' hides inherited member 'DataAdapterDependencies.PortalName'. Use the new keyword if hiding was intended.

C:\xRM-Portals-Community-Edition\Framework\Adxstudio.Xrm\Web\Providers\ContentMapEntityUrlProvider.cs(442,34,442,53): warning CS0108: 'ContentMapEntityUrlProvider.JoinApplicationPath(string, string)' hides inherited member 'AdxEntityUrlProvider.JoinApplicationPath(string, string)'. Use the new keyword if hiding was intended.

Please provide some analysis on each one in this issue prior to making changes.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.