M
Meryk
Guest
So your code here is setting the first name and middle name values to last name value when you delete and restore the record ? Is that right ? I am doing something very similar and here is the code : rbv_api.println('Running after restore trigger'); var campaign = {!campaignStageCampaign#id}; var maxOrder = rbv_api.selectQuery("select MAX(orderInCampaign) from campaignStage where campaignStageCampaign = ?", 100, campaign); rbv_api.println('maximum order in this campaign is : ' + maxOrder[0][0]); var arr = []; arr.orderInCampaign = maxOrder[0][0] + 1; rbv_api.updateRecord('campaignStage', {!id}, arr); The first print in the first line is not showing at all when I debug the trigger. I am just checking the 'After_restore' option in the trigger. Any ideas why this is not working please? Thanks Meryem
Continue reading...
Continue reading...