knowledgecenter-breadcrum

Knowledge Center

31 May, 2022

How to create columns of different data types using Plugin

Posted on 31 May, 2022 by Admin, Posted in Dynamics 365 Dataverse Power Platform

How to create columns of different data types using Plugin Blogs

How to create columns of different data types using Plugin?

Introduction

In this blog, we will learn how to create text and integer type of fields using plugin.

We all know how we can create fields using entity customizations but not many of us know to do that using code.

Example

We will create a text field named Employee ID and integer field named Age on Employee entity  using Plugin.

  1. Create a Plugin with Execute method as below:

2. Add function named “CreateFieldsonEmployee” and add below code:

  • For creating Employee ID (text) field creation:

  • For Age (integer) field creation:

3. Build and register the plugin on Pre-Validation stage on create of Employee entity.

Result

  • Before fields creation:

 

 

  • After the fields creation:

 

Comment

This is a Required Field

Loading

Recent Updates

Thumbnail Image of ROI
Blogs
17 Jun, 2025

Maximizing ROI with Power Apps: The Role of Expert Consulting Services

Maximizing ROI with Power Apps: The Role of Expert Consulting Services Explore how skilled professionals can get you the best…

READ MORE
Digital transformation thumbnail
Blogs
12 Jun, 2025

How Microsoft 365 Consulting Can Drive Digital Transformation for Your Organization

How Microsoft 365 Consulting Can Drive Digital Transformation for Your Organization Digital transformation boasts way more than just shifting from…

READ MORE
Blogs
12 May, 2025

How to create an Autonomous Agent in Copilot Studio

What Are Autonomous Agents in Copilot Studio? Autonomous agents are AI-driven entities that operate independently within Copilot Studio. They go…

READ MORE