mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor(core): Introduce overload for record-type node parameter (no-changelog) (#4648)
* 📘 Set up overload * 🔥 Remove inferrable record assertions * 👕 Fix semicolon * 👕 Fix another semicolon
This commit is contained in:
@@ -196,7 +196,7 @@ export class MicrosoftDynamicsCrm implements INodeType {
|
||||
if (operation === 'get') {
|
||||
//https://docs.microsoft.com/en-us/powerapps/developer/data-platform/webapi/retrieve-entity-using-web-api
|
||||
const accountId = this.getNodeParameter('accountId', i) as string;
|
||||
const options = this.getNodeParameter('options', i) as IDataObject;
|
||||
const options = this.getNodeParameter('options', i);
|
||||
if (options.returnFields) {
|
||||
qs['$select'] = (options.returnFields as string[]).join(',');
|
||||
}
|
||||
@@ -215,8 +215,8 @@ export class MicrosoftDynamicsCrm implements INodeType {
|
||||
if (operation === 'getAll') {
|
||||
//https://docs.microsoft.com/en-us/powerapps/developer/data-platform/webapi/query-data-web-api
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const options = this.getNodeParameter('options', i) as IDataObject;
|
||||
const filters = this.getNodeParameter('filters', i) as IDataObject;
|
||||
const options = this.getNodeParameter('options', i);
|
||||
const filters = this.getNodeParameter('filters', i);
|
||||
if (options.returnFields) {
|
||||
qs['$select'] = (options.returnFields as string[]).join(',');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user