I am at the "Add the Reusable Interface" step on page 4 of exercise 10. I am running into an "Invalid index" issue when trying to update the expression after dropping in the W1570SA_VehicleDetailsView into the Vehicle Details section. This is what I type into the expression box "r!maintenance[recordType!W1570SA Maintenance.relationships.vehicle]" - the error that pops up is "Invalid index: Cannot index property 'relationships' of type Text into type RecordType"
When I try to click the suggested items that pop up, vehicle isn't even listed under the relationships (second screen shot)
Discussion posts and replies are publicly visible
It seems there's a data type mismatch issue. Make sure 'relationships' is a RecordType, not Text, and 'vehicle' exists within it. If all looks right, refresh Appian. If the problem persists, review your setup for any inconsistencies.
Stephen Romanello
To resolve the issue, first, ensure that the 'vehicle' RecordType exists in your data model. If it does, add a relationship from the 'maintenance' RecordType to the 'vehicle' RecordType. This will establish a connection between the two RecordTypes, allowing you to access the 'vehicle' property within the 'maintenance' RecordType. Once this relationship is established, you should be able to update your expression without encountering the "Invalid index" issue.
This worked. Thank you. Looks like I didn't have the relationship between vehicle and maintenance set up
Good to know that.
Hello...I am also running into the same issue. But my question is, I already have a 1-Many relationship from Vehicle to Maintenance, but it is still not showing. Do i still have to create another many-1 relationship from maintenance to vehicle