script record.create
What am I doing wrong here?
record.create({
type:’customrecord801′,
defaultValues: {
“custrecord0006”: employee,
“custrecord0007”: salaryCost
}
});
record B’s id is customrecord801.
It has 2 fields in it with id:
custrecord0006,
custrecord0007
employee and salaryCost are variables.
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.
Yeah, I figured it out now.
But couldn’t find the delete option here to remove my question.