Hi All, I'm trying to create timesheet through int...
# suitescript
s
Hi All, I'm trying to create timesheet through integration is there any way to set timebill approval status instead of loading each timebill?
n
Can you not set the "approvalstatus" field appropriately?
s
when im setting the approval status its not setting weeklyTimesheet.setCurrentSublistValue({sublistId: "timeitem",fieldId: "approvalstatus",value: '2'});
n
You are committing the line, right?
s
yes
n
OK, sorry I don't know then, I'd have expected it to work if you supply the correct value and nothing else on the line causes sourcing to overwrite it.
Maybe there's restrictions over who can approve it???
c
I'd expect an error if there was a permissions issue.
Unrelated house keeping issue though: don't use 2, create a well name CONST then set the value to 2, that way other devs know what you're doing.
When you've set the aprovalstatus field, can you see the new value on the newRecord object?
You'll need to share more code so I can see how you're handling that sublist.