New Feature Request - Create New Row --> "Quantity"

  • 1
  • Idea
  • Updated 4 years ago
  • Under Consideration
There are times when I'd like to be able to create multiple rows all at once in a model. Further to this, I'd like the quantity to have the ability to take data from another model.
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb

Posted 4 years ago

  • 1
Photo of Irvin Waldman

Irvin Waldman, Champion

  • 9,006 Points 5k badge 2x thumb
Pat,

Is this not possible with the Action Framework using Multiple Actions and the prototype pattern?  Take a look at the Action Framework Deep Dive video. 

Regards,
Irvin
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
Prototype pattern?

I know I can create multiple actions in the action framework, but I'd like the number of rows to be dynamic.
Photo of Irvin Waldman

Irvin Waldman, Champion

  • 9,006 Points 5k badge 2x thumb
When you say dynamic, do you mean the user would specify that they want to N number rows created (and populated from another model)?
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
Yes. N number of rows based on a specified amount or an amount from another model. As for the default values, that would work the same as it does now.
Photo of Irvin Waldman

Irvin Waldman, Champion

  • 9,006 Points 5k badge 2x thumb
Multiple actions can iterate over a set of source rows and create a new row in a model where the data is sourced from another model e.g. $Model.ProtoLineItem.data.0.UnitPrice.  This does not completely satisfy your use case, however.  

I am thinking that you may have to go "custom" with a snippet.
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
If that's the case, I can just use trigger ready flows and avoid javascript.

I haven't had a big need for it yet so I won't go through the trouble.

I'd rather wait for a solution that's easy to implement and manage. javascript and flows would not be as they both would be specifically setup for each requirement. ie. which object and which fields
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
Thanks for the ideas guys. This idea is under consideration..