Hi, you didn't mention what how you are going to call it. The common way its using JS but it could be in c#, powerapp.
here an example with JavaScript
function callAction(parameterJSON) {
var entity = {};
var requestAction = {};
requestAction.parameterJSON = parameterJSON;
requestAction.getMetadata = function () {
return {
boundParameter: null,
operationName: "NAME OF YOUR ACTION",
operationType: 0,
parameterTypes:
"parameterJSON": {
typeName: "Edm.String",
structuralProperty: 1
}
}
};
};
Xrm.WebApi.execute(requestAction).then(
function (result) {
result.json().then(
function (response) {
console.log(response);
//HERE YOU CAN DO WHATEVER YOU NEED WITH RESPONSE
}
);
}, function (error) {
console.log(error);
});
}
you can refer to HERE the official documentation
regards.
if this answered to your question please don't forget to mark it as an aswer .