You can create items of any type in a similar way to that shown in the example app.
For the extra attributes/fields, you have 2 options:
- Create the item and revision the same way as for a standard Item type and then modify the properties after creation. This won’t work if any properties are mandatory on creation, so you would need to use the second option
- Create the item and revision with properties set on creation. In order to fill the extra attributes for a different item type (such as IssueReport), you need to create an Entity for the IssueReportRevisionCreateInput which matches the CreateDescriptor in the Teamcenter data model. IssueReportRevisionCreateInput is a specialisation of ItemRevisionCompoundCreateInput but with the extra attributes. Then when you create the IssueReport you reference your IssueReportRevisionCreateInput object and the extra attributes will be mapped for you, as long as the names match those in Teamcenter
For instance, I have a custom item type in Teamcenter called CM5_MyItem. The associated revision (CM5_MyItemRevision) has new attributes called cm5_Property1 and cm5_Property2.
These are added to the CreateDescriptor in Teamcenter:

I have an Entity in my Mendix app to match the create descriptor:

When I create an Item I use this:


I hope this helps