Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all 82002 articles
Browse latest View live

Script Error in Dyanmics

$
0
0

Hi all,

I have been using Dynamics for about 6 months now and my new job. It's pretty nice and it's my first real experience in CRMs. I have been going fine until I got this Script Error message. Now I can't close out leads. I'm pretty sure I can do everything else. This is the first time I've seen an error message. I'm just concerned this could mess with my client's portfolios.

Any help is appreciated! Thanks!

community.dynamics.com/.../1351.ErrorDetails.txt


ISV - Model-Driven License Enforcement

$
0
0

Hello,

I will do my best to keep it short on the issue we are facing with the license enforcement of our solution package.

We have deployed our D365&Dataverse as an offer type to the AppSource including applying the license to our package according to the below documentation:

https://learn.microsoft.com/en-us/partner-center/marketplace/isv-app-license

https://learn.microsoft.com/en-us/power-platform/developer/appsource/appendix-add-license-information-to-your-solution

I have followed step by step to define the plan definition file, and plan mapping file and applied those CSV files to our package which ended up adding to the customization.xml the below elements:

Plan Definition:

Service ID,Display name,More info URL
exquitech.hrex.hrexcore, HRex Core, https://hrexcloud.com/ exquitech.hrex.hrexpayroll, HREX Payroll, https://google.com/

Plan Mapping:

Service ID,Component Name exquitech.hrex.hrexcore,hrex2193_HREXCore exquitech.hrex.hrexpayroll,hrex2193_HREXPayroll

Customization.XML:

<serviceplans> <serviceplan name="exquitech.hrex.hrexcore"> <accessmode>4</accessmode> <iscustomizable>0</iscustomizable> <displayname>HRex Core</displayname> <moreinfourl>https://hrexcloud.com/</moreinfourl> </serviceplan> <serviceplan name="exquitech.hrex.hrexpayroll"> <accessmode>4</accessmode> <iscustomizable>0</iscustomizable> <displayname>HREX Payroll</displayname> <moreinfourl>https://hrexcloud.com/</moreinfourl> </serviceplan> </serviceplans> <serviceplanappmodulesset> <serviceplanappmodules> <iscustomizable>0</iscustomizable> <appmoduleid> <uniquename>hrex2193_HREXCore</uniquename> </appmoduleid> <serviceplanid> <name>exquitech.hrex.hrexcore</name> </serviceplanid> </serviceplanappmodules> <serviceplanappmodules> <iscustomizable>0</iscustomizable> <appmoduleid> <uniquename>hrex2193_HREXPayroll</uniquename> </appmoduleid> <serviceplanid> <name>exquitech.hrex.hrexpayroll</name> </serviceplanid> </serviceplanappmodules> </serviceplanappmodulesset>

Having validated those steps and exported the managed solution to the CLI, we published the package to AppSource and it was successfully validated.

Now the testing Part:

We installed the application in a different tenant by purchasing a plan that we assigned to the app for us to make sure the Microsoft license checks it is validated.

I purchased the desired plan and assigned it to a different user than the current one that I am signed in and I tested by trying to open the application to check if Microsoft will validate the license check between the license assigned under the tenant for that user (Global Admin).

Unfortunately, I was able to access both apps knowing that I purchased 1 plan and knowing that the plan purchased is assigned to another user meaning it is a big failure and a user without a license will be able to access any application even if he's a normal or global admin which definitely we don't want to.

So basically as per Microsoft documentation:

https://learn.microsoft.com/en-us/partner-center/marketplace/isv-app-license#step-6-power-platform-performs-license-checks

The power Platform License check is a big failure and not working at all. It has been 1 month since I raised two tickets with Power Platform Support Team and Commercial Market Place, and the support request is stuck in an infinite loop (escalation from one team to another, huge delay).

Would someone be able to guide us through a proper resolution to validate what we are missing and why license checks are not working?

Any help is greatly appreciated.

Thank you!

Javascript Function OnSave

$
0
0

Hi,

I was hoping someone could help guide me with my first javascript for Dynamics 365. I'm just trying to create an override field from a option set that would go into a text field. The text field does have a business in place to put the values needed. However, I need to add an override function for supervisors in the case they need it. I'm not getting any errors but I'm not getting the field it needs to setValue to to update. Here's my code and how I have the script setup in the form builder:

