Skip to content
Discussion options

You must be logged in to vote

You can't use Now.ID as a variable like that, use the record you created. I dont know what domainTableName1 is but if its a record you created elsewhere you can use it like a variable on the sys_domain field if you want its sys_id that gets generated.

import { domainRecord1 } from "../domainrecord.now.ts" //<-wherever you created this import it

const recordOne = Record({
 $id: Now.ID['customer_account_1'],
 data: {
    sys_domain: domainRecord1.$id
 }
})

https://servicenow.github.io/sdk/fluent/now-id-guide#dont-use-nowid-outside-of-key-creation-for-a-record

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by u173487
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants