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

require user to save form after certain field filled in

$
0
0

I am looking for a way to prompt or force the user to save a record after a specific field is filled in. And then if they fill in another specific field in mind I again want to prompt or force the user to save the record again. Any tips would be greatly appreciated. Thank you. GERALD DAHL


Methodologies available for uploading excel data in PowerApps

$
0
0

Following functionality has been implemented currently,

1. Upload excel with a list of records (can be 1000 also)

2. System matches the records in excel & returns back additional data for the identified data records from a master table

This process is configured through Power Automate but it takes around 16 seconds to check, upload & retrieve data for one record. For 100 records it takes around 30 mins which is quite a lot of time. 

Is there an alternative to reduce the time taken. Can we use some other method?

System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: String or binary data would be truncated in table '{0}', column '{1}'. Truncated value: {2}. (Fault Detail is equal to Exception details: ErrorCode: 0 {2}

$
0
0

In production environment,customer is using Microsoft Dynamics 365 2020 release wave 2 enabled, version 1710(9.1.0.23466) online..They're getting below exception when inserting a record in an entity that is created from our .net code.We're using IOrganizationservice.create(entity) to insert a record.DCRM does client side validation and gives a validation error when we try to insert data that is longer than that of field length.Can anyone help to find out the cause of this exception?

System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: String or binary data would be truncated in table '{0}', column '{1}'. Truncated value: {2}. (Fault Detail is equal to Exception details:
ErrorCode: 0x80090429
Message: String or binary data would be truncated in table '{0}', column '{1}'. Truncated value: {2}.

Dynamics CRM on premise SSO with Azure AD

$
0
0

My task is to setup Dynamics CRM on-premise on Azure VM. After that user need to login Dynamics CRM using the account in the Azure AD.

I have

1. set up a local AD and Dynamics CRM v9 on premise on a Azure VM

2.  set up the claims based authentication using Azure AD for Dynamics CRM as well

3. add a user with username like abc@outlook.com in Dynamics CRM and Azure AD

Now my problem is that after I login Dynamics CRM using the out, it will show the message "A Microsoft Dynamics 365 user record does not exist with the specified domain name and user ID." May I ask if there is any setup guide so that we can login the application using the Azure AD user? Thanks a lot.

The record you are looking for couldn't be found

$
0
0

I created an Entity Form that should display the Account Web Form (Tab) on the Portal, however, the following error is showing up:

I checked the Entity Permissions and that the Entity Permissions is enabled and all seems to be fine. 

However, on the editor, the Tab is showing fine:

Does anyone have an idea please? Has anyone ever encountered this? 

Thank you. 

formContext.data.save() method clears email body

$
0
0

Hello everyone,

I have written a custom JS script to apply a value to a hidden field on the Email entity form and then save it with JS, however, after some tests I have discovered that the body of the email as well as Subject are being cleared. Have anyone encountered the same problem and are there any suggestions/ ideas what could be wrong? I have also tried to use the Xrm.Page method, but as I understood it is deprecated and that the formContext.data.save() method should be used instead.

Here's the JS script:

function setfield(executionContext) {

    var formContext = executionContext.getFormContext();
    console.log("setFieldValue");
    var createdBy = Xrm.Page.getAttribute('createdby').getValue();
    var bcc = Xrm.Page.getAttribute('FIELD').setValue(createdBy);
    formContext.data.save();

    }

By the way the CRM is on-premise 8.2 version (8.2.2.112)

Data consumption from azure service bus queue

$
0
0

Hi Team

I am developing a solution using dynamic 365 and azure service bus queue integration which involves two-part.

1.Azure Service Bus provides native integration with Dynamics 365. This means we can send messages to Azure Service Bus from CRM when an event occurs, these messages can then be used to integrate with several downstream applications. I achieve this by this reference link.

community.dynamics.com/.../how-to-integrate-dynamics-365-with-azure-service-bus

2. In the second part I need to send a message with data from my web app to the "Azure service bus"  so that dynamic 365 can consume this message.

Note : For consumption of data by dynamic crm from azure service bus.

Services missing from 9.0 Deployment (Sandbox, VSS, Unzip)

$
0
0

Vanilla install of 9.0. I was trying to import a solution and was getting an error that "The plug-in execution failed because no Sandbox Worker processes are currently available." I then checked to make sure the Sandbox service was running and discovered that it actually was not present under Windows Services. In addition the VSS & Unzip services are both missing. I know I selected them when i did the install (basically accepting all the defaults.) I then checked another 9.0 development box I am working on and found the same thing.

What gives?


Help with C# plugin and the email entity

$
0
0

Hi,

I am trying to create my first C# plugin for D365 online. I want to capture tracked emails before they are created in D365 and edit the body of the email (strip out some HTML out of the body to reduce the size of the storage required).

I can modify the "subject" of the email successfully but no matter what I do I cannot change the "description" (body) of the email entity. I don't get an error just nothing is changed.

I have registered the plugin step against Message=Create, Entity=email and as a Synchronous Pre-Operation.

My plugin is firing when I expect it to as I have confirmed this by throwing an error.

My code is as follows:

public void Execute(IServiceProvider serviceProvider)
{
    // Plugin Step:
    // Message:         Create
    // Primary Entity:  email
    // Run in Context:  Calling User
    // Pipeline Stage:  PreOperation
    // Execution Mode:  Synchronous
    // Deployment:      Server

    IPluginExecutionContext context = (IPluginExecutionContext)serviceProvider.GetService(typeof(IPluginExecutionContext));
    Entity entity = (Entity)context.InputParameters["Target"];

    if (entity.Contains("subject"))
    {
        entity["subject"] = "Plugin: Test Subject";
    }

    //Clean the description (body of the email)
    if (entity.Contains("description"))
    {
        entity["description"] = "Plugin: Test Description";
    }
}

Thanks,

Mark

Editar subject email

$
0
0

Hola me gustaría saber cómo editar el asunto de los correos que se envían a través del motor de envío desde CRM 2013, particularmente para eliminar la parte que dice CRM:xxxxxx para que quede más limpio de cara al receptor del correo. Muchas gracias por sus respuestas.

Saludo Cumpleaños CRM:0368486

How to validate that x no. of files stored in Dynamics 365 CE before the record reaches closed stage in BPF

$
0
0

Hi Folks,

I have a requirement where we need to validate  x no. of files stored in Dynamics 365 CE with SharePoint integration before the record reaches closed stage in BPF.

I have Dynamics 365 CE and SharePoint integrated. When a Project/Opportunity record is reaching closed stage (BPF) then until the 5 document (office files or PDF) are attached, system should not allow to close the BPF.

Please help.

Thanks,

Javed Nehal

Create a record with setting some party list fields (regardingobjectid, from , to)

$
0
0

Hello,

I am working on a functionality where I am on an entity - Customer Leads. Now, in this entity we have a HTML web resource embedded on the form.  On click of a button in that web resource, it needs to create a new record of the entity Customer appointment. The customer appointment entity has a few party list fields - regardingobjectid, from, to. I am trying to set the values for these party list fields and its not working for me. I researched some of the forums out there but everything is providing a solution only to create in the same entity. Not sure how to do it in a different entity. This is what am doing:

 let regardingobjectidvalues = [];
        regardingobjectidvalues.push({
            id: customerleadId,
            name: "Jane Doe",
            entityType: "ed_customerlead"
        });
        let data = {
            regardingobjectid: regardingobjectidvalues,
            "ownerid@odata.bind": `/systemusers(${currentUserId})`,
            subject: value,
            description: value,

        }

        Xrm.WebApi.createRecord("ed_customerappointment", data).then(
            function success(result) {
                console.log("Success" + result.id);
                // perform operations on record creation
            },
            function (error) {
                console.log(error.message);
                // handle error conditions
            }
        );
Error message:
An error occurred while validating input parameters: Microsoft.OData.ODataException: Does not support untyped value in non-open type.
at System.Web.OData.Formatter.Deserialization.DeserializationHelpers.ApplyProperty(ODataProperty property, IEdmStructuredTypeReference resourceType, Object resource, ODataDeserializerProvider deserializerProvider, ODataDeserializerContext readContext)
at System.Web.OData.Formatter.Deserialization.ODataResourceDeserializer.ApplyStructuralProperties(Object resource, ODataResourceWrapper resourceWrapper, IEdmStructuredTypeReference structuredType, ODataDeserializerContext readContext)
at Microsoft.Crm.Extensibility.CrmODataEntityDeserializer.ApplyStructuralProperties(Object resource, ODataResourceWrapper resourceWrapper, IEdmStructuredTypeReference structuredType, ODataDeserializerContext readContext)
at System.Web.OData.Formatter.Deserialization.ODataResourceDeserializer.ReadResource(ODataResourceWrapper resourceWrapper, IEdmStructuredTypeReference structuredType, ODataDeserializerContext readContext)
at System.Web.OData.Formatter.ODataMediaTypeFormatter.ReadFromStream(Type type, Stream readStream, HttpContent content, IFormatterLogger formatterLogger)

Conditional step not working D365 Portal

$
0
0

Hi,

In a web form we have 3 steps , ST1 , ST2, ST3 .

After Step ST1 its optional to fill ST2 and After ST2 step ST3 will be shown up.

Requirement - I have to make ST2 mandatory .

So I open Step 2 and set - Type - condition

In Condition Tab - I set the condition new_quantity but its saying - "attribute not found"


ST1 is linked with entity E1

ST2 is linked with entity E2

I checked the schema name of field in Entity E2 it was correct

Can any one help me

Click notification jump to a field

$
0
0

Hello,

I want to know if that is possible to set up form notification like built-in required field notification, which you click on one notification, it will bring you to the corresponding field.

I tried formContext.ui.setFormNotification(message, level, uniqueId); but this just show a notification, when you click it will NOT bring you to the corresponding field.

Thanks,

Ning

Problem with Claims Authentication on CRM 2016

$
0
0

Hi All

I have a strange issue with CRM where I have setup claims based authentication connecting to the wrong URL for ADFS.

Claims Based Auth setp OK, and thought all is OK, but when I try and connect to CRM, I get redirected to the wrong URL.

ADFS and CRM are installed on different Windows 2016 VMs, and all local DNS is set correctly.

Eg, (domain name changed) If I go to  https://internal.domain.com, instead of being redirected to https://adfs.domain.com/adfs etc it tries to connect to https://domain.com/adfs etc instead!

Interesting if I set the DNS A record for domain.com to point to the ADFS server it does work as expected.

The federation URL set as part of CBA is set to https://adfs.domain.com/federationmetadata/2007-06/federationmetadata.xml 

Any ideas?

thanks

wayne


Need help regarding roles for a new user

$
0
0

Hi,

I have created a new user in our CRM-2016. 

I was able to login successfully as that user, but when I click on Leads - All Leads imported, I see the leads which were imported to the other users/ entire organization.

This user should not see any leads, contacts etc. of other users. Everything should be blank because it's a new user, but I am able to see all the records of other users. Any suggestions on how to fix this?

Thank You 

Default app with multiple model driven app

$
0
0

Hi all,

We have two primary model driven apps that are shared between both teams in the business.  Each team will primarily work in the app that is relevant to their processes, but at times will go into the other app.

I'd like to know if there is a way for some users to have one app as their default, and other users have the other app as their default.

Appreciate any feedback.

Application user who can run workflow and have to register plugins

$
0
0

Application user

I would like to have an application user who can execute workflows and register plugins through him.

I created it as follows:

In Azure Active Directory ->

  • App-Registrations

New application registration -> Overview

-> Application-ID (Client)

-> Directory-ID (Mandant)

-> Object-ID

  • Manifest

Change -> „allowPublicClient“: true

  • API-Permissions

Berechtigung hinzufügen -> Dynamics CRM (Access Common Data service as organization users) -> Administratorzustimmung erteilen

  • Certificates & secrets

Create new certificat Client key

In Azure Active Directory

Create new user -> Profil: User Principal Name, Objekt-ID  

Create and Configure the Applikation User

Here i associate the above Application ID inside Dynamics 365

  • Dynamics 365 -> Settings -> Security - > Users -> Switch the view to Application Users and click a New 
  • then Switch to Application User form and specify the Application ID of the application the i registered earlier and specify Full Name and the Primary Email. The platform populate automatically the Application ID URI and Azure AD Object ID then i go to ->
  • Manage role -> Manage user roles and i add roles: Common Data Service user Systemadministrator 

But when i try to log in to Plugin Registration Tool i get  this error:

Error : You don't have permission to access any of the organizations in the Microsoft Common Data Service region that you specified. If you're not sure which region your organization resides in, choose "Don't know" for the CDS region and try again. Otherwise check with your CDS administrator.
Parametername: EMEA
Stack Trace : Not Provided

LOGIN TO DYNAMICS 365 -> ERROR -> Username does not belong to the D365 Test Environment organization.

should I add a few more roles or what should I do so that everything works. What am I doing wrong.

Please i need please urgent your help.

Query Builder Error

$
0
0

Hi All,

When I try To Filter Subgrid using fetchXml it throws error  When i use normal current entity filter like name eq 'somthing' its work fine.But When am use link entity filter it show error like this....

var fetch3 = "<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='false'>" +
"<entity name='account'>" +
"<attribute name='name' />" +
"<attribute name='primarycontactid' />" +
"<attribute name='telephone1' />" +
"<attribute name='accountid' />" +
"<attribute name='bal_contactlookup' />"+
"<order attribute='name' descending='false' />" +
"<link-entity name='contact' from='contactid' to='bal_contactlookup' link-type='inner' alias='ab'>" +
"<filter type='and'>" +
"<condition attribute='jobtitle' operator='like' value='c%' />" +
"</filter>" +
"</link-entity>" +
"</entity>" +
"</fetch>";

this is my fetch...(i am using Unified Version of CRM)

Workflow is not Working on "process change" for BPF?

$
0
0

On Business process flow entity I have added a ASYNC workflow to update the stage of BPF.

this workflow checking the case entity field changes -

When case status changes update the stage of the business process flow. - This works fine

When case status and Contact Lookup values has value then update the stage of the business process flow. -This works fine when both the fields are changed and saved

But if I changes First  -  case status  Only then save. After that I add/changes  the Contact Lookup values  and save ---- Then the below condition is not working 

## When case status and Contact Lookup values has value then  update the stage of the business process flow.

is the Workflow on "process change" takes only the dirty field values ? 

how to add the both conditions ? 

Viewing all 87499 articles
Browse latest View live


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