Hi,
Based on my analysis/hits and tries so far, I am able to call any custom action and custom API that is bound to the CONTACT entity from Power Portals. But, I am still not able to get the response/output parameters from the API call if it is a success. The below syntax works:
webapi.safeAjax({
type: "POST",
url: "/_api/contacts("ENTER GUID")/Microsoft.Dynamics.CRM.new_contactapi",
contentType: "application/json",
data: JSON.stringify({ "name": "Test" }),
success: function (res, status, xhr){
}
});