Read assignMessage from sharedflow

Dear Apigeee Members,

while using shared flow and read from AssignMessage there is exception says this AssignMessage not exist, how can I return AssignMessage from shared flow

thanks in advance