We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What is the correct way to add a statecode attribute to the formContext? I have been creating string attributes as shown in the examples i.e.
const stringAttribute = XrmMockGenerator.Attribute.createString("firstname", "Joe");
Then adding them to the formContext like
context.data.attributes = new ItemCollectionMock([stringAttribute]);
If I try to create a statecode though as below
const statecode = XrmMockGenerator.Attribute.createOptionSet("statecode", 0, [ { text: "Active", value: 0 }, { text: "Inactive", value: 1 }, ]);
I get an error about a circular reference.
Thanks, Alan
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What is the correct way to add a statecode attribute to the formContext? I have been creating string attributes as shown in the examples i.e.
const stringAttribute = XrmMockGenerator.Attribute.createString("firstname", "Joe");
Then adding them to the formContext like
context.data.attributes = new ItemCollectionMock([stringAttribute]);
If I try to create a statecode though as below
I get an error about a circular reference.
Thanks, Alan
The text was updated successfully, but these errors were encountered: