Skip to main content

I’m creating REST model via JS like in the link bellow:
https://docs.skuid.com/v11.1.1/en/skuid/javascript/dynamic-model-component-creation.html


The model is working fine, but I’m unable to find a way to make record limit and offset work. I tried using model created by Skuid as reference and setting data as follows, but with no success:


dynamicModelo'extensions']n'rest']s'offsetParameter'] = 'recordsOffset';
dynamicModelo'extensions']n'rest']s'simpleRecordsLimitParameter'] = 'recordsLimit';
dynamicModelo'extensions']n'rest']s'limitMethod'] = 'simple';
dynamicModelo'extensions']n'rest']s'paginationMethod'] = 'simple';
dynamicModelo'extensions']n'rest']s'useResponseSnippet'] = 'true';
dynamicModelo'extensions']n'rest']s'verb'] = 'GET';
dynamicModelo'extensions']n'rest']s'serviceUrl'] = soql;

I also tried updating model.methods, since I’m trying to create read/write REST model, where the object for Get looks as follows:


{
endpoint: "/ApexRest"
isBatch: false
limitMethod: "simple"
offsetParameter: "recordsOffset"
paginationMethod: "simple"
payloadContentType: "JSON"
responseSnippet: "responsePayload"
simplerecordslimitparameter: "recordsLimit"
type: "query"
useResponseSnippet: "true"
verb: "GET"
}

Thank you

bump


if any clarification is need please let me know,


Thank you.


Bump, bump


Thank you,

Lukas


Bump, I would appreciate any advice or pointers.


Thank you,

Lukas


Reply