function supervisorFlagOverrideChanged(executionContext) {
    var formContext = executionContext.getFormContext();

    var supervisorFlagOverrideField = formContext.getAttribute("cr93a_SupervisorFlagOverride");
    var contactFlagsField = formContext.getAttribute("cmcps_ApplicationFlags");
    var contactFlagsControl = formContext.getControl("cmcps_ApplicationFlags");

    if (supervisorFlagOverrideField != null) {
        var supervisorFlagOverrideValue = supervisorFlagOverrideField.getValue();

        // Log supervisorFlagOverrideValue to console
        console.log("supervisorFlagOverrideValue: ", supervisorFlagOverrideValue);

            contactFlagsControl.setDisabled(false);
            contactFlagsField.setValue(supervisorFlagOverrideValue);
            contactFlagsControl.setDisabled(true);

            // Save the form.
            formContext.data.entity.save();
    } else {
        console.log("supervisorFlagOverrideField is null.");
    }
}
Ps. I left my debug in the code hoping that would help.

Batch Insert to Custom Entity via HTTP

$
0
0

Hi all

I have been having an issue getting batch inserts working to a custom entity via the rest api. To my eye, this is correct according to the documentation. I get a 200 OK back but no rows are created. 

My custom entity is called custom_users. So the collection name comes out as custom_userses

I can easily do a single insert for a row to the entity via /api/data/v9.0/emtrain_userses so I know the entity exists and is fine. 



Request Headers

https://<custom>.dynamics.com/api/data/v9.2/$batch

'Content-Type': 'multipart/mixed;boundary=batch_22975cad-7f57-410d-be15-6363209367ea', 
'OData-MaxVersion': '4.0', 
'OData-Version': '4.0', 
'Prefer': 'odata.include-annotations="*",return=representation', 
'Accept': 'application/json'

This is the request body

 --batch_AAA123
Content-Type: multipart/mixed;boundary=changeset_BBB456

--changeset_BBB456
Content-Type: application/http
Content-Transfer-Encoding:binary
Content-ID: 1

POST /api/data/v9.2/custom_userses HTTP/1.1
Content-Type: application/json;type=entry

{
    "id":"614515",
    "username":"oldmate1",
    "firstname":"Old",
    "lastname":"Mate"
}


Any help would be really great. 

Annotation -- Regrading Annotation entity whether I set IsDocument to true or false, it becomes true

$
0
0

```c#

Here is my code:

var caseNote = new Annotation
{
ObjectId = existingCases.Entities.First().ToEntityReference(),
Subject = request.Title,
NoteText = request.Description,
FileName = request.FileName,
DocumentBody = string.IsNullOrEmpty(request.FileName) ? null : request.FileData,
MimeType = string.IsNullOrEmpty(request.FileName) ? null : MimeTypes.GetMimeType(request.FileName!),
IsDocument = false
};

// Create note
Guid noteId = await this.crmService.CreateAsync(caseNote);

return new CreateCaseNoteCommandResult
{
Id = noteId
};

```

As you can see, I set IsDocument equals false, but when I queried the database, it always equals true

MSD CRM - I need an alternative of Xrm.Page.getAttribute("attribute_name").getValue() in PCF project in fluentui

$
0
0

I need an alternative of Xrm.Page.getAttribute("attribute_name").getValue() in PCF project in fluentui

Confirm email button on profile page on power portal is not redirecting once clicked, OK is shown

$
0
0

Hi all,

We have a few different environments with a portal connected and noticed a difference in behaviour when the confirm email button is clicked.
I can see that the call is correct from the Confirm Email the button click and it redirects page, it takes you to the /Account/Manage/ConfirmEmailRequest page. 

Its correctly navigating to /Account/Manage/ConfirmEmailRequest

In two environments we have seen that you stay on the /profile page and just a red box (ConfirmEmailMessage span) with 'OK' or 'error' is shown. 

Here the PostConfirmEmailRequest is trying to navigate to a page that doesnt exist '/Acccount/Manage/PostConfirmEmailRequest'

The email is sent correctly.

