Hello,
I put you in context. I have a related data model and there are student and grade entities. These entities are related by a record.
The problem I have is that I want to create a new grade through a related action and automatically assign it to the student.
I can't do this because in the related actions list you cannot pass the id of the student to which the created grade will belong as a parameter.
Any ideas to pass the student id to a related action?
number is the student id
Discussion posts and replies are publicly visible
Can you create this as a related action on the student record type instead of making this a record action on the grade record type? If you use the student record type then you should be able to pass the identifier of the student that you're using.
Thank you very much, you have clarified my ideas and I already managed to do it in my application. It is indeed the correct way to do it.
Still I'm curious if appian will allow passing parameters to a record action list
HI raul gomez moya, You can pass parameter only when you are using related action of a record. In related action pass
rv!identifier as parameter. But in case of record action, its not possible.
While I understand your question, in Appian we have related actions, which act in context of a chosen record. And we have unrelated actions, or record actions, which act in context of a record type in general.
What is your use case for passing data to a record action?
Hello ,
It is exactly as you say, there are actions related to context and actions without context that are used for the record in a general way, without a context.
In my approach, what I want to do is have a set of related records and when creating a new record value (eg: Grade), I want to include the associated student in the creation, for example.
I already understood that I can do this from the student record, in fact I already solved it, but I'm curious to know if it could be done in the way I propose. Create a grade and associate a student who passed by parameter.
You could add a related action directly in the record list. The you have "select" and "act" in one go.
What you say is not possible, because from the record list grade, I cannot specify to which student I want to relate the grade that I am going to create. The only solution is to create a related action in the student record to create grade.
I think it would be nice if appian allowed to pass parameters in the record list action