Can't Copy Picklist value from one workspace to another workspace record

Can't Copy Picklist value from one workspace to another workspace record

jdow
Advocate Advocate
578 Views
1 Reply
Message 1 of 2

Can't Copy Picklist value from one workspace to another workspace record

jdow
Advocate
Advocate

I want to copy the value from a filtered picklist field from one item record to a new item record in another workspace through a spawning script. Using typicaly spawning script to spawn a new record in another workspace and copy over field values work fine except for the one field value that is from a flitered picklist.  The single line fields copy nicely, but the picklists don't.

 

Can this be handled via scripts?

 

if(item.SPAWNED_PROPOSAL === null){
var newProperties = [];

newProperties.PROPOSAL_DESCRIPTION = item.OPP_DESCRIPTION;
newProperties.CUSTOMER_NAME = item.CUSTOMER_NAME;  //This is the picklist, they are both picklists in each workspace
newProperties.RAM = item.RAM;
newProperties.FORECAST_PROBABILITY = item.FORECAST_PROBABILITY;

newProperties.RELATED_OPPORTUNITY_NUMBER = item.descriptor.descriptor;

var newItem = createNewItem('WS_AMF_SALES_PROPOSALS', newProperties);

if(newItem !== null){
item.SPAWNED_PROPOSAL = newItem;
}
}

 

Thanks,

John

JD
0 Likes
Accepted solutions (1)
579 Views
1 Reply
Reply (1)
Message 2 of 2

jdow
Advocate
Advocate
Accepted solution
we'll i may have figured this out...
In the first WS with the filtered Picklist, uncheck the 'Display as link' option.
This seems to allow the value to be copied over to the picklist in the other workspace record. Is this a bug???
JD
0 Likes