I have noticed that a couple of environments since they are newer, have a CDSStarter portal connected and others have a StartePortal.
From the limited documentation we have regarding the differences in these portals, this shouldnt cause any differences and in fact the redirection is working on two different environments with either of those two types.

I have checked the content snippets for the profile page and the actual web page and cant see any JS apart from where I have hidden components on the profile. 

Can anyone help to understand how this redirection works. As far as I can see the Confirm Email button should call the ConfirmEmail function which takes you to the ConfirmEmailRequest page which its not doing in these newer environments.

Issue is that we don't have control over this on the profile page and so need to understand why the behaviour is different!

Thanks!

Background process limit

$
0
0

Hi,

A customer asked me if having over 900 background processes in a waiting state in Dynamics CRM would affect the performance of the system. I'm looking for documentation on resource limits but having difficulty finding any.

The exact ask is the process will wait 6 months before sending an email. They want to achieve this for potentially hundreds of records with minimal performance impact.

I'm wondering if it would have an effect on performance, and if so would Flow be a better option for this? 

Thanks for your time.

Kind regards,

Ciara


create new record button is visible although create privilege is disabled

$
0
0

Hi All,

I have disabled create privilege for Contact Entity in a custom security role but still +New Button is visible and able to create and save the record also from that role. I have check default (BU) team's security role but no roles are assigned there as well.

As standard behavior as per security role, this + New Button shouldn't be visible or at least the system should give privilege error while saving the record.

I tried to replicate this behavior for Lead Entity, but its working as expected( If create Privilege is removed then +New button is hidden)

I am new to Dynamics and this a bug in production, I need urgent help.

Regards,

Persis

Importing a solution fails to update several views

$
0
0

I have a test environment in which I have added a field that should replace an existing one in several views.  I have the field set up on all the views.  They are system views, such as All Accounts, that I have customized in PowerApps.  

The original field is a text field, the replacement one is calculated by copying from a field in related entity, if that makes any difference.  The views and forms involved are correct in the Test environment.

When I export from Test and import to Production I don't get errors.

But the views are not updated.  They show the older field, not the one that's in the same location on the view in Test.

Why does this happen and how can I fix it?  

Should I try removing the original field from the tables?  Its not used anywhere in the solution.

All customizations are published and I ran the solution check - no errors.

Any ideas?

Thanks,

Jessica Weissman

Only run Workflow once

$
0
0

I need to run a Work flow only once when a field is changed.

I have a date field on a form which triggers the workflow to nofity Payroll department that a person has returned from leave when its filled out. Payroll then looks at this return date field to make sure it matches the paperwork. If it's wrong they correct it but that triggers another workflow and Payroll ends up with duplicate Task that the date was corrected.

How can I only trigger it the first time that field it changed and not trigger again for maybe 2 weeks or a month. Or maybe if its modified by Payroll team member don't send Task. I can see option to add condition that if modified by John Doe don't run but what if staff changes? How can I add team to If statement?

Javascript not working on LeadSourceCode field

$
0
0

JAVASCRIPT TO HIDE CERTAIN LEAD SOURCE OPTIONS

I'm trying to hide certain option values from the LeadSource choice fields that we don't want selectable from the dropdown no longer. I'm using the code below to try to remove one of the options, however, the code doesn't seem to work on the leadsourcecode field.

oContactCustomization2 = {

hideLeadSource: function (context) {
var formContext = context.getFormContext();
var testOptionSet = formContext.getControl("leadsourcecode");
if (testOptionSet !== null) {
testOptionSet.removeOption(12);
}
}

};

I've tried the exact same code on a different custom field and it worked successfully, so I'm not sure if there's something specific to the out-of-box Lead Source field that makes it so the Javascript doesn't work. If anyone has any insight or ideas as to how I can use JS on the standard Lead Source field, that would be helpful. My last resort is to duplicate the lead source field, but that would also require copying over all the data from the standard field to the custom one. 

Thank you!

Omnichannel: Added a custom field on Customer Summary form but value does not shows up even that field is populated when checking in adanced find

$
0
0

I have added a custom field on Customer summary form. I have written a flow on create of conversation record which populates this field value. I can see the flow is running and the value is populated in my custom field but when I check on Customer summary form which opens up once agent accepts a conversation the custom field shows as empty

