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

Add Create New Lead within an Account Record

$
0
0

How do I add the Create New Lead from within an Account Record (and remove the + New opportunity options) so that they only way to create an opportunity from within an account is to start with a Lead. 


I made a mistake and overwrote some contacts by importing a file without deleting the contact ID info from the Excel Sheet

$
0
0

As I mentioned in the title, I exported all the contact sheets to delete the main info and replace it with new contact information. However, I forgot about the 3 hidden columns on the Excel file that have additional information, specifically some IDs related to the original contacts.

I realized the next day that some of the older contacts were mixed up with the new ones. One member of my team suggested re-uploading an old file that we had before the new import was done so they could return to being like they were originally and then uploading from a clean sheet the new ones.

The problem is that I sent a journey with the contacts mixed up (It only had one-time e-mail from different segments). I already checked, and I know that the e-mails were sent to the new contacts because the replaced fields were mainly Company Name and E-mail. 

My questions would be: Do you think that once I re-upload, the old files will crash the journey information? Should I wait some days to gather some data and then proceed with this process while stopping the journey? Or maybe there´s another option to solve this issue?

Thanks in advance to all of you for the support. 

Need urgent help!

$
0
0

Hi. I have a generated a report on opportunities from dynamics using advance find. In the excel, the opportunity id is showing in a string of alpha numeric characters. I want to extract the opportunity id from it. How to do this?

Add the AuditBase table back to the AuditPScheme Partition

$
0
0

I few years ago coworker of mine created an AuditBase table purge process that he ran a few times to reduce the size of the AuditBase table in CRM. After digging through his scripts I noticed that he took the approach to create a temp table and copy only the records he wanted to keep into it, then he dropped the AuditBase table and renamed his temp table to AuditBase. That is fine and it works without any issues. However, when doing this he did not add it back to the partition and he did not add back the 5 indexes on the Audit table. So I'm working through the process to get this set back up correctly. I was able to get it fixed in one of our development environments by doing the same sort of thing that he did, create a temp table, copy the audit records into, drop the audit table, then rename the temp table to AuditBase. But this time I added the partition and indexes back. It works fine. However, I'm trying to figure out how to do this without having to copy the audit records into a temp table. I should be able to just add the AuditBase table back to the partition and add back the indexes. But I am not sure how to add the partition back. I hoping someone can point me in the right direction. 

This is what I came up with using a temp table. Can someone tell me how to just add the partition back to the AuditBase table without having to use a temp table? The reason I want to do that is because my Audit table in production has over 1 billion audit records and is about 2TB in size. So I don't want to copy something like that in production if I don't have to. 

USE [CRM_MSCRM]
GO

-- 2.1 Create Audit table on AuditScheme

CREATE TABLE [dbo].[AuditBase-TEMP](
	[AttributeMask] [nvarchar](max) NULL,
	[TransactionId] [uniqueidentifier] NOT NULL,
	[Action] [int] NULL,
	[ObjectId] [uniqueidentifier] NOT NULL,
	[ObjectIdName] [nvarchar](1) NULL,
	[UserId] [uniqueidentifier] NOT NULL,
	[ChangeData] [nvarchar](max) NULL,
	[CreatedOn] [datetime] NOT NULL,
	[Operation] [int] NOT NULL,
	[AuditId] [uniqueidentifier] DEFAULT (newsequentialid()) NOT NULL,
	[CallingUserId] [uniqueidentifier] NULL,
	[ObjectTypeCode] [int] NULL,
	[RegardingObjectId] [uniqueidentifier] NULL,
	[RegardingObjectIdName] [nvarchar](4000) NULL,
	[UserAdditionalInfo] [nvarchar](400) NULL,
) ON AuditPScheme (CreatedOn)

-- 2.2 Copy audit records from AuditBase to AuditBase-TEMP

INSERT INTO [dbo].[AuditBase-TEMP] 
(
    [AttributeMask], 
    [TransactionId], 
    [Action], 
    [ObjectId], 
    [ObjectIdName],
    [UserId], 
    [ChangeData], 
    [CreatedOn], 
    [Operation], 
	[AuditId],
    [CallingUserId], 
    [ObjectTypeCode]
)
SELECT 
    [AttributeMask], 
    [TransactionId], 
    [Action], 
    [ObjectId], 
    [ObjectIdName], 
    [UserId], 
    [ChangeData],
    [CreatedOn], 
    [Operation],
	[AuditId],
    [CallingUserId], 
    [ObjectTypeCode] 
