Developer forum

Forum » Integration » Paging in Endpoints Management

Paging in Endpoints Management

Anders Ebdrup
Anders Ebdrup
Reply

Dear Dynamicweb,

 

We are looking into the new Endpoint Management, which is nice, but we have a limitation when loading data from an OData service with paged data. Can that be supported?

At the same time it would nice if we somehow can be able to overload the method: "Dynamicweb.DataIntegration.EndpointManagement -> EndpointService" with a custom url (dump: https://www.screencast.com/t/PCyXYaeUZM5), then we can handle the paging ourself.

Best regards, Anders


Replies

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Anders,

There is a ImportDataWithPaging scheduled task add-in that is used for that, but the problem is that it is not yet support the new Endpoint functionality.

Looks like a good suggestion. But for now as a workaround could you try to override both methods:
public virtual string Execute(int endpointId, string requestBody)
and
public virtual Endpoint GetEndpointById(int id)

So once your task add-in tries to execute some specific url then set some flag to the Context.Items and then in the GetEndpointById method
if that flag is present change the endpoint.Url property to the url you need at this time.

Regards, Dmitrij

 
Anders Ebdrup
Anders Ebdrup
Reply

Dear Dmitrij,

 

Thanks for the reply. Do you plan to support endpoints for paged integration points? Or should we just go with the existing method?

 

Best regards, Anders

 
Anders Ebdrup
Anders Ebdrup
Reply

Dear Dmitrij,

 

Do you know if this is supported in the latest release (9.12)?

 

Best regards, Anders

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Anders,
the paging support is not implemented in the Import data add-ins. But there are now two new providers that might be used instead:
Endpoint provider (supports paging) and OdataProvider.
BR, Dmitrij

 

You must be logged in to post in the forum