Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
Solved! Go to Solution.
Hi @AP_9587236,
You can use below code to clone the data of infotable A and pass it to B, then clearing infotable A:
let B = Resources["InfoTableFunctions"].Clone({
t1: A /* INFOTABLE */
});
A.RemoveAllRows();
If you want to preserve the data in B and append the data A into B you can use Union service:
B = Resources["InfoTableFunctions"].Union({
t1: B /* INFOTABLE */,
t2: A /* INFOTABLE */
});
A.RemoveAllRows();
Hi @AP_9587236,
You can use below code to clone the data of infotable A and pass it to B, then clearing infotable A:
let B = Resources["InfoTableFunctions"].Clone({
t1: A /* INFOTABLE */
});
A.RemoveAllRows();
If you want to preserve the data in B and append the data A into B you can use Union service:
B = Resources["InfoTableFunctions"].Union({
t1: B /* INFOTABLE */,
t2: A /* INFOTABLE */
});
A.RemoveAllRows();
While cloning, What if the B is already having rows and I want to overwrite those entries with new values of A?
If you assign the result of clone directly to B like below, what's inside B will be gone and be replaced by the clone of A.
B = Resources["InfoTableFunctions"].Clone({
t1: A /* INFOTABLE */
});