FROM [dbo].[AuditBase]

---- 2.3 Drop AuditBase table

IF EXISTS (SELECT * FROM sys.tables WHERE Name = 'AuditBase')
BEGIN
	print 'Dropping Audit table AuditBase'
	DROP Table AuditBase
END

---- 2.4 Rename AuditBase-TEMP table to AuditBase

EXEC sp_rename 'AuditBase-TEMP', 'AuditBase';

Configure Email Configuration using SMTP Server

$
0
0

Hi All,

we are using OnPremise v9.1 Server CE and Need to set up Email configuration with IAMP/SMTP Server Profile. 

Tried using Port 25 but its not working.

What should be the Incoming port we need to provide. What should be the Incoming email location and outgoing email location  Values we need to provide.

Tried all ways but getting Error. 

"An unknown error occurred while receiving email. Mailbox Michael Dwyer didn't synchronize. The owner of the associated email server profile Microsoft Exchange Online has been notified.

Email Server Error Code: UnknownIncomingEmailIntegrationError"

Hi, Community, How we can alternative key combination for Email and Last Name retrieve a key That I have created for the Any entity using plugin d365?

$
0
0

Hi, Community, How we can retrieve a key Which I have create for the Any entity using plugin d365,Please let me know.

issue in fetching all subgrid rows values(looping through) via jscript

$
0
0

Hi,

