I did this on my entity with this in the EntityDef for my custom Entity:
{
   "fields": {
        "portalRole": {
             "type": "link",
             "inlineEditDisabled": true,
             "required": true,
             "tooltip": true
                }
       },
"links": {
       "portalRole": {
            "type": "belongsTo",
            "foreign": "myCustomEntity",
            "entity": "PortalRole",
            "audited": false,
            "isCustom": true
           }
      }
}
					
					
					
				
			Link Custom Entity to Portal Role
				
					Collapse
				
			
		
	X
- 
	
	
	
	
 Link Custom Entity to Portal RoleHello,
 I'm trying to create a link from a custom table to the table "Portal Role" such that [custom] 0-* <- 1-1[PortalRole]. I had a go at updating the custom metadata in the entityDef for my custom entity, but I got an error.
 
 I want to be able to select a single PortalRole on my custom entity.
 
 What field definitions would I need in the custom.json entityDef?
 
 Thanks

 
					
					
					
						
							
Leave a comment: