I setup Dynamic 365 duplicate detection rules to prevent duplicate data being inserted, but when I insert duplicative data on the portal it gives me this error:
Is there a way that I can get a more user friendly error with duplicate detection?
Solved! Go to Solution.
Hi
the Portals actually ignores any duplicate detection rule from your D365 instance
this might be related to something else, can you enable Plugin Error Message so we see the exact error?
for this, create a Site Setting called: Site/EnableCustomPluginError and value True
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
Power Apps Portals Super User
Hi
the Portals actually ignores any duplicate detection rule from your D365 instance
this might be related to something else, can you enable Plugin Error Message so we see the exact error?
for this, create a Site Setting called: Site/EnableCustomPluginError and value True
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
Power Apps Portals Super User
This seems to give a proper error message, it seems like that it is using my key options from the entity system. They didn't work at first but after a little while they did. I guess that fixes this issue? Is this the right way to solve this?
Unfortunately we can't change the source of that message, what you can do is adding a JavaScript to change the content of the message, there is a delay that users might see the old message changing to the new one, so it isn't really the most perfect solution
Add the following JS code into your Entity Form javascript section:
$(document).ready(function () {
ChangeUniqueKeyValidationMessage();
});
var ChangeUniqueKeyValidationMessage = function()
{
var errorMessage = $(".text-danger");
if(errorMessage.text().indexOf("uq_group_order") > 0)
{
errorMessage.text("My new message");
}
};
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
Power Apps Portals Super User
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
User | Count |
---|---|
4 | |
2 | |
2 | |
1 | |
1 |