FormReferenceType Annotation to reference a user source profile and an email source profile

package io.ia.ignition.sdk.examples.slack.profile;

import com.inductiveautomation.ignition.gateway.dataroutes.openapi.annotations.*;
import com.inductiveautomation.ignition.gateway.web.nav.FormFieldType;

import javax.annotation.Nullable;

public record SlackNotificationProfileResource(
        @Nullable
        @FormCategory("SLACK SETTINGS")
        @Label("Audit Profile")
        @FormField(FormFieldType.REFERENCE)
        @FormReferenceType("ignition/audit-profile")
        @IsNullable
        @DefaultValue("null")
        @DescriptionKey("SlackNotificationProfileSettings.AuditProfileName.Description")
        String auditProfileName
) {
}

In the following record we can reference an audit-profile.

I’m looking for the FormReferenceType Annotation to reference a user source profile

and the FormReferenceType Annotation to reference a email source profile

If anything makes any sense, it should be the string representation of a resource type - as in module ID/type ID.

So ignition/user-source and ignition/email-profile. The ignition constant is defined in Resource.PLATFORM_MODULE_ID.

You can also look on disk in the core resource collection to find these - the resource type is what's used as the base of the folder path.

2 Likes