RE: Search time entries

Answered

Hi all

I’m trying to make search to get all employee approved time entries but I got error
My code:

var custom_transaction_timesheetSearchObj = search.create({
                    type: “timeentry”,
                    filters: [
                        [“employee”, “anyof”, employeeRec.internalid],
                        “AND”,
                        [“approvalstatus”, “anyof”, “3”]
                    ],
                    columns: [
                        search.createColumn({
                            name: “internalid”,
                            label: “ID”
                        }),
But I got this error:
The feature ‘Timesheets’ required to access this page is not enabled in this account.
even this feature enabled
pls help
ahmadrizk Rookie Asked on November 15, 2022 in SuiteScript.
Add Comment
1 Answers
Best answer

Try using “timebill” instead of “timeentry” since your organization hasn’t activated timesheets.

Rookie Answered on November 15, 2022.

Thanks, it’s working now

on November 15, 2022.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.