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.
Related
On my volunteering website, users can edit their profile and enter a date in the future when they are available to volunteer. If they are already signed up for a volunteer opportunity, they shouldn't be able to change the dates they are available until they have fulfilled their assignment. I am using CB Query Validation to check if they have a current assignment when they change their date. The validation is working - that is, it is showing the error message when they change the date but shouldn't be changing it. But it still allows them to save the profile edit with the new date. Is there a way to disable the SAVE button if the error shows?
We've recently enabled the Unified Interface on our Dynamics 365 CE web client and noticed that the fullname is missing from the Contact forms and several views. It is there when we open the Form editor, but when we're running formContext.getAttribute("fullname") it returns a null.
It's causing us a big headache as we're using the fullname basically everywhere: in forms, views, Document templates, JavaScripts etc.
Has anyone come across this problem or knows a workaround without having to replace the fullname with first and last name everywhere in our environment?
According to Microsoft it's officially not ready before April 2020 (https://learn.microsoft.com/en-us/power-platform/admin/about-unified-interface#capabilities-not-yet-on-unified-interface), but we need to start testing before that.
Many thanks in advance
Composite control is not available in UCI yet. So the popup will not be showing up to do data entry. That means the Full name field will display as the child individual fields, ie. First name & Last name. The data changes in any of the First name or Last name will replicate to Full name field.
Only changes needed is in form scripting. Whenever/wherever you are accessing the Full name field like formContext.getAttribute("fullname") just switch it to formContext.getAttribute("firstname") + " " + formContext.getAttribute("lastname") if the script is executing in UCI.
I just tested this quickly in my UCI. Also views showing the Full name field without issues. Templates should not be a problem if data is there. Only problem is in form, so the above script will solve the issue.
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 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.
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.