Dataverse: Create Custom API and Implement using plugin C#

Ajit Patra

In this blog, we’ll see how to create custom API in maker portal and write plugin to implement it. We’ll take the example of refreshing roll up field on demand. This API will take 3 parameters:

  1. TargetEntity: Name of the entity containing the roll up field
  2. TargetId: GUID of the record
  3. Field: Name of the roll up field to be refreshed

In the plugin we’ll write the code to execute request to refresh roll up field. We’ll test the custom API using Postman.
So, let’s get started.

Go to Solutions -> Click on New -> Select Custom API.

Fill the details of the custom API record as shown below:

Once the custom API is created, in the Solution, Click New -> Select Custom API Request Parameter.

The first parameter TargetEntity is of String Type. Fill the details as shown below:

Similarly, create the second parameter TargetId which…

View original post 260 more words

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.