Can I modify the m-code for a given dataset from C# script? #856
Answered
by
mlonsk
dpesante
asked this question in
🙋♀️TE3 Q&A
-
We are looking to automate some of our m-code from C# script. Is this even doable? |
Beta Was this translation helpful? Give feedback.
Answered by
mlonsk
Mar 21, 2023
Replies: 1 comment
-
Hi @dpesante An example of accessing the partition for the Customers table is has follows: You can also try to record a Macro which I sometimes use to understand how to access these properties |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mlonsk
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @dpesante
It is possible. You can access the partition's expression and for example replace it with another expression.
An example of accessing the partition for the Customers table is has follows:
Model.Tables["Customers"].Partitions["Customers"].Expression
You can also try to record a Macro which I sometimes use to understand how to access these properties