Skip to content

Can I modify the m-code for a given dataset from C# script? #856

Discussion options

You must be logged in to vote

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

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mlonsk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content: script assistance Help on C# scripting
2 participants
Converted from issue

This discussion was converted from issue #851 on March 21, 2023 12:33.