Create both Master and Details Records

Hello,

I have Source Table (SourceID, Name), and SourceDetails Table (SourceDetailsID, SourceID, Details).

For each SourceID, I want to create (a set of) action to copy both Source/SourceDetails to Target (TargetID, Name) and TargetDetails (TargetDetailsID, TargetID, Details) tables.

I can create an action to add new rows from SourceDetails to TargetDetails, except for TargetID, it doesnโ€™t exist at that time and we need the same TargetID for all the related SourceID. I am thinking of creating an action to add Target Table first, but donโ€™t know how to pass the newly created TargetID to the next action.

Is there any way to overcome this problem?

Thanks.
Anh Han

Solved Solved
0 2 101
1 ACCEPTED SOLUTION

Simply write some thing in another column in the Target table that the first action you created can look for.

ANY(Select(Target[TargetD],[Temp]="foo"))

Then make the last action in your sequence clear this column.

[Temp]=""

Simon@1minManager.com

View solution in original post

2 REPLIES 2

Simply write some thing in another column in the Target table that the first action you created can look for.

ANY(Select(Target[TargetD],[Temp]="foo"))

Then make the last action in your sequence clear this column.

[Temp]=""

Simon@1minManager.com

Work perfectly. Thank you very much!

Top Labels in this Space