Skip to main content
Nintex Community Menu Bar

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:

dynamicModel['extensions']['rest']['offsetParameter'] = 'recordsOffset';
dynamicModel['extensions']['rest']['simpleRecordsLimitParameter'] = 'recordsLimit';
dynamicModel['extensions']['rest']['limitMethod'] = 'simple';        
dynamicModel['extensions']['rest']['paginationMethod'] = 'simple';        
dynamicModel['extensions']['rest']['useResponseSnippet'] = 'true';       
dynamicModel['extensions']['rest']['verb'] = 'GET';
dynamicModel['extensions']['rest']['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