CRM 2016 OnPremise set/edit ModifiedOn date - dynamics-crm

Is it supported to set/edit the attribute ModifiedOn date programmatically (plugin, customized workflow or webservice)?

No, this is not possible and not supported. Only the CreatedOn date can be overridden by writing to the overriddencreatedon attribute.

This is not possible in supported way but if you're using On-Premises you can use direct SQL updates to modify modifiedon field but of course it is not supported.

Related

You can not complete this action for this component because of the configuration of its managed properties

I am trying to make a field optional in the Dynamics CRM
The name of the entity is Case and the internal name of the field is customerid
When I try to change it from mandatory to optional, I get the below error message
You can not complete this action for this component because of the
configuration of its managed properties.
this is happening in Dynamics CRM online
I'm pretty sure you won't be able to.
It's one of the few fields where mandatory behaviour is enforced at the platform level, whilst most mandatory fields are enforced only on the user interface.
If I remember correctly, tring to create a case without a customer via the API will result in an exception.
Looking at the managed properties for the customerid field on my recently provisioned CRM Online, shows that I'm unable to change the requirement level - I don't even get the option for setting it as optional.
I wanted to remove the field from the form, but I was not able to do it from the UI
So I used XRMToolBox.
There is a plugin called as FormXML Manager, enable it in the XRMToolBox and load the entities. Once this is done you can remove the required field and publish the form

CRM Portals date issue - date not rendering properly

I am having an issue while retrieving a date field from CRM using Fetchxml and displaying it using web template in CRM Portals.
Date is CRM:
10/10/2018 00:00:00 (TimeZone UTC+10:00)
CRM Portals (Adx studio portals) renders the below:
09/10/2018 02:00:00 PM
Can someone suggest how to handle this?
Regards,
Rizwan Aarif
Check out Behavior and format of the date and time field.
Specifically I think you will want to look at these elements:
Depending on what the field represents, you can choose one of the
following field behaviors for portal forms and grids:
User Local: The field values are displayed in the userā€™s local time
and formatted as per their current portal language/locale.
...
You can also override the default date/time format to be used on
portals by creating the following site settings:
DateTime/DateFormat: The date format used on the portal.
DateTime/TimeFormat: The time format used on the portal.
DateTime/DateTimeFormat: The format for full date and time used on the portal.
By default, the portal uses the standard date/time formats specified
by the website language settings.

Is there any Common Way for updating status using c# in Dynamics CRM

I want to update the status using single common way in c#.
For now I know about SetStateRequest but it did not change its status to any of status. e.g. If i want to change status to fulfilled for order or canceled for order then it requires FulfillSalesOrderRequest and CancelSalesOrderRequest .Like wise different different class for quote's status and others.
So I want some common way for change status.If is there any solution please suggest me.
If you are on CRM 2015 Update 1 or later, SetStateRequest has been deprecated in favor of a normal UpdateRequest, as seen on MSDN:
Before Microsoft Dynamics CRM Online 2015 Update 1, specialized
messages were required to update certain entity attribute values. Now,
UpdateRequest can now be used to set these attributes. The following
table identifies the specialized deprecated message requests and the
related message attributes that can be updated using UpdateRequest.
With that being said, FulfillSalesOrderRequest (and the corresponding Requests for quotes) have not been deprecated, so you still need to use them going forward. The common reqeust you are looking for does thus not exist.

Custom Report in Dynamics CRM Online - Default Date Parameter

I am creating a custom report for Dynamics CRM in Business Intelligence Devlopment Studio.
I have a filter in my FETCHXML with a date 'on-or-after' and the value as a date parameter.
When I don't set a default value, this worked fine however is causing the same error as below when I try to return to it, I have my date picker and could run the report from there.
I want to set a default as 1 month ago, so I put the following default expression into the parameter:
=DateAdd("M",-1,Today())
But I get the following error:
The date-time format for 18/04/2012 00:00:00 is invalid, or value is outside the supported range.
I'm assuming the date-time format is invalid for the createdon field in Dynamics but I don't know how it should be presented in the default value.
MS Dynamics CRM 2011 uses SortableDateTiĀ­mePattern.
So, I guess need to have it in this format: yyyy'-'MM'-'dd'T'HH':'mm':'ss (2008-03-09T16:05:07).
At least, I use it like this creating SOAP requests from JS.

Dynamics CRM 2011 - Processes updating non-form fields?

I'm evaulating Dynamics CRM 2011 currently so I'm still learning how things work.
If a field marked as read-only on a form, is it possible to update it via a process step "update record"? I was trying to have some sort view-only fields that get dynamically updated via a process but in the interface those fields are not accessible to be set?
What if I wrote my own plug-in - would these fields still not be updateable via the assembly?
In order to update a readonly field with a workflow, you have to set it writable until you have the workflow configured. The field will then be accessible and you can add your update action. After that you can set the field to readonly again.
Plugins are not affected by this setting because it is only used for the forms.

Resources