在 salesforce lwc js 中使用 createRecord 时需要将什么分配给查找字段?

What needs to be assigned to a lookup field when using createRecord in salesforce lwc js?

我尝试传递商机 ID 和名称

        quotefields[OPPORTUNITY_FIELD.fieldApiName] = ???;
        const recordInput1 = { apiName: QUOTE_OBJECT.objectApiName, quotefields };
        console.log(recordInput1)

        //creating a quote
        createRecord(recordInput1)

查找字段没有此类特定要求。 您只需将记录的 ID 作为要从创建的记录中查找的字符串传递。