This topic contains 1 reply, has 0 voices, and was last updated by chanarbon 8 years, 1 month ago.

  • Author
    Posts
  • #1772

    ssilveri77

    I have loaded the fulfillment record

    var rec = record.load({ type : record.Type.ITEM_FULFILLMENT,

    id : transactionId,

    isDynamic : true });

    Then I want to get fields from the createdfrom.

    Isn’t it like this? Which does not return anything… Yes there is data.

    params.endUserId = rec.getValue({ fieldId : ‘createdfrom.custbody_end_user’ });
    This is a cached copy. Click here to see the original post.

  • #1773

    chanarbon

    Hi Steve,

    Record.getvalue() will give you the value of the field on the record. If you are to get the value of a field from a List/record field on the record, let’s say on your case which is the custbody_end_user from the sales order, you need to first get the id of the sales order then perform a lookup field for the custbody_end_user .

You must be logged in to reply to this topic.