in mobile, how can I get the value of some fields in lookup fields

Hi Community,

 

In mobile, how can I get the value of some fields in lookup fields?

 

Suppose in Case, using I will get MobilePhone from Contact using CreatedBy field in case. I tried below but it is undefined:

 

var mobile = record.get("CreatedBy.MobilePhone");

 

Any idea please

 

 

Like 0

Like

1 comments

Hello Fulgen,

 

You need to use the following code:

record.get("CreatedBy").get("Name")

 

You can also set the breakpoint in one of the business rules and study which keys and values the record object returns.

Please also note that two possible values that you can get from the related record are:

 

1) Record Id

2) Record display column value

 

Best regards,

Oscar

Show all comments