Dynamics 365 – Make the Form Readonly with Javascript

To make the form read-only in Dynamics 365 you have 2 options. Either changing record status to Inactive or making all form fields disabled with Javascript. Changing record status to Inactive might not suitable for some business cases. For example you might want to make your form read-only based on an attribute. If you change … Continue reading Dynamics 365 – Make the Form Readonly with Javascript

Dynamics 365 – Execute Custom Action From Javascript with Input and Output Parameters

In Dynamics 365, you can call an action directly from JavaScript with its inputs. This can be achieved using the WebAPI. First, let’s create a new custom action in Dynamics 365. Our action will accept RecordURL, Prefix, FieldsToIgnore parameters. Then it will create a copy of the Record by querying its metadata. RecordURL – Input stringPrefix– … Continue reading Dynamics 365 – Execute Custom Action From Javascript with Input and Output Parameters

Dynamics 365 – Copy/Clone a Record with Custom Workflow Activity

By using below code, you can copy a record dynamically by using its URL property. You can execute this workflow activity from Javascript with WEB API or you can execute it inside of an Workflow and implement to any required business logic easily. All you have to do is create a new custom Workflow Activity … Continue reading Dynamics 365 – Copy/Clone a Record with Custom Workflow Activity