mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
feat(BambooHR Node): Add support for Only Current on company reports (#7878)
Github issue / Community forum post (link here to close automatically): https://github.com/n8n-io/n8n/issues/7876 API Docs for reference: https://documentation.bamboohr.com/reference/get-company-report-1
This commit is contained in:
@@ -89,6 +89,13 @@ export const companyReportGetDescription: INodeProperties[] = [
|
||||
default: true,
|
||||
description: 'Whether to apply the standard duplicate field filtering or not',
|
||||
},
|
||||
{
|
||||
displayName: 'Only Current',
|
||||
name: 'onlyCurrent',
|
||||
type: 'boolean',
|
||||
default: true,
|
||||
description: 'Whether to hide future dated values from the history table fields or not',
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
@@ -11,9 +11,10 @@ export async function get(this: IExecuteFunctions, index: number) {
|
||||
const reportId = this.getNodeParameter('reportId', index) as string;
|
||||
const format = this.getNodeParameter('format', 0) as string;
|
||||
const fd = this.getNodeParameter('options.fd', index, true) as boolean;
|
||||
const onlyCurrent = this.getNodeParameter('options.onlyCurrent', index, true) as boolean;
|
||||
|
||||
//endpoint
|
||||
const endpoint = `reports/${reportId}/?format=${format}&fd=${fd}`;
|
||||
const endpoint = `reports/${reportId}/?format=${format}&fd=${fd}&onlyCurrent=${onlyCurrent}`;
|
||||
|
||||
if (format === 'JSON') {
|
||||
const responseData = await apiRequest.call(
|
||||
|
||||
Reference in New Issue
Block a user