webapi.safeAjax({
type: "GET",
url: "/_api/sm_candidates("+ id +")/sm_domicile",
contentType: "application/json",
success: function (data, textStatus, xhr) {
var fileContent = data["value"]; // Base 64
var fileName = "file.bin"; // default name
},
error: function (xhr, textStatus, errorThrown) {
console.log(xhr);
}
});
{
"error": {
"code": "90040101",
"message": "Attribute * in table sm_candidate is not enabled for Web Api."
}
}
sm_domicile
) in your Dataverse table (sm_candidate
) is not explicitly enabled for Web API access.Webapi/sm_candidate/fields
defines which attributes (columns) in the sm_candidate
table are accessible through the Web API. You must include sm_domicile
in this setting. sm_name,sm_domicileStay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.