Hi! I´m trying to reference a related record action (update of fields, which has another interface and works properly) in another interface. I´m using the "record action field" component in the interface menu, but some errors appeared:
First of all, I tried to emulate the same code that I had in my related record action, but it doesnt recognize the rv!identifier and the following error appears ("could not find variable rv!identifier")
That´s why I skipped that part and tried to put only the rule, being my code the following one:
In this case, the related record action appears correctly in the interface. But the following error appears when I click in the button ("An error occurred while applying the context for the CPF Maestro Pedidos related action [identifier=235]. Details: The record data does not exist, has been deleted, or you do not have sufficient privileges to access it.")
On the other hand my related action is:
I´m wondering where is the problem, and if someone could help me to understand this error. Thank you so much!
Discussion posts and replies are publicly visible
Hi carlosp5114,The recordActionItem works in a way that you just need to pass the id of the data you need to act on. So your use case should look like
recordActionItem( record:recordtype!(this is correct in your case), identifier:ri!id (here you just need to pass the primary key of the data set you need to perform the action on for eg-1 or 2 or 4, etc)
Thanks! I tried this way, using my primary key of the record (idPedido) but in this case no related action appeared
Hi carlosp5114,
The above screenshot shows no values in the ri!record. Related action will appear only if the identifier has the proper record primary key value and the related action visibility of the corresponding record is true()
I tried in the site and it works properly! Thank you so much