script record.create

What am I doing wrong here?

defaultValues: {
“custrecord0006”: employee,
“custrecord0007”: salaryCost

record B’s id is customrecord801.
It has 2 fields in it with id:
employee and salaryCost are variables.

Rookie Asked on July 14, 2021 in SuiteScript.
Add Comment
1 Answer(s)

Look into more detail about `defaultValues` in the help pages.  It is not a catch-all, it is designed for very specific fields.  I would just avoid using it and setting the values after creating the record.

Intermediate Answered on July 14, 2021.

Yeah, I figured it out now.
But couldn’t find the delete option here to remove my question.

on July 14, 2021.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Become a Sponsor   Become a Sponsor