Skip to main content

I’m trying to add a set of row from one model to another by using massactions. Basically from one object to another object. I have an opportunity and to that opportunity i have selected a ‘Program’ and later I want to select deliverable(s) associated to the program. I’m using a Popup to do that. When I use Action type Multi (as I want to pass some condition before loading the pop up screen) instead of popup directly, I’m not able to add the row selected but if I use action type popup then I’m able to do so. I thought it might be because of the condition that I’m passing and hence the error. So I decided to use Action type Mutli to Popup the screen without passing on any condition and I’m still having the error.


Error: I clicked Add D but only a single row is created in the screen behind.


Also, Including the XML for reference. The difference in this one and the one that works is the action type for the below xml is " Run Multiple Action" while the other one is “Popup”. Let me if this a bug or Am I missing something?.












































































models.loaded

Thank you for posting the XML. It’s very helpful. However, because the models are on custom objects, I can’t test it. If you could post a repro of all standard objects and fields, we could test and use that.

I can see your row actions and your global actions. All these actions do is create a pop up. I don’t see anything that triggers a requery to where the model actions on ProgramDeliverable will happen. I don’t see a proper set up that would seem to create new row. All the models are queried on page load and launching a pop up won’t necessarily do anything separate.


One trick that may help with mass actions - figuring out context can make things difficult. What I’ve done in a similar use case in the past is this…


ModelFrom = Taking rows from here

ModelTo = Adding rows here


  • On ModelFrom, create a UI-only checkbox

  • Create a model action for when the checkbox is updated, in this model action do your create row and default fields to {{whateverfield}}

  • In the mass action, just have the action to update the UI-only checkbox (if users could do multiple times, you'll need a branch that checks it if its unchecked and unchecks it if its checked

So when a user selects 5 rows and runs the mass action, each row individually starts running the model action. This helps keep things in context, since they are each running on their own.

Is there way, we could have call and I can show the issue or do I need to communicate with you here on the post?


With regards to the global action only doing the popup, I had removed all the other actions like ‘activate and set conditions’ and then do the ‘query’ action. Currently, in this setup I will only have a single opportunity program/project and other other two model will look into the opportunity program model for information. But, in reality I will have multiple Opportunity Program/Projects and I will have to use “Run Multiple Action” before creating a Pop Up. With regards to create row,


Also, I want to point out that the reason I used Action Type Run Multiple Action vs Pop up was to show that, when I use Run Multiple Action to create pop up I have this issue but if I use Pop up directly then it works perfectly fine. The reason I want to use Run Multiple Action is, to use Activate and Set Condition and Query action since I’m using table. 


Reply