You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

CX Mobile - Retrieve a secondary object parameter to set it in a custom field through script

edited Feb 13, 2020 4:49PM in Sales

Summary

Get using mobile scripts the related (secondary) object of a DCL field and set one of its properties in another field of the main object

Content

Hello everyone,

We have a main custom object (Expense_c) with a secondary object (Resource) related by a DCL (OraZcxOwner_c) from which we want to recover a field value (OraZcxOwner_c?.PersonLastName) and set it in a field of the main object (Expense_c?.CNT_GST_Descripcion_c).

On the firsts attempts we tried to achieve this through this piece of code:

var expenseRow = getCurrentRow();
var owner = expenseRow.getColumn("OraZcxOwner_Obj_c");

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!