- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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
Solved! Go to Solution.