Get the webhook endpoint data by enum ID or description. (When processing webhooks with code, you may need the endpoint ID in some functions.)
Enum "Provider ID RWU"
- Specifies the enum ID of RESTwithUS provider.Enum "Webhook ID RWU"
- Specifies the enum ID of RESTwithUS webhook.Text
- Specifies the description of RESTwithUS API provider.Text
- Specifies the description of RESTwithUS webhook.Record "API Endpoint RWU"
RESTwithUS webhook endpoint record.
var
APIEndpointRWU: Record "API Endpoint RWU";
ProviderID: Enum "Provider ID RWU";
WebhookID: Enum "WebHook ID RWU";
//Get the webhook endpoint by enum IDs
APIEndpointRWU := APIScriptRWU.GET_WEBHOOK_RECORD(ProviderID::TestProvider,WebhookID::"Test Custom API Page");
//Set the operation by provider/operation description
APIEndpointRWU := APIScriptRWU.GET_WEBHOOK_RECORD('Test Provider','Test Custom API Page');