Unable to get the getting null in the context

$
0
0

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ServiceModel;
using Microsoft.Xrm.Sdk;
namespace kb
{
public class customFields:IPlugin
{
public void Execute(IServiceProvider serviceProvider)
{
// Obtain the tracing service
ITracingService tracingService =
(ITracingService)serviceProvider.GetService(typeof(ITracingService));

// Obtain the execution context from the service provider.
IPluginExecutionContext context = (IPluginExecutionContext)
serviceProvider.GetService(typeof(IPluginExecutionContext));

// The InputParameters collection contains all the data passed in the message request.
if (context.InputParameters.Contains("Target") &&
context.InputParameters["Target"] is Entity)
{
// Obtain the target entity from the input parameters.
Entity entity = (Entity)context.InputParameters["Target"];

// Obtain the organization service reference which you will need for
// web service calls.
IOrganizationServiceFactory serviceFactory =
(IOrganizationServiceFactory)serviceProvider.GetService(typeof(IOrganizationServiceFactory));
IOrganizationService service = serviceFactory.CreateOrganizationService(context.UserId);

try
{
// Plug-in business logic goes here.
if (entity.Contains("kamran_name") && entity["kamran_name"] != null)
{
string name = (string)entity["kamran_name"];
entity["kamran_setname"] = name;
}

}

catch (FaultException<OrganizationServiceFault> ex)
{
throw new InvalidPluginExecutionException("An error occurred in the plugin.", ex);
}

catch (Exception ex)
{
tracingService.Trace("Plugin: {0}", ex.ToString());
throw;
}
}


}
}
}

Quote entity is not valid for Document output

$
0
0

Hi There,

Does anyone know how to enable document output for an entity? We have a third party solution and when we go to enable the entity settings we get an error message saying "the entity type quote is not valid for document output.


User unable to create dashboard

$
0
0

We are using Dynamics 365 CRM V8.2.28.11 on prem.

One of our user, when under dashboards clicks on new and selects the layout, he gets the following error message:

Cannot Edit Dashboard

The requested record was not found or you do not have sufficient permissions to view it.

I've double checked, the user is in several roles which have the"User Dashboard" permission turned on.

I've cleared the cache, it happens in Edge and Chrome and on different PCs.

When I assign the user the sysadmin role, all of a sudden he is able to create dashboards.

What permission am I missing?

UciError: Non-UCI entity detected. Say what?

$
0
0

Here's the error:

Non-UCI entity detected.
UciError: Non-UCI entity detected.
 at s (https://content.powerapps.com/resource/uci-infra/scripts/app.6e0133ed1bc61d488289f63aec6cf670.js:33:924363)
 at new h (https://content.powerapps.com/resource/uci-infra/scripts/app.6e0133ed1bc61d488289f63aec6cf670.js:28:147201)
 at I (https://content.powerapps.com/resource/uci-infra/scripts/app.6e0133ed1bc61d488289f63aec6cf670.js:14:928024)
 at https://content.powerapps.com/resource/uci-infra/scripts/20.1ec0deeb1f0266e33b81ca4b47dd3736.js:4:50077

My first reaction is that some D365 App needs an update.  However, how can a solution containing only a workflow going from DEV to QA where both have all the same app versions generate this message?

What do I do?

Case Resolution: default value

$
0
0

Hi,

We are using the default case resolution dialog. 

On this dialog we would like to change the default value, or perhaps even make it so that the user has to select a different value.

How can this be done?

Thanks!

Getting 429 error on sandbox environment

$
0
0

Why I am getting 429 error while calling sandbox url in dynamic 365 Whichever sandbox api endpoint If I am calling I am getting 429 error but the same url when I am using it with the production environment it is working fine. It cannot be concurrent api call at a singe time because I am just calling a single endpoint through postman for testing and in that I am getting 429 error issue

CRM Plugin Registration Tool V9 authentication error.

$
0
0

I have installed Microsoft.CrmSdk.XrmTooling.PluginRegistrationTool.9.1.0.184 into my plugin.

I was just fine few weeks ago.

But now, I'm getting bellow error when I'm trying to login.  I'm using sames credentials as CRM login. 

Please mentioned the ares that I need to check to solve this issue.

Viewing all 82002 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>