I faced a strange issue with Plugin which changes the Owner of a case during pre-create, the issues details said as below "Changing security attributes is not allowed in stage 20 plugins.".
The issue seems to be an upgrade in Dynamics CRM to maintain data integrity to not allow any security related changes during pre-create.
so as a work around you have below two options
1. Move your solution to Post Create/Update, but this will need explicit update of owner using assign request, which will trigger assign notification workflows.
Update: No more need of Assign Request if you are on latest CRM 2016 versions as this can be done via Update request
2. Move your plugin to Pre-Validation,this is a perfect replacement for the same & works as expected.!!!
Monday, July 27, 2015
Friday, August 15, 2014
Windows 8 Application for MS Dynamics CRM.
Recently had a chance to work on Windows 8.1 Surface device application development which integrates with CRM. below are the best links which helped me to achieve this as the development does not support any XRM SDK dll's to be added to the project directly.
Building clients for Windows Phone and Windows 8 RT
Connecting CRM Online and a Windows 8 Tiled App
will post more links which i found useful for the development.
Building clients for Windows Phone and Windows 8 RT
Connecting CRM Online and a Windows 8 Tiled App
will post more links which i found useful for the development.
Friday, January 31, 2014
SQL Query to find the Report subscription details for a CRM on premise
Below query has to be run against the ReportServer Database.Which will give you the report name, to address, CC & BCC and last report ran time details. i Found this query very handy when there are lots of report subscriptions going from your CRM.. :)
USE ReportServer
GO
DECLARE @Subscriptions
TABLE (
Report_OID UNIQUEIDENTIFIER,
ToList VARCHAR(8000),
CCList VARCHAR(8000),
BCCList VARCHAR(8000),
SubjectLine
VARCHAR(8000))DECLARE @ExtensionSettings XML
DECLARE @Report_OID
UNIQUEIDENTIFIER
DECLARE @idoc INT
DECLARE SubscriptionList
CURSOR FOR
SELECT Report_OID,ExtensionSettings
FROM Subscriptions SubscriptionList
Open SubscriptionList
FETCH NEXT FROM SubscriptionList
INTO @Report_OID
,@ExtensionSettings
WHILE (@@FETCH_STATUS=0)
BEGIN
EXEC sp_xml_preparedocument @idoc OUTPUT, @ExtensionSettings
INSERT INTO @Subscriptions
SELECT @Report_OID,[TO],[CC],[BCC],[Subject]
FROM
(
SELECT *
FROM
OPENXML (@idoc, '/ParameterValues/ParameterValue')
WITH
(Name NVARCHAR(1500) 'Name',
Value NVARCHAR(1500) 'Value')
) AS SourceTable
pivot
(
MAX(value) FOR [Name] IN ([TO],[BCC],[CC],[Subject])
) AS pivottable
EXEC sp_xml_removedocument @idoc
FETCH NEXT FROM SubscriptionList
INTO @Report_OID
,@ExtensionSettings
END
CLOSE
SubscriptionList
DEALLOCATE
SubscriptionList
SELECT c.CreationDate,c.ExecutionTime,c.path,c.name,s.Tolist,s.cclist,s.bcclist,s.subjectline FROM
Catalog c INNER JOIN @Subscriptions
s ON c.ItemID = s.Report_OID ORDER BY [path], Name
select C.Description,C.ExecutionTime,C.ExecutionFlag,C.Type,C.CreationDate,S.LastRunTime,S.EventType,S.DeliveryExtension,S.InactiveFlags from Catalog C inner join Subscriptions S on
C.ItemID=S.Report_OID
Meanwhile in the Dynamics CRM 2011!!
CRM 2011 has got a new update too
Rollup 16 has been released for the CRM 2011 version
Dynamics CRM 2011 Rollup 16 available for download
Latest SDK for CRM 2011:
CRM 2011 sdk latest
Watch this space for any new downloads information related to CRM 2011
Rollup 16 has been released for the CRM 2011 version
Dynamics CRM 2011 Rollup 16 available for download
Latest SDK for CRM 2011:
CRM 2011 sdk latest
Watch this space for any new downloads information related to CRM 2011
CRM 2013 rollup one is available now!! (watch this space for any CRM 2013 related downloads)
CRM 2013 on-premise installer:
CRM 2013 On premise Source file
CRM 2013 Roll-up 1 is available for download:
CRM 2013 Roll-up 1
CRM 2013 Latest SDK download:
CRM 2013 SDK
CRM 2013 On premise Source file
CRM 2013 Roll-up 1 is available for download:
CRM 2013 Roll-up 1
CRM 2013 Latest SDK download:
CRM 2013 SDK
Saturday, October 5, 2013
Dynamics CRM 2013 is available in CRM online now!!
Dynamics CRM 2013 is available for online trial now!
Click here to grab a 30 days CRM 2013 online trial
CRM 2013 SDK available for dowload!!
SDK 2013
Click here to grab a 30 days CRM 2013 online trial
CRM 2013 SDK available for dowload!!
SDK 2013
Saturday, September 14, 2013
MS Dynamics CRM Report Error "Report Does not exist"
Today i came across and error that saying "Report Does not exist. The error came when i try to delete the report from the Dynamics CRM reports section.
We had moved the current CRM instance to a new domain, with new organization name. There comes the issue!! We imported the organization database CRMORG_MSCRM, but after the testing we came across this error for all the scheduled reports.
During the investigation we found that the Reporting server is almost empty with no scheduled reports available. but the OOB and SSRS reports are working fine. i tried to delete the report from CRM Reports section, but couldn't do so only Error came up!!
Now comes the resolution part, The issue is because the Scheduled reports are stored in the ReportServer Database, which was not imported. So we need to somehow delete the reports and reschedule the reports, In the report server the Reports are stored in the Report-server->Organization Name->4.0 folder with the GUID of the report schedule as name in the Report server, we need to trick CRM by uploading a dummy report file (.rdl) and rename the Report to the GUID of the Scheduled report. The Report GUID can be found by clicking f11 button and copying the GUID from the URL. Use the Guid with "{GUID}" in the name of the uploaded RDL, now we can delete the Report form CRM Report section. Viola!!!! Reports are deleted!
I have tested the above scenario and it is working fine!! for further queries u drop a mail Contact me
We had moved the current CRM instance to a new domain, with new organization name. There comes the issue!! We imported the organization database CRMORG_MSCRM, but after the testing we came across this error for all the scheduled reports.
During the investigation we found that the Reporting server is almost empty with no scheduled reports available. but the OOB and SSRS reports are working fine. i tried to delete the report from CRM Reports section, but couldn't do so only Error came up!!
Now comes the resolution part, The issue is because the Scheduled reports are stored in the ReportServer Database, which was not imported. So we need to somehow delete the reports and reschedule the reports, In the report server the Reports are stored in the Report-server->Organization Name->4.0 folder with the GUID of the report schedule as name in the Report server, we need to trick CRM by uploading a dummy report file (.rdl) and rename the Report to the GUID of the Scheduled report. The Report GUID can be found by clicking f11 button and copying the GUID from the URL. Use the Guid with "{GUID}" in the name of the uploaded RDL, now we can delete the Report form CRM Report section. Viola!!!! Reports are deleted!
I have tested the above scenario and it is working fine!! for further queries u drop a mail Contact me
Subscribe to:
Posts (Atom)