i facing issue in fetching all subgrid rows values(looping through) via jscript. eg i m having 3 rows on subgrid(decison) on case form and i need to check three fields(panel decision(option set) , date of sumission(date), durationofdeferralinmonths( numeric) values as condition in any one of row records. in javascript i m unable to fetch all 3 rows also i m unable to fecth option set field, date field , etc value from records.

i m trying following methods not getting expected result. someone please suggest me on it.

varformContext=executionContext.getFormContext();
    //Collecting Subgrid Context.
varDecisiongridContext=formContext.getControl("Subgrid_Decisions");
//Collecting Subgrid Rows.
varmyRows=DecisiongridContext.getGrid().getRows();
//Obtaining Total Row Count.
varRowCount=myRows.getLength();
alert('Decision Grid RowCount: '+RowCount);
//loop through each row to get values of each column
myRows.forEach(function (row, i)
{
    vargridColumns=row.getData().getEntity().getAttributes();
    //loop through each column in row
    gridColumns.forEach(function (column, j)
     {
        varatrName=column.getName();
        varatrValue=column.getValue();
    });
});
try2:
varformContext=executionContext.getFormContext();

    varDecisionmonth=[],i;
    varDecisiongridContext=formContext.getControl("Subgrid_Decisions");
//Collecting Subgrid Rows.
varmyRows=DecisiongridContext.getGrid().getRows();
//Obtaining Total Row Count.
varRowCount=myRows.getLength();
alert('Decision Grid RowCount: '+RowCount);
if(RowCount==0)
{
setTimeout (DecisionSubGridExecution(),2000)
return;
}
for(i=0;i<RowCount; i++)
{
    varrowEntity=myRows.get(i).getData().getEntity();
alert(rowEntity.attributes.get("durationofdeferralinmonths").getValue());
    Decisionmonth[i]=rowEntity.attributes.get("durationofdeferralinmonths").getValue();

    }

How to search for a particular post entity using it's post id (GUID).

$
0
0

Hello, 

Say i have multiple  post associated to one account and  i want to search posts using post id (GUID) , like : 8240497f-60f5-ed11-8848-000d3a0aab51.
as post does not have any view , I am not able to append this GUID to URL like we do with other entities like Account , lead etc. 


So is there any other way to search posts using it's unique id/ GUID.
if yes please let me know, how ? 

Thanks!


Hide the ribbon button

$
0
0

Hi folks,

I have to hide a ribbon button which is in "A" entity. In A table form there is a lookup of "B" table when ever we select the record in lookup, that record should have data in one of its 'C' subgrid which is placed under a "D" tab in "B" table record.

Note: Ribbon button is added through the PowerApps. Can I use the powerFx formula's or JS. 

Much appreciate any feedback!

Thanks in advance.

How to clear text field value with power FX command

$
0
0

Hello,

I've got a MODEL DRIVEN application and would like to clean a Text field thanks to a POWER FX command bar.

I know how I can copy a field value but I don't know the formula to clear a field.

Thanks for your help,

Error while updating custom security role

$
0
0

Hi All,

I have copied the system Administrator and trying remove some Security Role related privileges from this new custom role, but getting the below error when saving it.

System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: Privilege a8c424c8-5e57-40d0-bdc9-4b00f65f3e34 is duplicated. (Fault Detail is equal to Exception details:
ErrorCode: 0x8004140F
Message: Privilege a8c424c8-5e57-40d0-bdc9-4b00f65f3e34 is duplicated.
TimeStamp: 2023-06-05T14:27:43.5651635Z).

Skipping business process flow initialization on related record creation with plugin

$
0
0

Hey there,

we have a BPF in place that starts from contact, which isn't needed at the creation of every contact, maybe never.

So I have been trying to use a plug-in to set the processID of said contact to guid.empty ( Skipping process initialization on create ) 

This is also refered to in the documentation here: Apply business process flow while creating an entity record.

I'm using the following code at the end. 

Its working as expected, and the processID is set to "0000..." after creation, nevertheless the BPFrecord is still linked and shown in the contact form.

This makes me think, that dynamics handles this differently now? Is there any info about changed behavior?

Could somebody point out a different way to skip the initialization of a BPF record on creation?

Thanks!

Julian

 

public class PreOperationContactCreate : IPlugin

    {
        public void Execute(IServiceProvider serviceProvider)
        {
            IPluginExecutionContext context = (IPluginExecutionContext)
            serviceProvider.GetService(typeof(IPluginExecutionContext));
            Entity target = (Entity)context.InputParameters["Target"];
            target["processid"] = Guid.Empty;
        }
    }

Install CRM on three tier architecture

$
0
0

Dear All : 

Please note that i tried to install CRM in tier Architecture , front End in DMS Zone , Backend in internal Zone , SQL servers in DB zone 

i tried to install the front end service on the front end servers but it's required to access the SQL server thought port 1433 & 1434 and the install could not be completed without this connectivity 

is there anyway to install the CRM on the front end servers using the connection between the front end and backend only without the need to connect the front end server with the  SQL server 

Please advice

Error while updating custom security role

$
0
0

Hi All,

I have copied the system Administrator and trying remove some Security Role related privileges from this new custom role, but getting the below error when saving it.

System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: Privilege a8c424c8-5e57-40d0-bdc9-4b00f65f3e34 is duplicated. (Fault Detail is equal to Exception details:
ErrorCode: 0x8004140F
Message: Privilege a8c424c8-5e57-40d0-bdc9-4b00f65f3e34 is duplicated.
TimeStamp: 2023-06-05T14:27:43.5651635Z).

Dev Environment Solution Changes

$
0
0

Hi all

I have a very weird issue going on in our dev envronment. We are on-premise D365crm and use patches to promote any changes. couple of weeks back had one patch promoted successfully and no issues at all. 

Last week i have started a new patch and trying to make some changes on an existing form but none of the changes are reflecting immediately after publish, it takes atleast a day before i could see changes. 

so far i have tried cleaing cache using differennt browsers(chrome and edge) and obciosuly published sevral times also got IISRESET on backend server.

Any suggestions please and what may have caused this when nothing changed in the environment between two patches. 

Thank you

PS 

 


The target principal name is incorrect

$
0
0

we are migrating data from one to Dynamic CRM on premise  throw backend using .net . in . i am getting the below error alternative insert  using . IOrganizationService.Create

insert Incident:- Error: System.ServiceModel.Security.SecurityNegotiationException: A call to SSPI failed, see inner exception. ---> System.Security.Authentication.AuthenticationException: A call to SSPI failed, see inner exception. ---> System.ComponentModel.Win32Exception: The target principal name is incorrect
   --- End of inner exception stack trace ---
   at System.Net.Security.NegoState.StartSendAuthResetSignal(LazyAsyncResult lazyResult, Byte[] message, Exception exception)
   at System.Net.Security.NegoState.StartSendBlob(Byte[] message, LazyAsyncResult lazyResult)
   at System.Net.Security.NegoState.StartSendBlob(Byte[] message, LazyAsyncResult lazyResult)
   at System.Net.Security.NegoState.StartSendBlob(Byte[] message, LazyAsyncResult lazyResult)
   at System.Net.Security.NegoState.ProcessAuthentication(LazyAsyncResult lazyResult)
   at System.Net.Security.NegotiateStream.AuthenticateAsClient(NetworkCredential credential, String targetName, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel allowedImpersonationLevel)
   at System.ServiceModel.Channels.WindowsStreamSecurityUpgradeProvider.WindowsStreamSecurityUpgradeInitiator.OnInitiateUpgrade(Stream stream, SecurityMessageProperty& remoteSecurity)
   --- End of inner exception stack trace ---

 

Server stack trace: 
   at System.ServiceModel.Channels.WindowsStreamSecurityUpgradeProvider.WindowsStreamSecurityUpgradeInitiator.OnInitiateUpgrade(Stream stream, SecurityMessageProperty& remoteSecurity)
   at System.ServiceModel.Channels.StreamSecurityUpgradeInitiatorBase.InitiateUpgrade(Stream stream)
   at System.ServiceModel.Channels.ConnectionUpgradeHelper.InitiateUpgrade(StreamUpgradeInitiator upgradeInitiator, IConnection& connection, ClientFramingDecoder decoder, IDefaultCommunicationTimeouts defaultTimeouts, TimeoutHelper& timeoutHelper)
   at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.SendPreamble(IConnection connection, ArraySegment`1 preamble, TimeoutHelper& timeoutHelper)
   at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.DuplexConnectionPoolHelper.AcceptPooledConnection(IConnection connection, TimeoutHelper& timeoutHelper)
   at System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(TimeSpan timeout)
   at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.OnOpen(TimeSpan timeout)
   at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)
   at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)

 

Exception rethrown at [0]: 
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at System.ServiceModel.ICommunicationObject.Open()
   at Microsoft.Crm.Sandbox.SandboxClientBase`1.Open()
   at Microsoft.Crm.Sandbox.SandboxClientBase`1.get_Proxy()
   at Microsoft.Crm.Sandbox.SandboxOrganizationService.Execute(String operation, Byte[] serializedRequest, Object sandboxTraceSettingsObj): Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #90B91501
05-06-2023 01:50:23.005   ----    CreateComplaint:- Status:Save Error

Export auto-posts of entites in CRM

$
0
0

Hi All,

Can we export auto-post records?

If this is possible then how we can export it ?

Change event is not triggering for barcode scanner control

$
0
0

Hello everyone,

To process the Order Products, we do have Barcode scanning control on Order Product form and we are using that from the "Dynamics 365 for Phones" mobile app. Once the product ID is scanned from the mobile camera, we have written a custom code to populate the related Product in Product lookup. The functionality is working fine when we manually enter product ID in Barcode field. But the change event is not triggering when the product Id is being scanned from the camera.

Let me know if anyone is having any solution for this. 

Thank you in advance!

how to filter data verse excel table to get last month dates

$
0
0

Hi 

I was wondering if anyone could help me? I have created a power automate flow which retrieves a table from data verse. However I am trying to retrieve the dates from 3 months ago example i want all data that is in the month MARCH only. My table name is cuk_checkeddatatime. It currently brings every year. I only want the table to show 2023 in month march.

PLEASE HELP I HAVE TRIED EVERYTHING.

  

Below is list rows which retrieves the table i want from data verse, when they emails me all the data but i want to filter it too only email me march dates. 

Send body from OneDrive PDF file to JavaScript Resource and then download it

$
0
0

Here is the thing,

I have a WebResource connected to a Ribbon Button that calls a flow. 

The Flow gets a Word Template from my OneDrive, converts it to PDF(Preview) and sends it back to the Javascript Web Resource using HTTP Response.

The document is then downloaded, but when I open it, it says "We can't open this file".

Here is the Flow Response:

And here is the code that is used to fetch the response and download it:

function downloadFile(blob, fileName) {
        debugger;
        if (navigator.msSaveBlob) { // IE 10+
            navigator.msSaveBlob(blob, fileName);
        } else {
            var link = document.createElement("a");
            if (link.download !== undefined) {
                var url = URL.createObjectURL(blob);
                link.setAttribute("href", url);
                link.setAttribute("download", fileName);
                link.style.visibility = 'hidden';
                document.body.appendChild(link);
                link.click();
                document.body.removeChild(link);
            }
        }
    }

The entire code is pretty much a copy paste of this with a few changes:

https://www.itaintboring.com/powerapps/how-to-add-a-ribbon-button-that-calls-a-power-automate-flow/

I suspect it is something to do with the Content-Type, or the fact that the file is Converted(Preview) and not Saved to OneDrive.

Viewing all 82002 articles
Browse latest View live


Latest Images

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