Power Community

Power Community

How to Call Action from WebResource using Web Api

Implementation Steps:

1. Create a Action ( find my blog here on how to create Action)

2. I have Created an action without any input Parameters


3. Once the Action is Created, Navigate to Settings –> Customization –> Customize the System –> Click Web Resource


4. Click New and Create a New Web Resource with Below Code

var req = {};
req.getMetadata = function () {
    return {
        boundParameter: null,
        operationType: 0,
        operationName: "new_AccountAction"
    function (data) { 
        var e = data; 
    function (error) { 
        var errMsg = error.message; 

5. That’s it.

Now Call this function from OnLoad Or OnSave or OnChange from Account Level.

This post was originally published on this site

- Advertisement -spot_img


Please enter your comment!
Please enter your name here

- Advertisement - Advertisement

Latest News

Maplytics Optimizes Routes and Boosts Productivity for T-GREX

T-GREX, a company founded by brothers Roberto and Matteo, brings together their 30 years of experience in the precision...

More Articles Like This

- Advertisement -spot_img