Copy attributes from one entity to another

0
I have two entities : orders and ordercheck. There is an attribute ordertype in orders. When i add a new ordertype,if the ordertype is already present,it should load the attribute values already present in orders entity of that ordertype to the ordercheck entity. How can this be done???
asked
4 answers
3

You could add the logic in the creation microflow That means you need to create an own action for the data creation. 

answered
2

Hi Anjali,

 

If you want to create a new OrderCheckObject based on Order Entity – OrderType ENUM attribute, you could create a Event Handler After Commit in Entity and retrive and see if that exists if not then create a new Object (OrderCheck) and Commit.

answered
0

few questions;

You mention entities. Do you really mean the Entity in the model or the Objects (of the entities) in the running app?

What is the attribute type of attribute ordertype? Enumeration?

which attribute values must be copied?

answered
0

hello – did you ever find a solution? i have a similar issue

answered