knowledgecenter-breadcrum

Knowledge Center

06 Jun, 2020

Call Unbound Action from Type Script with Input and Output parameter

Posted on 06 Jun, 2020 by Admin, Posted in Dynamics 365

Call Unbound Action from Type Script with Input and Output parameter Blogs

Call Unbound Action from Type Script with Input and Output parameter

Introduction

To build custom PCF control we use React JS or Typescript. Sometimes we need to call an unbound action from PCF control where we don’t specify an entity. We also call these action as Global Action. In this blog, we have explained how to call an Unbound Action from TypeScript with an Input and an Output parameter.

Solution with example:

  1. Create an Unbound action.
  2. Add steps, input and output parameter to it.
  1. Get Type of Input Parameter:
    We are using WebApi.online.execute to call action. We will need input parameters type for this action. To do this, go to /api/data/v9.1/$metadata” and find action, in this case new_UnboundAction.
  2. TypeScript function to call action:

Comment

This is a Required Field

Loading

Recent Updates

Case Study
06 Sep, 2024

Implementation of Business Central for a Trading Organization

Customer Overview A prominent trading organization sought to enhance its operational efficiency and streamline its business processes by implementing Dynamics…

READ MORE
Blogs
03 Sep, 2024

Optimizing Code Check-ins: Ignoring Unnecessary Files for a Cleaner Azure DevOps Repo.

Introduction In this blog, we will learn about the code check-in process in DevOps. After development, unnecessary files are sometimes…

READ MORE
Blogs
20 Aug, 2024

Configure Macros in Omnichannel to improve Agent Productivity

What are Macros? Macros are a set of sequential actions that a user performs. They enable users to perform daily…

READ MORE