ProjectWise Design Integration environment attributes are defined dynamically and have to be handled in a special way.
Document attributes can be set with Create a New Document and Modify a Document commands. Both commands have a parameter Environment. It is a pick list with all environments from datasource. When an environment is chosen (expand the "Show advanced options" at the bottom of an action), the Flow editor will display controls for attributes in that environment.
The selection of environment in Flow form WILL NOT change actual environment of the new or modified document. It is only to create form controls. ProjectWise documents always inherit environment from their folders.
To set or modify attribute specify a value. If attribute control is empty then the value will not be set or changed. To clear a value, use a 'null' expression:
The selected environment does not have to match actual environment of a document as long as environment of target document has attributes with the same names. This is convenient when a flow has to be used on multiple environments that have an overlapping set of attributes. For example, let's say there are two environments: 'Drawings' and 'Documents' in the datasource. If both of them have a column 'Title', then a single action that sets only value of a 'Title' attribute can be used for both.
It is an error to set an attribute that does not exists in target document.
Create Document, Modify Document and Find documents, Get document by ID actions return a response with attribute values. They all have a parameter Environment. Just like it is for setting attributes, this parameter dynamically defines list of attributes in actions response. This allows to access document attribute values from response in following actions.
Actual document environment may be different from the one selected in Environment parameter. It is not an error. The flow will fill the output values where attribute names overlap. For example a search may return documents from several environments, such as 'Documents' and 'Drawings' but if both have 'Title' attribute, it will be accessible for all documents.