dynamics-crm

D365/JavaScript issue: Need help appending an OnSave event to not allow a user to save a form

假如想象 提交于 2020-04-17 21:16:09
问题 I've created a JavaScript OnSave event that parses through a "Sales Quota Distribution" entity grid within an "Opportunity" entity form, and checks for duplicates in the "Resource" field of the "Sales Quota Distribution" grid. When there is a duplicate, a warning message will appear. This is working, but I'd like to be able to append the OnSave event to not allow the user to save the form if there are no duplicate resources. How can I do this? Below is my current code: function

D365/JavaScript issue: Need help appending an OnSave event to not allow a user to save a form

我与影子孤独终老i 提交于 2020-04-17 21:15:29
问题 I've created a JavaScript OnSave event that parses through a "Sales Quota Distribution" entity grid within an "Opportunity" entity form, and checks for duplicates in the "Resource" field of the "Sales Quota Distribution" grid. When there is a duplicate, a warning message will appear. This is working, but I'd like to be able to append the OnSave event to not allow the user to save the form if there are no duplicate resources. How can I do this? Below is my current code: function

D365/JavaScript issue: Need help appending an OnSave event to not allow a user to save a form

好久不见. 提交于 2020-04-17 21:15:20
问题 I've created a JavaScript OnSave event that parses through a "Sales Quota Distribution" entity grid within an "Opportunity" entity form, and checks for duplicates in the "Resource" field of the "Sales Quota Distribution" grid. When there is a duplicate, a warning message will appear. This is working, but I'd like to be able to append the OnSave event to not allow the user to save the form if there are no duplicate resources. How can I do this? Below is my current code: function

Invalid Uri: The Uri scheme is too long. UriFormatException" In dynamics-CRM FetchXML

百般思念 提交于 2020-04-17 19:12:30
问题 I'm trying to query a Dynamic-CRM system using FetchXML get request . The error: "Invalid Uri: The Uri scheme is too long. UriFormatException" occurs when I'm using specific attributtes\filters. For example: When trying to use filter condition with "on-or-after" operator referring dateTime with time stamp. I'm getting: The initial query is big and working, but event when I shorten the query and use a specific attribute, the error raise. I couldn't put my finger on the problem. See my code, as

Invalid Uri: The Uri scheme is too long. UriFormatException" In dynamics-CRM FetchXML

霸气de小男生 提交于 2020-04-17 19:10:46
问题 I'm trying to query a Dynamic-CRM system using FetchXML get request . The error: "Invalid Uri: The Uri scheme is too long. UriFormatException" occurs when I'm using specific attributtes\filters. For example: When trying to use filter condition with "on-or-after" operator referring dateTime with time stamp. I'm getting: The initial query is big and working, but event when I shorten the query and use a specific attribute, the error raise. I couldn't put my finger on the problem. See my code, as

Invalid Uri: The Uri scheme is too long. UriFormatException" In dynamics-CRM FetchXML

醉酒当歌 提交于 2020-04-17 19:09:55
问题 I'm trying to query a Dynamic-CRM system using FetchXML get request . The error: "Invalid Uri: The Uri scheme is too long. UriFormatException" occurs when I'm using specific attributtes\filters. For example: When trying to use filter condition with "on-or-after" operator referring dateTime with time stamp. I'm getting: The initial query is big and working, but event when I shorten the query and use a specific attribute, the error raise. I couldn't put my finger on the problem. See my code, as

Invalid Uri: The Uri scheme is too long. UriFormatException" In dynamics-CRM FetchXML

烂漫一生 提交于 2020-04-17 19:09:03
问题 I'm trying to query a Dynamic-CRM system using FetchXML get request . The error: "Invalid Uri: The Uri scheme is too long. UriFormatException" occurs when I'm using specific attributtes\filters. For example: When trying to use filter condition with "on-or-after" operator referring dateTime with time stamp. I'm getting: The initial query is big and working, but event when I shorten the query and use a specific attribute, the error raise. I couldn't put my finger on the problem. See my code, as

Disable column in Dynamics CRM editable subgrid based on a condition

China☆狼群 提交于 2020-04-16 04:13:39
问题 Disable column in Dynamics CRM editable subgrid based on a condition I need to disable (make read-only) a column from an editable subgrid in a Dynamics CRM 365 form. In MS doc (https://docs.microsoft.com/en-us/previous-versions/dynamicscrm-2016/developers-guide/mt788311(v=crm.8), the way to get this done is by getting controls with: Xrm.Page.getControl("Opportunity_Installments").getGrid().getRows().getAll()[0].getData().entity.attributes.getAll()[0].controls but the problem is that controls

Disable column in Dynamics CRM editable subgrid based on a condition

时光怂恿深爱的人放手 提交于 2020-04-16 04:13:05
问题 Disable column in Dynamics CRM editable subgrid based on a condition I need to disable (make read-only) a column from an editable subgrid in a Dynamics CRM 365 form. In MS doc (https://docs.microsoft.com/en-us/previous-versions/dynamicscrm-2016/developers-guide/mt788311(v=crm.8), the way to get this done is by getting controls with: Xrm.Page.getControl("Opportunity_Installments").getGrid().getRows().getAll()[0].getData().entity.attributes.getAll()[0].controls but the problem is that controls

Dynamics QueryExpression - Find entity records where fieldA equals fieldB

泪湿孤枕 提交于 2020-03-24 02:57:46
问题 I'm trying to alter some data in dynamics crm. To achive that, I want to write a plugin that searches for entities having speacial criteria. so far, not that special. I could do a QueryExpression and search where "field A" of entits A has "that value" (String, for example) What is different now is, that I want to test "field A" is equal to "field B". In T-SQL it would be select * where table1.fielda = table1.fieldb so I want to match an attribute value of one entity record to an attribute