microsoft-dynamics

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

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

Dynamics QueryExpression - Find entity records where fieldA equals fieldB

[亡魂溺海] 提交于 2020-03-24 02:56:06
问题 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

RibbonActions.js Deprecated in Dynamics 365 Unified Interface. Is there any new JS Library replacing RibbonActions.js?

妖精的绣舞 提交于 2020-03-21 05:11:56
问题 I am using the OOTB Send Direct Email button to send bulk emails. This works fine in Classic mode but throws below error in the Unified Interface . After some research I found out that /_static/_common/scripts/RibbonActions.js is deprecated and $webresource must be used instead. Is there any way I can find the new library for RibbonActions.js ? Looked into D365 Documentation and Ribbon Workbench Documentation, found nothing. Any solutions would be helpful. 回答1: When you type $webresource

Display external application forms within Microsoft Dynamics 365

て烟熏妆下的殇ゞ 提交于 2020-02-07 02:37:05
问题 We have our own system which we need to integrate with MS Dynamics 365.For Example : In Accounts section we need to add an extra tab that loads IFrame or something that retrieves some extra information from our system. The following are the things that I reached : Inserting IFrame within a new Dashboard : (but it will not fetch specific account information, it will only pass the currently logged in user along with the organization name) Unified Service Desk (USD) : (we may add customization

Display external application forms within Microsoft Dynamics 365

。_饼干妹妹 提交于 2020-02-07 02:36:11
问题 We have our own system which we need to integrate with MS Dynamics 365.For Example : In Accounts section we need to add an extra tab that loads IFrame or something that retrieves some extra information from our system. The following are the things that I reached : Inserting IFrame within a new Dashboard : (but it will not fetch specific account information, it will only pass the currently logged in user along with the organization name) Unified Service Desk (USD) : (we may add customization

Dynamics Crm 365 custom button on navigation tool bar

不羁的心 提交于 2020-02-04 05:05:26
问题 In Dynamics Crm 365 (online), is it possible to create and display a custom button/icon in the navigation bar? 回答1: We achieved by doing this. Add/Use an existing ribbon/command bar button & it's Enable rule as shortcut to execute the below script as a Function from javascript web resource : [Simply copy this script, change org_url & run it in browser developer toolbar console to see it in action] var element = window.parent.document.getElementById("navTabGroupDiv"); var url = "http://<org

clearoption for optionset in crm business process flow

让人想犯罪 __ 提交于 2020-01-25 03:09:06
问题 I have a business process flow In one of its steps I have added an option set(sub category) I am trying to clear the options in the optionset using the below code Xrm.Page.getControl("new_subcategory").removeOption(100000005) Xrm.Page.getControl("new_subcategory").clearOptions() This removes the options for the optionset that is inside the form, but it is not removing for the same option set that is in the step of business process flow 回答1: You need to added header_process_ to the id. So: Xrm