Pulling data from an app in another app (data email)
Hi,
I have read several tickets and tested the community responses, but it doesn't seem to be working.
I've an app "Customer" and an app "Contact". In the app Contact, I've I have one or more email addresses that that I would like to pull in the Customer app.
I tried this :
But I have the message "the script returned an incompatible result".
What's the right code please ?
Thanks for your support ! :D
Roxane
-
Email and phone fields are object arrays.
at the very least you need to
@all of email.map(function (obj) { return obj.value})
try:
var b="";
var email = @All of email;I use the code below to grab multiple emails and get a return of email email email
for(i=0; i<email.map(function (obj) { return obj.value}).length;i++) {
if (email.map(function (obj) { return obj.value})[i] != null)
{
var b = b +" "+email.map(function (obj) { return obj.value})[i]
}}
b + " ";
Please sign in to leave a comment.
Comments
2 comments