AdxStudio: Make fields required or not required using Javscript

Dex Galvez

As of writing, business rules are not yet supported in AdxStudio / Microsoft Portals.

With this, if we need the functionalities of business rules such as making fields required and not required, we need to use javascript / jQuery.

Below are my codes for toggling this behavior.

You can use this on EntityForms, WebFormSteps, and any area in Adxstudio / Microsoft Portals where custom javscript is accepted.

View original post

Dynamics CRM SMS Integration with Twilio using Power Automate

In this blog, I will try to demonstrate how we can integrate Twilio for sending SMS from Dynamics CRM using Power Automate. SMS functionality is required by clients for many business use-cases.Some of them are listed below. Lead creation Customer Onboarding Case creation Let’s start with Twilio account creation in case you don’t have you […]

Dynamics CRM SMS Integration with Twilio using Power Automate

Retrieve contents of File Data Type field in Dynamics 365/ CDS using JavaScript/ client code.

Follow my blog for more interesting topics on Dynamics 365, Portals and Power Platform. For training and consulting, write to us at info@xrmforyou.com Few months back I wrote an article on File Data type in Dynamics 365/ CDS where I explained the details of this data type and explained how you download the content of the […]

Retrieve contents of File Data Type field in Dynamics 365/ CDS using JavaScript/ client code.

{Dynamics 365} Lock a field after saving a record

Wondering if we can disable a field after save. For example, when user creates a new record, it is editable, but after save, it not editable. Low Code No Code solution To achieve this requirement we can make use of Business Rule where we can check if CreatedOn field contains data and if true lock […]

{Dynamics 365} Lock a field after saving a record

Add or Substract using more than two field inside a formula in Dynamics 365 Business Rules

Follow my blog for more interesting topics on Dynamics 365, Portals and Power Platform. For training and consulting, write to us at info@xrmforyou.com This one is one of the simplest requirement as it gets and yet you may stumble upon it. Reading the subject of this blog you may wonder, come on business rule have this […]

Add or Substract using more than two field inside a formula in Dynamics 365 Business Rules

Show Notification on Dashboards in Dynamics 365/ CDS

Follow my blog for more interesting topics on Dynamics 365, Portals and Power Platform. For training and consulting, write to us at info@xrmforyou.com For a long time this has been the ask by so many customers. Show a notification message bar on a Dashboard. Very similar to the application message you see on the Application message […]

Show Notification on Dashboards in Dynamics 365/ CDS

Microsoft Dynamics CRM/365 Entity Ownership

Microsoft Technologies and D365 Blogs by Prasanna Vadlamdui

Entity Ownership

  • In Dynamics 365, most of the entities (including custom entities) are owned by the organization, by a user, or a team.
  • The type of ownership determines some of the operations that can be performed on a record.
  • Ownership for an entity is defined in the metadata property OwnershipType.
  • For Organization type entity records, we can’t see Assign button or Share button.

 

Entity Ownership Types

Ownership Type  Description
Organization Owned Contains data involving something that belongs to or that can be viewed by the whole organization. Organization-owned entities cannot be assigned or shared. For example, products are owned by the organization. These entities have an attribute named organizationid.
Business Owned Entities that belong to a business unit. These entities have an attribute named owningbusinessunit.
User or Team Owned Assigned to a user or to a team. These entities contain data that relates to customers, such…

View original post 149 more words

Ask Hosk - I’m a functional consultant who wants to become a Dynamics developer

Hosk's Dynamic Blog

Here is a question from one my readers which is a common question, so I am putting the answer here so lots of people can read it.

Question

“I am working as a Dynamics 365 functional consultant But I want to become a Dynamics developer. Can you please give me an idea on what are the pre-requisites for this? I have basic knowledge of C# and MSSQL”

Hosk advice

Moving from a functional consultant to Dynamics developer is an easier path with the progress of no code and low code solutions. Power Automate, Power Apps and Logic apps offer lots of ways to create customisations that would normally have taken C# code.

Become a Dynamics 365 expert

Study for the MB-200, It has free online training at the bottom of the link.

Do not cheat and download answers because if you get caught the results of all your certifications will…

View original post 871 more words

Adding a Print Button to a Power Apps Portal Page

ReadyXRM

Sometimes you just need to print.

Adding a print button to a Power Apps Portals page is pretty simple.

In the portal studio on the page where you want to add the print button, open up the source code editor.

Source Code Editor

This will open the source code editor where you can add your own HTML, CSS, Liquid, JavaScript, etc.

Paste in the following code:

<button onclick="PrintFunction()">Print</button>

<script>
  function PrintFunction() {
    window.print();
  }
</script>

paste in code

Click Save, you should then see the Print button rendered on your canvas. Browse to the website to view your page.

Print Button

You will see the print button rendered on the page.

Printing will show a preview, note that some components like entity lists may affect how the actual print out looks.

Print Preview

I had a question from a student, asking how to remove page header and footer while printing…

View original post 126 more words

[Code Snippet] Dynamics Portals/ADX – Set ‘Field Requirement’ using script

Rajeev Pentyala - Microsoft power platform blog

Below is the code snippet to set the requirement level (i.e., Required/Non-Required) of a field using script in portals. This logic handles all kind of field types including Check boxes.

Set Field As Required:

function SetFieldAsRequired(fieldName) {
if (typeof (Page_Validators) == ‘undefined’) return;
if ($(“#” + fieldName) != undefined && $(“#” + fieldName + “_label”) != undefined) {
$(“#” + fieldName).prop(‘required’, true);
$(“#” + fieldName).closest(“.control”).prev().addClass(“required”);

// Create new validator object
var Requiredvalidator = document.createElement(‘span’);
Requiredvalidator.style.display = “none”;
Requiredvalidator.id = fieldName + “Validator”;
Requiredvalidator.controltovalidate = fieldName;
Requiredvalidator.errormessage = “<a href=’#” + fieldName + “_label’>” + $(“#” + fieldName + “_label”).html() + ” is a required field.</a>”;
Requiredvalidator.initialvalue = “”;
Requiredvalidator.evaluationfunction = function () {
var fieldControl = $(“#” + fieldName);
if (fieldControl.is(“span”)) {
var value0 = $(“#” + fieldName + “_0”).prop(“checked”);
var value1 = $(“#” + fieldName + “_1”).prop(“checked”);
if (value0 == false && value1 == false) {
return false;

View original post 163 more words

Create your website at WordPress.com
Get started