transferRepresentation for AppEntity containing parameters of multiple types

I have an App Intent that returns a MyEntity value with the following properties:

struct MyEntity: AppEntity {
    @Property(title: "Title")
    var title: String?

    @Property(title: "Image")
    var image: IntentFile?
}

I created a Shortcut that takes the output value of this intent and passes it as the input to the Send Message action. When I tap the MyEntity parameter in the message action, it shows to be of Type MyEntity. Below that, I can select 1 of 3 options: MyEntity, Title, or Image.

When I run the shortcut, a new message compose window appears with the following behavior depending on the selected option:

  • MyEntity - the message draft is empty
  • Title - the message draft shows the title string
  • Image - the message draft shows the image

My expected and desired result when MyEntity is selected would be a message draft populated with the image and the title string as text. How would I achieve this? Is it possible?

I've experimented with conforming MyEntity to Transferable. That's enabled use cases such as passing the MyEntity input as Type Image for example.

Do I need to create a custom UTType to represent MyEntity, or is that unrelated to my issue? I haven't explored this yet but seems potentially related!

transferRepresentation for AppEntity containing parameters of multiple types
 
 
Q